1 | %define pkg_name aeson |
---|
2 | %define pkg_version 1.3.1.1 |
---|
3 | %define pkg_release 3%{?_dist_release} |
---|
4 | |
---|
5 | Summary: Haskell libraries: %{pkg_name} and dependent libraries |
---|
6 | Name: libghc-%{pkg_name} |
---|
7 | Version: %{pkg_version} |
---|
8 | Release: %{pkg_release} |
---|
9 | |
---|
10 | License: BSD3 |
---|
11 | Group: Applications/Text |
---|
12 | URL: http://hackage.haskell.org |
---|
13 | |
---|
14 | Source0: packages |
---|
15 | |
---|
16 | Source11: base-compat-0.10.4.tar.gz |
---|
17 | Source12: base-compat.cabal |
---|
18 | Source13: tagged-0.8.6.tar.gz |
---|
19 | Source14: tagged.cabal |
---|
20 | Source15: th-abstraction-0.2.8.0.tar.gz |
---|
21 | Source16: th-abstraction.cabal |
---|
22 | Source17: time-locale-compat-0.1.1.4.tar.gz |
---|
23 | Source18: time-locale-compat.cabal |
---|
24 | Source19: uuid-types-1.0.3.tar.gz |
---|
25 | Source20: uuid-types.cabal |
---|
26 | Source21: aeson-1.3.1.1.tar.gz |
---|
27 | Source22: aeson.cabal |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | BuildRequires: ghc haskell-platform |
---|
32 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
33 | BuildRequires: libghc-dlist |
---|
34 | BuildRequires: libghc-old-locale |
---|
35 | |
---|
36 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
37 | |
---|
38 | Requires: ghc haskell-platform |
---|
39 | Requires: haskell-platform-dep |
---|
40 | Requires: libghc-dlist |
---|
41 | Requires: libghc-old-locale |
---|
42 | |
---|
43 | Vendor: Project Vine |
---|
44 | Distribution: Vine Linux |
---|
45 | Packager: ara_t |
---|
46 | |
---|
47 | |
---|
48 | %description |
---|
49 | Haskell libraries: %{pkg_name} |
---|
50 | |
---|
51 | |
---|
52 | %prep |
---|
53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
54 | |
---|
55 | %build |
---|
56 | %ghc_pkg_init |
---|
57 | |
---|
58 | cd %{_builddir} |
---|
59 | for pkg in `cat %{SOURCE0}`; do |
---|
60 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
61 | pushd ${pkg} |
---|
62 | %ghc_fix_dependencies ${pkg} |
---|
63 | %cabal_configure2 %{name} ${pkg} |
---|
64 | %cabal_build |
---|
65 | %cabal_haddock |
---|
66 | %cabal_copy_resister %{name}_${pkg} |
---|
67 | popd |
---|
68 | done |
---|
69 | |
---|
70 | |
---|
71 | %install |
---|
72 | # copy documents |
---|
73 | pushd %{_builddir}/%{pkg_name}-%{version} |
---|
74 | %{__cp} changelog.md README.markdown \ |
---|
75 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version} |
---|
76 | popd |
---|
77 | |
---|
78 | |
---|
79 | %clean |
---|
80 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
81 | |
---|
82 | %post |
---|
83 | %ghc_pkg_recache |
---|
84 | |
---|
85 | %postun |
---|
86 | %ghc_pkg_recache |
---|
87 | |
---|
88 | |
---|
89 | %files |
---|
90 | %defattr(-, root, root) |
---|
91 | %{_libdir}/ghc-%{ghc_version}/ |
---|
92 | %{_libdir}/ghc-lib/ |
---|
93 | %{_datadir}/ |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 1.3.1.1-3 |
---|
98 | - build with ghc-8.4.3-2 |
---|
99 | |
---|
100 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 1.3.1.1-2 |
---|
101 | - build using ghc-8.4.3 |
---|
102 | |
---|
103 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 1.3.1.1-1 |
---|
104 | - update to 1.3.1.1 |
---|
105 | - rebuild using ghc-8.4.2 |
---|
106 | - rewrite using macro |
---|
107 | |
---|
108 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 1.2.3.0-1 |
---|
109 | - update to 1.2.3.0 |
---|
110 | - build using ghc-8.2.2 |
---|
111 | |
---|
112 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.11.3.0-1 |
---|
113 | - update to 0.11.3.0 |
---|
114 | - build using ghc-8.0.1 |
---|
115 | |
---|
116 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-3 |
---|
117 | - rebuilt |
---|
118 | |
---|
119 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-2 |
---|
120 | - correct SPEC file |
---|
121 | |
---|
122 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-1 |
---|
123 | - new package |
---|