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

Jens Petersen petersen at fedoraproject.org
Wed Jun 5 10:45:49 UTC 2013


commit 59c2721937f888bb098e301e6fe106731735e77c
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jun 5 19:44:41 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-haskeline.spec |   45 +++++++++++++++++++++++++++++----------------
 1 files changed, 29 insertions(+), 16 deletions(-)
---
diff --git a/ghc-haskeline.spec b/ghc-haskeline.spec
index 18c6721..f6601b2 100644
--- a/ghc-haskeline.spec
+++ b/ghc-haskeline.spec
@@ -1,20 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name haskeline
 
-%global common_summary Haskell command-line interface for user input
-
-%global common_description Haskeline provides a user interface for line input in command-line programs.\
-This library is similar in purpose to readline, but since it is written in\
-Haskell it is (hopefully) more easily used in other Haskell programs.\
-\
-Haskeline runs both on POSIX-compatible systems and on Windows.
-
 Name:           ghc-%{pkg_name}
 Version:        0.7.0.3
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Haskell command-line interface for user input
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -33,7 +24,22 @@ BuildRequires:  ghc-unix-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Haskeline provides a user interface for line input in command-line programs.
+This library is similar in purpose to readline, but since it is written in
+Haskell it is (hopefully) more easily used in other Haskell programs.
+
+Haskeline runs both on POSIX-compatible systems and on Windows.
+
+
+%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
@@ -48,20 +54,27 @@ 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 LICENSE
 
-%ghc_files LICENSE
+
+%files devel -f %{name}-devel.files
 %doc CHANGES
 %doc examples
 
 
 %changelog
+* Wed Jun 05 2013 Jens Petersen <petersen at redhat.com> - 0.7.0.3-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Mon Mar 11 2013 Jens Petersen <petersen at redhat.com> - 0.7.0.3-1
 - update to 0.7.0.3
 


More information about the scm-commits mailing list