[10156] | 1 | %define pkg_name cabal-install |
---|
[10234] | 2 | %define pkg_version 1.22.9.0 |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
[10156] | 4 | |
---|
| 5 | Summary: A command-line program simplifies the process of managing Haskell software |
---|
| 6 | Name: %{pkg_name} |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | |
---|
| 10 | License: BSD3 |
---|
| 11 | Group: Applications/Languages |
---|
| 12 | URL: http://hackage.haskell.org |
---|
| 13 | Source0: cabal-install-%{pkg_version}.tar.gz |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
| 16 | |
---|
| 17 | BuildRequires: ghc |
---|
[10234] | 18 | BuildRequires: haskell-platform-base |
---|
[10156] | 19 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 20 | Requires: ghc |
---|
| 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: ara_t |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | The 'cabal' command-line program simplifies the process of |
---|
| 29 | managing Haskell software by automating the fetching, configuration, |
---|
| 30 | compilation and installation of Haskell libraries and programs. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 35 | %setup -q |
---|
| 36 | |
---|
| 37 | %build |
---|
[10234] | 38 | ghc --make Setup |
---|
| 39 | ./Setup configure \ |
---|
| 40 | --user \ |
---|
| 41 | --disable-shared \ |
---|
| 42 | --prefix=%{_usr} \ |
---|
| 43 | --docdir=%{_docdir}/%{name}-%{version} |
---|
| 44 | ./Setup build |
---|
[10156] | 45 | |
---|
| 46 | %install |
---|
[10234] | 47 | ./Setup copy --destdir=${RPM_BUILD_ROOT} |
---|
[10156] | 48 | |
---|
| 49 | %clean |
---|
| 50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %files |
---|
| 54 | %defattr(-, root, root) |
---|
| 55 | %doc changelog LICENSE README.md |
---|
| 56 | %{_bindir}/ |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %changelog |
---|
[10234] | 60 | * Mon May 02 2016 Toshiaki Ara <ara_t@384.jp> 1.22.9.0-1 |
---|
| 61 | - update to 1.22.9.0 |
---|
| 62 | - rebuild under haskell-platform-2015.7.10.3-3 |
---|
| 63 | - delete BuildRequires: cabal-install and hscolour |
---|
| 64 | |
---|
[10156] | 65 | * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.22.8.0-2 |
---|
| 66 | - correct SPEC file |
---|
| 67 | |
---|
| 68 | * Sat Feb 20 2016 Toshiaki Ara <ara_t@384.jp> 1.22.8.0-2 |
---|
| 69 | - rebuild under ghc-7.10.3 and haskell-platform-2015.7.10.3 |
---|
| 70 | |
---|
| 71 | * Mon Feb 15 2016 Toshiaki Ara <ara_t@384.jp> 1.22.8.0-1 |
---|
| 72 | - update to 1.22.8.0 |
---|
| 73 | |
---|
| 74 | * Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-2 |
---|
| 75 | - correct Requires |
---|
| 76 | |
---|
| 77 | * Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-1 |
---|
| 78 | - subpackage of haskell-platform |
---|
| 79 | |
---|