[11633] | 1 | %define pkg_name semigroups |
---|
[11744] | 2 | %define pkg_version 0.18.5 |
---|
[11988] | 3 | %define pkg_release 3%{?_dist_release} |
---|
[11633] | 4 | |
---|
| 5 | Summary: Haskell libraries: %{pkg_name} |
---|
| 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 | |
---|
[11744] | 16 | Source11: semigroups-0.18.5.tar.gz |
---|
[11633] | 17 | Source12: semigroups.cabal |
---|
| 18 | |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | |
---|
| 21 | BuildRequires: ghc haskell-platform |
---|
| 22 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 23 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 24 | |
---|
| 25 | Requires: ghc haskell-platform |
---|
| 26 | Requires: haskell-platform-dep |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
| 31 | Packager: ara_t |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | Haskell libraries: %{pkg_name}-%{version} |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | %ghc_pkg_init |
---|
| 43 | |
---|
| 44 | cd %{_builddir} |
---|
| 45 | for pkg in `cat %{SOURCE0}`; do |
---|
| 46 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 47 | pushd ${pkg} |
---|
| 48 | %ghc_fix_dependencies ${pkg} |
---|
| 49 | %cabal_configure2 %{name} ${pkg} |
---|
| 50 | %cabal_build |
---|
| 51 | %cabal_haddock |
---|
| 52 | %cabal_copy_resister %{name}_${pkg} |
---|
| 53 | popd |
---|
| 54 | done |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | # copy documents |
---|
| 59 | pushd %{_builddir}/%{pkg_name}-%{version} |
---|
| 60 | %{__cp} CHANGELOG.markdown README.markdown \ |
---|
| 61 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version} |
---|
| 62 | popd |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %clean |
---|
| 66 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 67 | |
---|
| 68 | %post |
---|
| 69 | %ghc_pkg_recache |
---|
| 70 | |
---|
| 71 | %postun |
---|
| 72 | %ghc_pkg_recache |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %files |
---|
| 76 | %defattr(-, root, root) |
---|
| 77 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 78 | %{_libdir}/ghc-lib/ |
---|
| 79 | %{_datadir}/ |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[11988] | 83 | * Mon Dec 17 2018 Toshiaki Ara <ara_t@384.jp> 0.18.5-3 |
---|
| 84 | - rebuild with ghc-8.6.3-1 |
---|
| 85 | |
---|
[11761] | 86 | * Wed Aug 08 2018 Toshiaki Ara <ara_t@384.jp> 0.18.5-2 |
---|
| 87 | - rebuild with ghc-8.4.3-2 |
---|
| 88 | |
---|
[11744] | 89 | * Fri Jul 20 2018 Toshiaki Ara <ara_t@384.jp> 0.18.5-1 |
---|
| 90 | - update to 0.18.5 |
---|
| 91 | - build using ghc-8.4.3 |
---|
| 92 | |
---|
[11633] | 93 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.18.4-1 |
---|
| 94 | - new package |
---|