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

Jens Petersen petersen at fedoraproject.org
Tue Jun 11 07:38:31 UTC 2013


commit 1cdae8fda683d0625e1ff8186f0ae58f2f63ccf0
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Jun 11 16:37:38 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-HSH.spec |   43 ++++++++++++++++++++++++++++---------------
 1 files changed, 28 insertions(+), 15 deletions(-)
---
diff --git a/ghc-HSH.spec b/ghc-HSH.spec
index bbb21fc..0725929 100644
--- a/ghc-HSH.spec
+++ b/ghc-HSH.spec
@@ -1,19 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name HSH
 
-%global common_summary Library to mix shell scripting with Haskell programs
-
-%global common_description HSH is designed to let you mix and match shell expressions with\
-Haskell programs. With HSH, it is possible to easily run shell commands,\
-capture their output or provide their input, and pipe them to and from\
-other shell commands and arbitrary Haskell functions at will.
-
 Name:           ghc-%{pkg_name}
 Version:        2.0.4
-Release:        4%{?dist}
-Summary:        %{common_summary}
+Release:        5%{?dist}
+Summary:        Library to mix shell scripting with Haskell programs
 
 License:        LGPLv2+
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -36,7 +28,21 @@ BuildRequires:  ghc-unix-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+HSH is designed to let you mix and match shell expressions with
+Haskell programs. With HSH, it is possible to easily run shell commands,
+capture their output or provide their input, and pipe them to and from
+other shell commands and arbitrary Haskell functions at will.
+
+
+%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
@@ -51,18 +57,25 @@ BuildRequires:  ghc-unix-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 COPYING COPYRIGHT
 
-%ghc_files COPYING COPYRIGHT
+
+%files devel -f %{name}-devel.files
 
 
 %changelog
+* Tue Jun 11 2013 Jens Petersen <petersen at redhat.com> - 2.0.4-5
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.4-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list