ghc-entropy/ghc-entropy.spec

91 lines
2.4 KiB
RPMSpec
Raw Normal View History

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
Release: 5%{?dist}
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
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
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.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-04-23 05:28:30 +00:00
Provides: %{name}-static = %{version}-%{release}
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}
%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}
%patch1 -p1 -b .orig
2013-03-23 02:48:12 +00:00
%build
%ghc_lib_build
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache
2013-03-23 02:48:12 +00:00
%postun devel
%ghc_pkg_recache
2013-03-23 02:48:12 +00:00
%files -f %{name}.files
%doc LICENSE
2013-03-23 02:48:12 +00:00
%files devel -f %{name}-devel.files
2013-03-23 02:48:12 +00:00
%changelog
* 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
* 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
- exclude arm due to TH segfault
2014-04-23 05:28:30 +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
* 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
- 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