From 86073ba7616495ae21e238d0856287da3266a52c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:20 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-bytestring-trie.spec | 51 ++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/ghc-bytestring-trie.spec b/ghc-bytestring-trie.spec index e5ec44f..05315b7 100644 --- a/ghc-bytestring-trie.spec +++ b/ghc-bytestring-trie.spec @@ -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 - 0.2.3-12 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.2.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild