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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 08:02:51 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-enumerator.spec |   81 +++++++++++++++++++++++++++++---------------------
 1 files changed, 47 insertions(+), 34 deletions(-)
---
diff --git a/ghc-enumerator.spec b/ghc-enumerator.spec
index 13bdd60..45a4def 100644
--- a/ghc-enumerator.spec
+++ b/ghc-enumerator.spec
@@ -1,38 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name enumerator
 
-%global common_summary Reliable, high-performance processing with left-fold enumerators
-
-%global common_description Enumerators are an efficient, predictable, and safe alternative to lazy I/O.\
-Discovered by Oleg Kiselyov, they allow large datasets to be processed\
-in near-constant space by pure code. Although somewhat more complex to write,\
-using enumerators instead of lazy I/O produces more correct programs.\
-\
-This library contains an enumerator implementation for Haskell, designed to\
-be both simple and efficient. Three core types are defined, along with\
-numerous helper functions:\
-\
-* /Iteratee/: Data sinks, analogous to left folds. Iteratees consume\
-a sequence of /input/ values, and generate a single /output/ value.\
-Many iteratees are designed to perform side effects (such as printing to\
-stdout), so they can also be used as monad transformers.\
-\
-* /Enumerator/: Data sources, which generate input sequences. Typical\
-enumerators read from a file handle, socket, random number generator, or\
-other external stream. To operate, enumerators are passed an iteratee, and\
-provide that iteratee with input until either the iteratee has completed its\
-computation, or EOF.\
-\
-* /Enumeratee/: Data transformers, which operate as both enumerators and\
-iteratees. Enumeratees read from an /outer/ enumerator, and provide the\
-transformed data to an /inner/ iteratee.
-
 Name:           ghc-%{pkg_name}
 Version:        0.4.19
-Release:        5%{?dist}
-Summary:        %{common_summary}
+Release:        6%{?dist}
+Summary:        Reliable, high-performance processing with left-fold enumerators
 
 License:        MIT
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -48,7 +21,40 @@ BuildRequires:  ghc-transformers-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Enumerators are an efficient, predictable, and safe alternative to lazy I/O.
+Discovered by Oleg Kiselyov, they allow large datasets to be processed
+in near-constant space by pure code. Although somewhat more complex to write,
+using enumerators instead of lazy I/O produces more correct programs.
+
+This library contains an enumerator implementation for Haskell, designed to
+be both simple and efficient. Three core types are defined, along with
+numerous helper functions:
+
+* /Iteratee/: Data sinks, analogous to left folds. Iteratees consume
+a sequence of /input/ values, and generate a single /output/ value.
+Many iteratees are designed to perform side effects (such as printing to
+stdout), so they can also be used as monad transformers.
+
+* /Enumerator/: Data sources, which generate input sequences. Typical
+enumerators read from a file handle, socket, random number generator, or
+other external stream. To operate, enumerators are passed an iteratee, and
+provide that iteratee with input until either the iteratee has completed its
+computation, or EOF.
+
+* /Enumeratee/: Data transformers, which operate as both enumerators and
+iteratees. Enumeratees read from an /outer/ enumerator, and provide the
+transformed data to an /inner/ iteratee.
+
+
+%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
@@ -63,19 +69,26 @@ BuildRequires:  ghc-transformers-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.txt
 
-%ghc_files license.txt
+
+%files devel -f %{name}-devel.files
 %doc examples
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.4.19-6
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.19-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list