[ghc-entropy] update to 0.2.2 and new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Mon Jun 3 07:31:59 UTC 2013


commit 945082d36e22025ff6e66d9a8fd6ddc1c346698c
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jun 3 16:31:09 2013 +0900

    update to 0.2.2 and new simplified Haskell Packaging Guidelines

 .gitignore       |    1 +
 ghc-entropy.spec |   44 +++++++++++++++++++++++++++++---------------
 sources          |    2 +-
 3 files changed, 31 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 22bd768..888e1db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /entropy-0.2.1.tar.gz
+/entropy-0.2.2.tar.gz
diff --git a/ghc-entropy.spec b/ghc-entropy.spec
index 5db5b79..4d5009b 100644
--- a/ghc-entropy.spec
+++ b/ghc-entropy.spec
@@ -1,19 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name entropy
 
-%global common_summary A platform independent entropy source
-
-%global common_description A platform independent method to obtain cryptographically strong entropy\
-(urandom on Linux, CryptAPI on Windows, patches welcome).\
-Users looking for cryptographically strong (number-theoretically\
-sound) PRNGs should see the 'DRBG' package too!.
-
 Name:           ghc-%{pkg_name}
-Version:        0.2.1
+Version:        0.2.2
 Release:        1%{?dist}
-Summary:        %{common_summary}
+Summary:        A platform independent entropy source
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +18,21 @@ BuildRequires:  ghc-bytestring-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+A platform independent method to obtain cryptographically strong entropy
+(urandom on Linux, CryptAPI on Windows, patches welcome).
+Users looking for cryptographically strong (number-theoretically
+sound) PRNGs should see the 'DRBG' package too!.
+
+
+%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 entropy library development files.
 
 
 %prep
@@ -41,17 +47,25 @@ BuildRequires:  ghc-bytestring-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
+* Mon Jun 03 2013 Jens Petersen <petersen at redhat.com> - 0.2.2-1
+- update to 0.2.2
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 0.2.1-1
 - spec file generated by cabal-rpm-0.7.1
diff --git a/sources b/sources
index 3686469..bff2fbd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9b18044a0435ff29289b21a36f4594f5  entropy-0.2.1.tar.gz
+9c4498dbb38c8b98c9bb2df370ef0342  entropy-0.2.2.tar.gz


More information about the scm-commits mailing list