|
|
|
@ -1,38 +1,45 @@
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
|
|
%global pkg_name digest
|
|
|
|
|
|
|
|
|
|
%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\
|
|
|
|
|
implemented as FFI bindings to efficient code from zlib.
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.0.1.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
Version: 0.0.1.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Cryptographic hashes for bytestrings
|
|
|
|
|
|
|
|
|
|
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: digest-0.0.1.1-bytestring-in-base.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
BuildRequires: zlib-devel%{?_isa}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{common_description}
|
|
|
|
|
This package provides efficient cryptographic hash implementations for
|
|
|
|
|
strict and lazy bytestrings. For now, CRC32 and Adler32 are supported;
|
|
|
|
|
they are implemented as FFI bindings to efficient code from zlib.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
Requires: zlib-devel%{?_isa}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
%patch0 -p1 -b .orig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -43,19 +50,26 @@ BuildRequires: zlib-devel%{?_isa}
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_devel_package
|
|
|
|
|
Requires: zlib-devel%{?_isa}
|
|
|
|
|
%post devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
%ghc_devel_description
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
%ghc_devel_post_postun
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
%ghc_files LICENSE
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.0.1.2-1
|
|
|
|
|
- update to 0.0.1.2
|
|
|
|
|
- update to new simplified Haskell Packaging Guidelines
|
|
|
|
|
|
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|