[ghc-blaze-markup] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Mon Jun 10 06:23:44 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-blaze-markup.spec |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/ghc-blaze-markup.spec b/ghc-blaze-markup.spec
index 6138d6b..0c7c779 100644
--- a/ghc-blaze-markup.spec
+++ b/ghc-blaze-markup.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name blaze-markup
 
-%global common_summary A blazingly fast markup combinator library for Haskell
-
-%global common_description Core modules of a blazingly fast markup combinator library for\
-the Haskell programming language. The Text.Blaze module is a good starting\
-point, as well as this tutorial: <http://jaspervdj.be/blaze/tutorial.html>.
-
 Name:           ghc-%{pkg_name}
 Version:        0.5.1.5
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        A blazingly fast markup combinator library for Haskell
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -27,7 +20,20 @@ BuildRequires:  ghc-text-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Core modules of a blazingly fast markup combinator library for
+the Haskell programming language. The Text.Blaze module is a good starting
+point, as well as this tutorial: <http://jaspervdj.be/blaze/tutorial.html>.
+
+
+%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
@@ -42,18 +48,25 @@ 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
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.5.1.5-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 0.5.1.5-1
 - update to 0.5.1.5
 


More information about the scm-commits mailing list