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