[ghc-base16-bytestring] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Tue Jun 11 10:38:29 UTC 2013


commit 270222487368ccba35129374a7840af9252253e3
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:10 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-base16-bytestring.spec |   37 +++++++++++++++++++++++++------------
 1 files changed, 25 insertions(+), 12 deletions(-)
---
diff --git a/ghc-base16-bytestring.spec b/ghc-base16-bytestring.spec
index 916ed80..9a5aeba 100644
--- a/ghc-base16-bytestring.spec
+++ b/ghc-base16-bytestring.spec
@@ -1,16 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name base16-bytestring
 
-%global common_summary Fast hex encoding and decoding for ByteStrings
-
-%global common_description Fast base16 (hex) encoding and decoding for ByteStrings.
-
 Name:           ghc-%{pkg_name}
 Version:        0.1.1.5
-Release:        5%{?dist}
-Summary:        %{common_summary}
+Release:        6%{?dist}
+Summary:        Fast hex encoding and decoding for ByteStrings
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -23,7 +18,18 @@ BuildRequires:  ghc-bytestring-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Fast base16 (hex) encoding and decoding for ByteStrings.
+
+
+%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
@@ -38,19 +44,26 @@ 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
 %doc README.markdown
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.1.1.5-6
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.1.5-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list