From 5ba1b1b58f39fb4454e9479368148564965daffd Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 14 Feb 2012 09:57:53 +0900 Subject: [PATCH] import (#782000) --- .gitignore | 1 + ghc-hashtables.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 ghc-hashtables.spec diff --git a/.gitignore b/.gitignore index e69de29..2e502d5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/hashtables-1.0.1.2.tar.gz diff --git a/ghc-hashtables.spec b/ghc-hashtables.spec new file mode 100644 index 0000000..bb088ab --- /dev/null +++ b/ghc-hashtables.spec @@ -0,0 +1,77 @@ +# cabal2spec-0.25.2 +# 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.2 +Release: 1%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD +# BEGIN cabal2spec +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +ExclusiveArch: %{ghc_arches} +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} +# END cabal2spec +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-vector-prof + +%description +%{common_description} + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%ghc_devel_package + +%ghc_devel_description + + +%ghc_devel_post_postun + + +%ghc_files +%doc README.md + + +%changelog +* Mon Jan 16 2012 Jens Petersen - 1.0.1.2-1 +- BSD +- depends on hashable and vector + +* Mon Jan 16 2012 Fedora Haskell SIG +- spec file template generated by cabal2spec-0.25.2 diff --git a/sources b/sources index e69de29..105493d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9c3ab91981b9a487e5d8ce189de622aa hashtables-1.0.1.2.tar.gz