From 84efe8db4fd77f0bebccfd49887c3a692f26e596 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 4 May 2013 22:00:48 +0900 Subject: [PATCH] update to cabal-rpm-0.8.0 now part of Haskell Platform 2013.2 --- ghc-unordered-containers.spec | 42 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/ghc-unordered-containers.spec b/ghc-unordered-containers.spec index dc00774..94decec 100644 --- a/ghc-unordered-containers.spec +++ b/ghc-unordered-containers.spec @@ -1,19 +1,12 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name unordered-containers -%global common_summary Efficient hashing-based container types - -%global common_description Efficient hashing-based container types. The containers have been optimized\ -for performance critical use, both in terms of large data quantities and\ -high speed. The declared cost of each operation is either worst-case or\ -amortized, but remains valid even if structures are shared. - Name: ghc-%{pkg_name} +# part of haskell-platform-2013.2 Version: 0.2.3.0 Release: 1%{?dist} -Summary: %{common_summary} +Summary: Efficient hashing-based container types License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -27,8 +20,24 @@ BuildRequires: ghc-hashable-devel # End cabal-rpm deps %description -%{common_description} +Efficient hashing-based container types. The containers have been +optimized for performance critical use, both in terms of large data +quantities and high speed. + +The declared cost of each operation is either worst-case or +amortized, but remains valid even if structures are shared. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{ghc_compiler} +Requires(post): %{ghc_compiler} +Requires(postun): %{ghc_compiler} +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell unordered-containers library +development files. %prep %setup -q -n %{pkg_name}-%{version} @@ -42,20 +51,25 @@ BuildRequires: ghc-hashable-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 %changelog * Tue Mar 12 2013 Jens Petersen - 0.2.3.0-1 - update to 0.2.3.0 +- part of haskell-platform-2013.2 * Wed Feb 13 2013 Fedora Release Engineering - 0.2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild