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

Jens Petersen petersen at fedoraproject.org
Tue Jun 11 10:26:19 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-Stream.spec |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/ghc-Stream.spec b/ghc-Stream.spec
index 6b4db4a..5ed1551 100644
--- a/ghc-Stream.spec
+++ b/ghc-Stream.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name Stream
 
-%global common_summary Provides functions to create and manipulate infinite lists
-
-%global common_description This package implements functions, analogous to \
-those from Data.List, to create and manipulate infinite lists: \
-data Stream a = Cons a (Stream a).
-
 Name:           ghc-%{pkg_name}
 Version:        0.4.6.1
-Release:        3%{?dist}
-Summary:        %{common_summary}
+Release:        4%{?dist}
+Summary:        A library for manipulating infinite lists
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +19,20 @@ BuildRequires:  ghc-lazysmallcheck-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This package implements functions, analogous to
+those from Data.List, to create and manipulate infinite lists:
+data Stream a = Cons a (Stream a).
+
+
+%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
@@ -41,18 +47,25 @@ BuildRequires:  ghc-lazysmallcheck-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.4.6.1-4
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.6.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list