0032d7c
# https://fedoraproject.org/wiki/Packaging:Haskell
0032d7c
0032d7c
%global pkg_name entropy
0032d7c
71f43e3
# Setup uses TH
71f43e3
%global ghc_without_dynamic 1
71f43e3
0032d7c
Name:           ghc-%{pkg_name}
71f43e3
Version:        0.2.2.1
0032d7c
Release:        1%{?dist}
945082d
Summary:        A platform independent entropy source
0032d7c
0032d7c
License:        BSD
0032d7c
URL:            http://hackage.haskell.org/package/%{pkg_name}
0032d7c
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
0032d7c
0032d7c
BuildRequires:  ghc-Cabal-devel
0032d7c
BuildRequires:  ghc-rpm-macros
0032d7c
# Begin cabal-rpm deps:
0032d7c
BuildRequires:  ghc-bytestring-devel
0032d7c
# End cabal-rpm deps
71f43e3
# Setup uses TH
71f43e3
ExclusiveArch:  %{ghc_arches_with_ghci}
71f43e3
BuildRequires:  ghc-template-haskell-devel
0032d7c
0032d7c
%description
945082d
A platform independent method to obtain cryptographically strong entropy
945082d
(urandom on Linux, CryptAPI on Windows, patches welcome).
945082d
Users looking for cryptographically strong (number-theoretically
945082d
sound) PRNGs should see the 'DRBG' package too!.
945082d
945082d
945082d
%package devel
945082d
Summary:        Haskell %{pkg_name} library development files
945082d
Requires:       ghc-compiler = %{ghc_version}
945082d
Requires(post): ghc-compiler = %{ghc_version}
945082d
Requires(postun): ghc-compiler = %{ghc_version}
945082d
Requires:       %{name} = %{version}-%{release}
945082d
945082d
%description devel
945082d
This package provides the Haskell entropy library development files.
0032d7c
0032d7c
0032d7c
%prep
0032d7c
%setup -q -n %{pkg_name}-%{version}
0032d7c
0032d7c
0032d7c
%build
0032d7c
%ghc_lib_build
0032d7c
0032d7c
0032d7c
%install
0032d7c
%ghc_lib_install
0032d7c
0032d7c
945082d
%post devel
945082d
%ghc_pkg_recache
0032d7c
0032d7c
945082d
%postun devel
945082d
%ghc_pkg_recache
0032d7c
0032d7c
945082d
%files -f %{name}.files
945082d
%doc LICENSE
0032d7c
945082d
945082d
%files devel -f %{name}-devel.files
0032d7c
0032d7c
0032d7c
%changelog
71f43e3
* Fri Jun 14 2013 Jens Petersen <petersen@redhat.com> - 0.2.2.1-1
71f43e3
- update to 0.2.2.1
71f43e3
- Setup now uses Template Haskell
945082d
- update to new simplified Haskell Packaging Guidelines
945082d
0032d7c
* Wed Feb 13 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.1-1
0032d7c
- spec file generated by cabal-rpm-0.7.1