[ghc-hashable] update to cabal-rpm-0.8.0

Jens Petersen petersen at fedoraproject.org
Sat May 4 12:56:28 UTC 2013


commit c8fe550627e9cf05e9797b1de867d529ecb90e07
Author: Jens Petersen <petersen at redhat.com>
Date:   Sat May 4 21:55:25 2013 +0900

    update to cabal-rpm-0.8.0
    
    now part of Haskell Platform 2013.2

 ghc-hashable.spec |   45 ++++++++++++++++++++++++++++++---------------
 1 files changed, 30 insertions(+), 15 deletions(-)
---
diff --git a/ghc-hashable.spec b/ghc-hashable.spec
index c241622..4a347b2 100644
--- a/ghc-hashable.spec
+++ b/ghc-hashable.spec
@@ -1,19 +1,12 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name hashable
 
-%global common_summary Class for types convertable to a hash value
-
-%global common_description This package defines a class, Hashable, for types that can be\
-converted to a hash value. This class exists for the benefit of\
-hashing-based data structures. The package provides instances for\
-basic types and a way to combine hash values.
-
 Name:           ghc-%{pkg_name}
+# part of haskell-platform-2013.2
 Version:        1.1.2.5
-Release:        2%{?dist}
-Summary:        %{common_summary}
+Release:        3%{?dist}
+Summary:        Class for types convertable to a hash value
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -27,9 +20,23 @@ BuildRequires:  ghc-text-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This package defines a class, 'Hashable', for types that
+can be converted to a hash value.  This class
+exists for the benefit of hashing-based data
+structures.  The package provides instances for
+basic types and a way to combine hash values.
 
 
+%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 hashable library development files.
+
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
@@ -42,19 +49,27 @@ BuildRequires:  ghc-text-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
+* Sat May  4 2013 Jens Petersen <petersen at redhat.com> - 1.1.2.5-3
+- part of haskell-platform-2013.2
+- update to cabal-rpm-0.8.0
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.2.5-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list