update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:20 +09:00
parent f6283c8fef
commit 86073ba761
1 changed files with 33 additions and 18 deletions

View File

@ -1,21 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name bytestring-trie
%global common_summary An efficient finite map from (byte)strings to values
%global common_description The implementation is based on big-endian patricia trees, \
like "Data.IntMap". We first trie on the elements of \
"Data.ByteString" and then trie on the big-endian bit \
representation of those elements. Patricia trees have \
efficient algorithms for union and other merging operations, \
but they're also quick for lookups and insertions.
Name: ghc-%{pkg_name}
Version: 0.2.3
Release: 11%{?dist}
Summary: %{common_summary}
Release: 12%{?dist}
Summary: An efficient finite map from (byte)strings to values
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -29,7 +19,25 @@ BuildRequires: ghc-bytestring-devel
# End cabal-rpm deps
%description
%{common_description}
An efficient finite map from bytestrings to values.
The implementation is based on big-endian patricia trees,
like "Data.IntMap". We first trie on the elements of
"Data.ByteString" and then trie on the big-endian bit
representation of those elements. Patricia trees have
efficient algorithms for union and other merging operations,
but they're also quick for lookups and insertions.
%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
@ -44,18 +52,25 @@ BuildRequires: ghc-bytestring-devel
%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
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.2.3-12
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild