[ghc-network-conduit] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Mon Jun 10 09:39:00 UTC 2013


commit 23108e56c71b4834c32ac11c390a6041f679ba2d
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:58 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-network-conduit.spec |   37 +++++++++++++++++++++++++------------
 1 files changed, 25 insertions(+), 12 deletions(-)
---
diff --git a/ghc-network-conduit.spec b/ghc-network-conduit.spec
index e955118..4f124e0 100644
--- a/ghc-network-conduit.spec
+++ b/ghc-network-conduit.spec
@@ -1,16 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name network-conduit
 
-%global common_summary Stream socket data using conduits
-
-%global common_description %{common_summary}.
-
 Name:           ghc-%{pkg_name}
 Version:        1.0.0
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Stream socket data using conduits
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -28,7 +23,18 @@ BuildRequires:  ghc-transformers-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Stream socket data using conduits.
+
+
+%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
@@ -43,18 +49,25 @@ BuildRequires:  ghc-transformers-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
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 1.0.0-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 1.0.0-1
 - update to 1.0.0
 


More information about the scm-commits mailing list