[ghc-mtlparse] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Wed Jun 5 08:25:24 UTC 2013


commit 3f03aff8a5436f3b1e966755f11ebc8788964387
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jun 5 17:23:20 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-mtlparse.spec |   39 ++++++++++++++++++++++++++-------------
 1 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/ghc-mtlparse.spec b/ghc-mtlparse.spec
index e65dc99..509410e 100644
--- a/ghc-mtlparse.spec
+++ b/ghc-mtlparse.spec
@@ -1,17 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name mtlparse
 
-%global common_summary Parse library using mtl package
-
-%global common_description The library provides Parse and ParseT like State and StateT,\
-and eases the implementation of look-ahead and look-behind parsers.
-
 Name:           ghc-%{pkg_name}
 Version:        0.1.2
-Release:        7%{?dist}
-Summary:        %{common_summary}
+Release:        8%{?dist}
+Summary:        Parse library using mtl package
 
 License:        LGPLv3+
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -24,7 +18,19 @@ BuildRequires:  ghc-mtl-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+The library provides Parse and ParseT like State and StateT,
+and eases the implementation of look-ahead and look-behind parsers.
+
+
+%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
@@ -39,18 +45,25 @@ BuildRequires:  ghc-mtl-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
+* Wed Jun 05 2013 Jens Petersen <petersen at redhat.com> - 0.1.2-8
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.2-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list