# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name entropy # Setup uses TH %global ghc_without_dynamic 1 Name: ghc-%{pkg_name} Version: 0.2.2.1 Release: 4%{?dist} Summary: A platform independent entropy source License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Patch1: entropy-0.2.2.1-no-TH.patch 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). PRNGs should see the 'DRBG' package too. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %patch1 -p1 -b .orig %build %ghc_lib_build %install %ghc_lib_install %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %doc LICENSE %files devel -f %{name}-devel.files %changelog * Fri Jul 11 2014 Jens Petersen - 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) * Tue Jul 8 2014 Jens Petersen - 0.2.2.1-3 - update to cblrpm-0.8.11 - exclude arm due to TH segfault * Sat Aug 03 2013 Fedora Release Engineering - 0.2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jun 14 2013 Jens Petersen - 0.2.2.1-1 - update to 0.2.2.1 - Setup now uses Template Haskell - update to new simplified Haskell Packaging Guidelines * Wed Feb 13 2013 Fedora Haskell SIG - 0.2.1-1 - spec file generated by cabal-rpm-0.7.1