diff --git a/cryptohash-cryptoapi-flag.patch b/cryptohash-cryptoapi-flag.patch new file mode 100644 index 0000000..3fdda4f --- /dev/null +++ b/cryptohash-cryptoapi-flag.patch @@ -0,0 +1,11 @@ +--- cryptohash-0.7.5/cryptohash.cabal~ 2012-04-23 01:37:51.000000000 +0900 ++++ cryptohash-0.7.5/cryptohash.cabal 2012-11-19 13:12:48.015260203 +0900 +@@ -34,7 +34,7 @@ + + Flag cryptoapi + Description: Defines crypto-api instances +- Default: True ++ Default: False + + Library + Build-Depends: base >= 4 && < 6, bytestring diff --git a/ghc-cryptohash.spec b/ghc-cryptohash.spec index 2ad1e07..4f390d4 100644 --- a/ghc-cryptohash.spec +++ b/ghc-cryptohash.spec @@ -3,10 +3,8 @@ %global pkg_name cryptohash -# common part of summary for all the subpackages %global common_summary Crypto hashes, fast, pure and practical -# main description used for all the subpackages %global common_description A collection of crypto hashes, with a practical incremental and one-pass,\ pure APIs, with performance close to the fastest implementations available\ in others languages. The implementations are made in C with\ @@ -20,14 +18,12 @@ Summary: %{common_summary} License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Patch0: cryptohash-cryptoapi-flag.patch BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-cereal-devel -BuildRequires: ghc-crypto-api-devel -BuildRequires: ghc-tagged-devel # End cabal-rpm deps %description @@ -36,6 +32,7 @@ BuildRequires: ghc-tagged-devel %prep %setup -q -n %{pkg_name}-%{version} +%patch0 -p1 -b .orig %build @@ -45,7 +42,7 @@ BuildRequires: ghc-tagged-devel %install %ghc_lib_install -rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version} +rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/README.md %ghc_devel_package @@ -63,6 +60,7 @@ rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version} %changelog * Sat Nov 17 2012 Jens Petersen - 0.7.5-4 - update with cabal-rpm +- disable cryptoapi flag until crypto-api packaged * Thu Jul 19 2012 Fedora Release Engineering - 0.7.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild