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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 09:50:46 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-cereal.spec |   47 +++++++++++++++++++++++++++++------------------
 1 files changed, 29 insertions(+), 18 deletions(-)
---
diff --git a/ghc-cereal.spec b/ghc-cereal.spec
index cc934cf..0cd2faf 100644
--- a/ghc-cereal.spec
+++ b/ghc-cereal.spec
@@ -1,21 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name cereal
 
-%global common_summary Binary serialization library
-
-%global common_description A binary serialization library, similar to binary, that \
-introduces an isolate primitive for parser isolation, and \
-replaces the asynchronous errors with a user-handleable \
-Either type. Similar to binary in performance, but uses a \
-strict ByteString instead of a lazy ByteString, thus \
-restricting it to operating on finite inputs.
-
 Name:           ghc-%{pkg_name}
 Version:        0.3.5.2
-Release:        5%{?dist}
-Summary:        %{common_summary}
+Release:        6%{?dist}
+Summary:        Binary serialization library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -24,14 +14,28 @@ Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
-
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+A binary serialization library, similar to binary, that introduces an isolate
+primitive for parser isolation, and replaces the asynchronous errors with a
+user-handleable Either type.  Similar to binary in performance, but uses a
+strict ByteString instead of a lazy ByteString, thus restricting it to
+operating on finite inputs.
+
+
+%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
@@ -46,18 +50,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 LICENSE
 
-%ghc_files LICENSE
+
+%files devel -f %{name}-devel.files
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.3.5.2-6
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.5.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list