[ghc-hashtables] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 06:29:42 UTC 2013
commit cb047a30967f354057b284ff94022c6620e1022d
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:48:50 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-hashtables.spec | 67 ++++++++++++++++++++++++++++++--------------------
1 files changed, 40 insertions(+), 27 deletions(-)
---
diff --git a/ghc-hashtables.spec b/ghc-hashtables.spec
index ac1fdcd..395ea04 100644
--- a/ghc-hashtables.spec
+++ b/ghc-hashtables.spec
@@ -1,31 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name hashtables
-%global common_summary Mutable hash tables in the ST monad
-
-%global common_description This package provides a couple of different implementations of mutable\
-hash tables in the ST monad, as well as a typeclass abstracting their\
-common operations, and a set of wrappers to use the hash tables in the\
-IO monad.\
-\
-This package currently contains three hash table implementations:\
-\
-1. Data.HashTable.ST.Basic contains a basic open-addressing hash table\
-using linear probing as the collision strategy.\
-\
-2. Data.HashTable.ST.Cuckoo contains an implementation of "cuckoo hashing"\
-which has worst-case O(1) lookups and can reach a high "load factor".\
-\
-3. Data.HashTable.ST.Linear contains a linear hash table, which trades\
-some insert and lookup performance for higher space efficiency and\
-much shorter delays when expanding the table.
-
Name: ghc-%{pkg_name}
Version: 1.0.1.8
-Release: 2%{?dist}
-Summary: %{common_summary}
+Release: 3%{?dist}
+Summary: Mutable hash tables in the ST monad
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -40,7 +20,33 @@ BuildRequires: ghc-vector-devel
# End cabal-rpm deps
%description
-%{common_description}
+This package provides a couple of different implementations of mutable
+hash tables in the ST monad, as well as a typeclass abstracting their
+common operations, and a set of wrappers to use the hash tables in the
+IO monad.
+
+This package currently contains three hash table implementations:
+
+1. Data.HashTable.ST.Basic contains a basic open-addressing hash table
+using linear probing as the collision strategy.
+
+2. Data.HashTable.ST.Cuckoo contains an implementation of "cuckoo hashing"
+which has worst-case O(1) lookups and can reach a high "load factor".
+
+3. Data.HashTable.ST.Linear contains a linear hash table, which trades
+some insert and lookup performance for higher space efficiency and
+much shorter delays when expanding the table.
+
+
+%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
@@ -55,19 +61,26 @@ BuildRequires: ghc-vector-devel
%ghc_lib_install
-%ghc_devel_package
+%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
%doc README.md
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 1.0.1.8-3
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list