|
|
6b31685 |
# generated by cabal-rpm-0.11.1
|
|
|
c06fa7c |
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
c06fa7c |
|
|
|
6b31685 |
%global ed25519 ed25519-0.0.5.0
|
|
|
6b31685 |
%global cryptohashsha256 cryptohash-sha256-0.11.100.1
|
|
|
6b31685 |
%global hackagesecurity hackage-security-0.5.2.2
|
|
|
5c162e1 |
%global subpkgs %{ed25519} %{cryptohashsha256} %{hackagesecurity}
|
|
|
3144a96 |
|
|
|
6b31685 |
%bcond_with tests
|
|
|
2172611 |
|
|
|
953ac91 |
Name: cabal-install
|
|
|
16d106d |
# can only be reset when all subpkgs bumped
|
|
|
6b31685 |
Version: 1.24.0.2
|
|
|
d60a436 |
Release: 3%{?dist}
|
|
|
6b31685 |
Summary: The command-line interface for Cabal and Hackage
|
|
|
953ac91 |
|
|
|
953ac91 |
License: BSD
|
|
|
8e498d3 |
Url: https://hackage.haskell.org/package/%{name}
|
|
|
8e498d3 |
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
6b31685 |
Source1: https://hackage.haskell.org/package/%{cryptohashsha256}/%{cryptohashsha256}.tar.gz
|
|
|
6b31685 |
Source2: https://hackage.haskell.org/package/%{hackagesecurity}/%{hackagesecurity}.tar.gz
|
|
|
6b31685 |
Source3: https://hackage.haskell.org/package/%{ed25519}/%{ed25519}.tar.gz
|
|
|
6b31685 |
Source10: cabal-install.sh
|
|
|
c06fa7c |
|
|
|
953ac91 |
BuildRequires: ghc-Cabal-devel
|
|
|
6b31685 |
BuildRequires: ghc-rpm-macros-extra
|
|
|
c06fa7c |
# Begin cabal-rpm deps:
|
|
|
953ac91 |
BuildRequires: ghc-HTTP-devel
|
|
|
c06fa7c |
BuildRequires: ghc-array-devel
|
|
|
6b31685 |
BuildRequires: ghc-async-devel
|
|
|
6b31685 |
BuildRequires: ghc-base16-bytestring-devel
|
|
|
6b31685 |
BuildRequires: ghc-binary-devel
|
|
|
2172611 |
BuildRequires: ghc-bytestring-devel
|
|
|
c06fa7c |
BuildRequires: ghc-containers-devel
|
|
|
6b31685 |
#BuildRequires: ghc-cryptohash-sha256-devel
|
|
|
c06fa7c |
BuildRequires: ghc-directory-devel
|
|
|
c06fa7c |
BuildRequires: ghc-filepath-devel
|
|
|
6b31685 |
#BuildRequires: ghc-hackage-security-devel
|
|
|
6b31685 |
BuildRequires: ghc-hashable-devel
|
|
|
c06fa7c |
BuildRequires: ghc-mtl-devel
|
|
|
c06fa7c |
BuildRequires: ghc-network-devel
|
|
|
8e498d3 |
BuildRequires: ghc-network-uri-devel
|
|
|
c06fa7c |
BuildRequires: ghc-pretty-devel
|
|
|
c06fa7c |
BuildRequires: ghc-process-devel
|
|
|
953ac91 |
BuildRequires: ghc-random-devel
|
|
|
2172611 |
BuildRequires: ghc-stm-devel
|
|
|
6b31685 |
BuildRequires: ghc-tar-devel
|
|
|
953ac91 |
BuildRequires: ghc-time-devel
|
|
|
c06fa7c |
BuildRequires: ghc-unix-devel
|
|
|
c06fa7c |
BuildRequires: ghc-zlib-devel
|
|
|
2172611 |
%if %{with tests}
|
|
|
2172611 |
BuildRequires: ghc-QuickCheck-devel
|
|
|
8e498d3 |
BuildRequires: ghc-regex-posix-devel
|
|
|
6b31685 |
BuildRequires: ghc-tagged-devel
|
|
|
6b31685 |
BuildRequires: ghc-tasty-devel
|
|
|
6b31685 |
BuildRequires: ghc-tasty-hunit-devel
|
|
|
6b31685 |
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
2172611 |
%endif
|
|
|
c06fa7c |
# End cabal-rpm deps
|
|
|
f8c050d |
# for hackage-security
|
|
|
f8c050d |
BuildRequires: ghc-base64-bytestring-devel
|
|
|
f8c050d |
BuildRequires: ghc-template-haskell-devel
|
|
|
f8c050d |
|
|
|
16d106d |
Requires: ghc-Cabal-devel
|
|
|
4b0ce3c |
# for /etc/bash_completion.d/
|
|
|
4b0ce3c |
Requires: filesystem
|
|
|
4b0ce3c |
# for /etc/profile.d/
|
|
|
4b0ce3c |
Requires: setup
|
|
|
e2ca96a |
Obsoletes: cabal-dev < 0.9.2-5
|
|
|
b319f93 |
# added for F26
|
|
|
b319f93 |
Obsoletes: %{name}-common < %{version}-%{release}
|
|
|
b319f93 |
Obsoletes: %{name}-static < %{version}-%{release}
|
|
|
953ac91 |
|
|
|
953ac91 |
%description
|
|
|
953ac91 |
The 'cabal' command-line program simplifies the process of managing Haskell
|
|
|
363a2f7 |
software by automating the fetching, configuration, compilation and
|
|
|
953ac91 |
installation of Haskell libraries and programs from Hackage.
|
|
|
953ac91 |
|
|
|
953ac91 |
|
|
|
6b31685 |
%global main_version %{version}
|
|
|
6b31685 |
|
|
|
6b31685 |
%if %{defined ghclibdir}
|
|
|
6b31685 |
%ghc_lib_subpackage %{ed25519}
|
|
|
6b31685 |
%ghc_lib_subpackage %{cryptohashsha256}
|
|
|
6b31685 |
%ghc_lib_subpackage %{hackagesecurity}
|
|
|
6b31685 |
%endif
|
|
|
6b31685 |
|
|
|
6b31685 |
%global version %{main_version}
|
|
|
6b31685 |
|
|
|
6b31685 |
|
|
|
953ac91 |
%prep
|
|
|
6b31685 |
%setup -q -a1 -a2 -a3
|
|
|
6b31685 |
|
|
|
6b31685 |
cd %{hackagesecurity}
|
|
|
6b31685 |
cabal-tweak-dep-ver directory '< 1.3' '< 1.4'
|
|
|
6b31685 |
|
|
|
6b31685 |
cd ../%{ed25519}
|
|
|
6b31685 |
cabal-tweak-dep-ver ghc-prim '< 0.5' '< 0.6'
|
|
|
953ac91 |
|
|
|
953ac91 |
|
|
|
953ac91 |
%build
|
|
|
5c162e1 |
%ghc_libs_build %{subpkgs}
|
|
|
953ac91 |
%ghc_bin_build
|
|
|
953ac91 |
|
|
|
953ac91 |
|
|
|
953ac91 |
%install
|
|
|
5c162e1 |
%ghc_libs_install %{subpkgs}
|
|
|
953ac91 |
%ghc_bin_install
|
|
|
6b31685 |
|
|
|
953ac91 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
|
|
953ac91 |
cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
|
|
953ac91 |
|
|
|
953ac91 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
6b31685 |
install -pm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
953ac91 |
|
|
|
953ac91 |
|
|
|
2172611 |
%check
|
|
|
5de16bd |
%cabal_test
|
|
|
2172611 |
|
|
|
2172611 |
|
|
|
953ac91 |
%files
|
|
|
8e498d3 |
%license LICENSE
|
|
|
6b31685 |
%doc README.md changelog
|
|
|
953ac91 |
%{_bindir}/cabal
|
|
|
4b0ce3c |
%config(noreplace) %{_sysconfdir}/bash_completion.d/cabal
|
|
|
4b0ce3c |
%config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh
|
|
|
d60a436 |
%attr(0644,root,root) %{_mandir}/man1/cabal.1*
|
|
|
953ac91 |
|
|
|
953ac91 |
|
|
|
953ac91 |
%changelog
|
|
|
d60a436 |
* Wed May 24 2017 Jens Petersen <petersen@redhat.com> - 1.24.0.2-3
|
|
|
d60a436 |
- set manpage permission to 0644
|
|
|
d60a436 |
|
|
|
16d106d |
* Wed Apr 26 2017 Jens Petersen <petersen@redhat.com> - 1.24.0.2-2
|
|
|
16d106d |
- requires ghc-Cabal-devel (Matej Smid, #1445210)
|
|
|
16d106d |
|
|
|
6b31685 |
* Wed Feb 22 2017 Jens Petersen <petersen@redhat.com> - 1.24.0.2-1
|
|
|
6b31685 |
- update to 1.24.0.2
|
|
|
6b31685 |
|
|
|
8469375 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.9.0-3
|
|
|
8469375 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
8469375 |
|
|
|
b319f93 |
* Sat Jan 21 2017 Jens Petersen <petersen@redhat.com> - 1.22.9.0-2
|
|
|
b319f93 |
- drop static and common subpackages
|
|
|
b319f93 |
|
|
|
f1f6d15 |
* Sun Jun 26 2016 Jens Petersen <petersen@redhat.com> - 1.22.9.0-1
|
|
|
f1f6d15 |
- update to 1.22.9.0
|
|
|
f1f6d15 |
|
|
|
8e498d3 |
* Mon Jun 6 2016 Jens Petersen <petersen@redhat.com> - 1.22.6.0-1
|
|
|
8e498d3 |
- update to 1.22.6.0
|
|
|
8e498d3 |
|
|
|
3721328 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.1.0-3
|
|
|
3721328 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
3721328 |
|
|
|
d86fbcb |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.1.0-2
|
|
|
d86fbcb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d86fbcb |
|
|
|
f31c83e |
* Wed May 13 2015 Jens Petersen <petersen@redhat.com> - 1.18.1.0-1
|
|
|
f31c83e |
- security version update for upload command
|
|
|
f31c83e |
|
|
|
1a02f86 |
* Thu Apr 2 2015 Jens Petersen <petersen@redhat.com> - 1.18.0.8-1
|
|
|
1a02f86 |
- update to 1.18.0.8
|
|
|
1a02f86 |
|
|
|
2172611 |
* Thu Aug 7 2014 Jens Petersen <petersen@redhat.com> - 1.18.0.5-1
|
|
|
2172611 |
- update to 1.18.0.5
|
|
|
e2ca96a |
- obsolete cabal-dev
|
|
|
3144a96 |
- add static and common subpackages
|
|
|
2172611 |
|
|
|
d947564 |
* Tue Jul 8 2014 Jens Petersen <petersen@redhat.com> - 1.16.0.2-35
|
|
|
d947564 |
- f21 rebuild
|
|
|
363a2f7 |
|
|
|
f71a3e0 |
* Fri Apr 18 2014 Jens Petersen <petersen@redhat.com> - 1.16.0.2-34
|
|
|
f71a3e0 |
- bump release over haskell-platform
|
|
|
f71a3e0 |
|
|
|
4b0ce3c |
* Thu Apr 17 2014 Jens Petersen <petersen@redhat.com> - 1.16.0.2-32
|
|
|
4b0ce3c |
- mark bash_completion.d and profile.d files as config (#1069062)
|
|
|
f71a3e0 |
- require filesystem and setup to own the sysconfig dirs (#1069062)
|
|
|
4b0ce3c |
|
|
|
c06fa7c |
* Mon Feb 24 2014 Jens Petersen <petersen@redhat.com> - 1.16.0.2-31
|
|
|
c06fa7c |
- update to 1.16.0.2
|
|
|
c06fa7c |
- split out of haskell-platform (#1069062)
|
|
|
c06fa7c |
- only show cabal-install upgrade notice for verbose
|
|
|
c06fa7c |
|
|
|
953ac91 |
* Tue May 8 2012 Jens Petersen <petersen@redhat.com> - 0.14.0-1
|
|
|
953ac91 |
- update to 0.14.0 release
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Mar 20 2012 Jens Petersen <petersen@redhat.com> - 0.13.3-0.1
|
|
|
953ac91 |
- update to latest darcs
|
|
|
953ac91 |
|
|
|
953ac91 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.2-7
|
|
|
953ac91 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
953ac91 |
|
|
|
953ac91 |
* Wed Dec 28 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-6
|
|
|
953ac91 |
- rebuild for haskell-platform-2011.4.0.0
|
|
|
953ac91 |
|
|
|
953ac91 |
* Fri Dec 16 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-5
|
|
|
953ac91 |
- bring back requires ghc-compiler (Stanislav Ochotnicky, #760461)
|
|
|
953ac91 |
|
|
|
953ac91 |
* Thu Oct 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.10.2-4.2
|
|
|
953ac91 |
- rebuild with new gmp without compat lib
|
|
|
953ac91 |
|
|
|
953ac91 |
* Mon Oct 10 2011 Peter Schiffer <pschiffe@redhat.com> - 0.10.2-4.1
|
|
|
953ac91 |
- rebuild with new gmp
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Jun 21 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-4
|
|
|
953ac91 |
- ghc_arches replaces ghc_excluded_archs
|
|
|
953ac91 |
|
|
|
953ac91 |
* Mon Jun 20 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-3
|
|
|
953ac91 |
- BR ghc-Cabal-devel and use ghc_excluded_archs
|
|
|
953ac91 |
- drop ghc requires to allow local ghc
|
|
|
953ac91 |
|
|
|
953ac91 |
* Wed May 25 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-2
|
|
|
953ac91 |
- add ppc64
|
|
|
953ac91 |
|
|
|
953ac91 |
* Fri Mar 11 2011 Jens Petersen <petersen@redhat.com> - 0.10.2-1
|
|
|
953ac91 |
- update to 0.10.2
|
|
|
953ac91 |
|
|
|
953ac91 |
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.9.6-0.2
|
|
|
953ac91 |
- Enable build on sparcv9
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Feb 15 2011 Jens Petersen <petersen@redhat.com> - 0.9.6-0.1
|
|
|
953ac91 |
- update to 0.9.6 pre snapshot
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Feb 15 2011 Jens Petersen <petersen@redhat.com> - 0.9.5-0.5
|
|
|
953ac91 |
- rebuild for haskell-platform-2011.1 updates
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-0.4
|
|
|
953ac91 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
953ac91 |
|
|
|
953ac91 |
* Sun Jan 23 2011 Jens Petersen <petersen@redhat.com> - 0.9.5-0.3
|
|
|
953ac91 |
- update to cabal2spec-0.22.4
|
|
|
953ac91 |
- BR ghc-devel
|
|
|
953ac91 |
|
|
|
953ac91 |
* Sun Dec 5 2010 Jens Petersen <petersen@redhat.com> - 0.9.5-0.2
|
|
|
953ac91 |
- rebuild with HTTP-4000.1.1
|
|
|
953ac91 |
|
|
|
953ac91 |
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 0.9.5-0.1
|
|
|
953ac91 |
- update to current 0.9.5 snapshot
|
|
|
953ac91 |
|
|
|
953ac91 |
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.8.2-1
|
|
|
953ac91 |
- update to 0.8.2 for haskell-platform-2010.2.0.0
|
|
|
953ac91 |
|
|
|
953ac91 |
* Sun Jun 27 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-5
|
|
|
953ac91 |
- sync cabal2spec-0.22.1
|
|
|
953ac91 |
|
|
|
953ac91 |
* Wed May 19 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-4
|
|
|
953ac91 |
- append ~/.cabal/bin to PATH (if dir exists) with new
|
|
|
953ac91 |
/etc/profile.d/cabal-install.sh (#509699)
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Apr 27 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-3
|
|
|
953ac91 |
- rebuild against ghc-6.12.2
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Mar 23 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-2
|
|
|
953ac91 |
- rebuild against HTTP-4000.0.9 for haskell-platform-2010.1.0.0
|
|
|
953ac91 |
|
|
|
953ac91 |
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-1
|
|
|
953ac91 |
- update to 0.8.0 for ghc-6.12.1
|
|
|
953ac91 |
- add dynamic bcond
|
|
|
953ac91 |
- drop redundant buildroot and its install cleaning
|
|
|
953ac91 |
|
|
|
953ac91 |
* Wed Sep 16 2009 Jens Petersen <petersen@redhat.com> - 0.6.2-6
|
|
|
953ac91 |
- really rebuild
|
|
|
953ac91 |
|
|
|
953ac91 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-5
|
|
|
953ac91 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
953ac91 |
|
|
|
953ac91 |
* Sun May 17 2009 Jens Petersen <petersen@redhat.com> - 0.6.2-4
|
|
|
953ac91 |
- buildrequires ghc-rpm-macros (cabal-0.16)
|
|
|
953ac91 |
|
|
|
953ac91 |
* Sun Apr 26 2009 Jens Petersen <petersen@redhat.com> - 0.6.2-3
|
|
|
953ac91 |
- rebuild against ghc-6.10.2
|
|
|
953ac91 |
|
|
|
953ac91 |
* Fri Feb 27 2009 Jens Petersen <petersen@redhat.com> - 0.6.2-2
|
|
|
953ac91 |
- update for cabal2spec-0.11:
|
|
|
953ac91 |
- use global
|
|
|
953ac91 |
- fix source url
|
|
|
953ac91 |
- add ix86 and alpha archs
|
|
|
953ac91 |
|
|
|
953ac91 |
* Mon Feb 23 2009 Jens Petersen <petersen@redhat.com> - 0.6.2-1
|
|
|
953ac91 |
- update to 0.6.2 release
|
|
|
953ac91 |
|
|
|
953ac91 |
* Mon Feb 9 2009 Jens Petersen <petersen@redhat.com> - 0.6.0-3
|
|
|
953ac91 |
- fix source url
|
|
|
953ac91 |
|
|
|
953ac91 |
* Wed Jan 7 2009 Jens Petersen <petersen@redhat.com> - 0.6.0-2
|
|
|
953ac91 |
- add bash completion file
|
|
|
953ac91 |
- update cabal build macro
|
|
|
953ac91 |
|
|
|
953ac91 |
* Tue Nov 11 2008 Jens Petersen <petersen@redhat.com> - 0.6.0-1
|
|
|
953ac91 |
- initial package for Fedora
|