update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:18 +09:00
parent de07acaffd
commit 219324574d
1 changed files with 29 additions and 15 deletions

View File

@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name bloomfilter
%global common_summary A fast, space efficient Bloom filter implementation
%global common_description This package provides both mutable \
and immutable Bloom filter data types, \
along with a family of hash function and an easy-to-use interface.
Name: ghc-%{pkg_name}
Version: 1.2.6.10
Release: 4%{?dist}
Summary: %{common_summary}
Release: 5%{?dist}
Summary: Pure and impure Bloom Filter implementations
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -27,7 +20,19 @@ BuildRequires: ghc-deepseq-devel
# End cabal-rpm deps
%description
%{common_description}
This package provides both mutable and immutable Bloom filter data types,
along with a family of hash function and an easy-to-use interface.
%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}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
@ -37,22 +42,31 @@ BuildRequires: ghc-deepseq-devel
%build
%ghc_lib_build
%install
%ghc_lib_install
%ghc_devel_package
%ghc_devel_description
%post devel
%ghc_pkg_recache
%ghc_devel_post_postun
%postun devel
%ghc_pkg_recache
%ghc_files LICENSE
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%doc examples README.markdown
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 1.2.6.10-5
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild