|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
# cabal2spec-0.25.2
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
|
|
%global pkg_name digest
|
|
|
|
|
|
|
|
|
|
%global common_summary Haskell %{pkg_name} library
|
|
|
|
|
%global common_summary Cryptographic hashes for bytestrings
|
|
|
|
|
|
|
|
|
|
%global common_description This package provides efficient cryptographic hash implementations for strict\
|
|
|
|
|
and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are\
|
|
|
|
@ -12,20 +11,20 @@ implemented as FFI bindings to efficient code from zlib.
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.0.1.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: BSD
|
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
|
ExclusiveArch: %{ghc_arches}
|
|
|
|
|
Patch0: digest-0.0.1.1-bytestring-in-base.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
|
|
|
|
|
# END cabal2spec
|
|
|
|
|
BuildRequires: zlib-devel%{?_isa}
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
BuildRequires: zlib-devel%{?_isa}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{common_description}
|
|
|
|
@ -33,6 +32,7 @@ BuildRequires: ghc-bytestring-devel
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
%patch0 -p1 -b .orig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -56,6 +56,10 @@ Requires: zlib-devel%{?_isa}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.0.1.1-4
|
|
|
|
|
- update with cabal-rpm
|
|
|
|
|
- disable bytestring-in-base flag with patch
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|