2013-03-23 02:48:12 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name entropy
|
|
|
|
|
2014-07-08 07:29:12 +00:00
|
|
|
# Setup uses TH
|
|
|
|
%global ghc_without_dynamic 1
|
|
|
|
|
2013-03-23 02:48:12 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
2014-07-08 07:29:12 +00:00
|
|
|
Version: 0.2.2.1
|
2014-08-16 15:02:25 +00:00
|
|
|
Release: 5%{?dist}
|
2013-06-03 07:31:09 +00:00
|
|
|
Summary: A platform independent entropy source
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
2014-04-23 05:28:30 +00:00
|
|
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2014-07-11 04:34:06 +00:00
|
|
|
Patch1: entropy-0.2.2.1-no-TH.patch
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
2013-06-03 07:31:09 +00:00
|
|
|
A platform independent method to obtain cryptographically strong entropy
|
|
|
|
(urandom on Linux, CryptAPI on Windows, patches welcome).
|
2014-04-23 05:28:30 +00:00
|
|
|
PRNGs should see the 'DRBG' package too.
|
2013-06-03 07:31:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2014-04-23 05:28:30 +00:00
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2013-06-03 07:31:09 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2014-04-23 05:28:30 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-06-03 07:31:09 +00:00
|
|
|
|
|
|
|
%description devel
|
2014-04-23 05:28:30 +00:00
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2014-07-11 04:34:06 +00:00
|
|
|
%patch1 -p1 -b .orig
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
2013-06-03 07:31:09 +00:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
|
2013-06-03 07:31:09 +00:00
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
|
2013-06-03 07:31:09 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc LICENSE
|
2013-03-23 02:48:12 +00:00
|
|
|
|
2013-06-03 07:31:09 +00:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2013-03-23 02:48:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-08-16 15:02:25 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-11 04:34:06 +00:00
|
|
|
* Fri Jul 11 2014 Jens Petersen <petersen@redhat.com> - 0.2.2.1-4
|
|
|
|
- drop use of TemplateHaskell from Setup with patch from 0.2.2.2
|
|
|
|
so no longer need to restrict arch's (#992363)
|
|
|
|
|
2014-07-08 07:29:12 +00:00
|
|
|
* Tue Jul 8 2014 Jens Petersen <petersen@redhat.com> - 0.2.2.1-3
|
|
|
|
- update to cblrpm-0.8.11
|
2014-07-08 07:45:54 +00:00
|
|
|
- exclude arm due to TH segfault
|
2014-04-23 05:28:30 +00:00
|
|
|
|
2013-08-03 13:37:10 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-14 02:58:59 +00:00
|
|
|
* Fri Jun 14 2013 Jens Petersen <petersen@redhat.com> - 0.2.2.1-1
|
|
|
|
- update to 0.2.2.1
|
|
|
|
- Setup now uses Template Haskell
|
2013-06-03 07:31:09 +00:00
|
|
|
- update to new simplified Haskell Packaging Guidelines
|
|
|
|
|
2013-03-23 02:48:12 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.1-1
|
|
|
|
- spec file generated by cabal-rpm-0.7.1
|