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

Jens Petersen petersen at fedoraproject.org
Tue Jun 4 03:16:04 UTC 2013


commit 57388a0effd62ccc01c0cfcd5ef1f0eaa7adc5df
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Jun 4 12:14:42 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-stringsearch.spec |   51 ++++++++++++++++++++++++++++++------------------
 1 files changed, 32 insertions(+), 19 deletions(-)
---
diff --git a/ghc-stringsearch.spec b/ghc-stringsearch.spec
index 4e6c1b1..aef3219 100644
--- a/ghc-stringsearch.spec
+++ b/ghc-stringsearch.spec
@@ -1,23 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name stringsearch
 
-%global common_summary Fast searching, splitting and replacing of ByteStrings
-
-%global common_description This package provides several functions to quickly\
-search for substrings in strict or lazy ByteStrings.\
-It also provides functions for breaking or splitting\
-on substrings and replacing all occurrences of a\
-substring (the first in case of overlaps) with another.\
-GHC before 6.10 are no longer supported, other compilers\
-only if they support BangPatterns. If you need it to\
-work with other compilers, send a feature request.
-
 Name:           ghc-%{pkg_name}
 Version:        0.3.6.4
-Release:        2%{?dist}
-Summary:        %{common_summary}
+Release:        3%{?dist}
+Summary:        Fast searching, splitting and replacing of ByteStrings
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -32,7 +20,25 @@ BuildRequires:  ghc-containers-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This package provides several functions to quickly
+search for substrings in strict or lazy ByteStrings.
+It also provides functions for breaking or splitting
+on substrings and replacing all occurrences of a
+substring (the first in case of overlaps) with another.
+GHC before 6.10 are no longer supported, other compilers
+only if they support BangPatterns. If you need it to
+work with other compilers, send a feature request.
+
+
+%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
@@ -47,18 +53,25 @@ BuildRequires:  ghc-containers-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 LICENCE
 
-%ghc_files LICENCE
+
+%files devel -f %{name}-devel.files
 
 
 %changelog
+* Tue Jun 04 2013 Jens Petersen <petersen at redhat.com> - 0.3.6.4-3
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Jan 30 2013 Ben Boeckel <mathstuf at gmail.com> - 0.3.6.4-2
 - Initial import into Fedora
 


More information about the scm-commits mailing list