[ghc-zlib-bindings] update to simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Mon Jun 3 06:50:05 UTC 2013
commit c986d8e323e86c30a876ad1324ed224dd17ce81e
Author: Jens Petersen <petersen at redhat.com>
Date: Mon Jun 3 15:49:43 2013 +0900
update to simplified Haskell Packaging Guidelines
ghc-zlib-bindings.spec | 39 ++++++++++++++++++++++++++-------------
1 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/ghc-zlib-bindings.spec b/ghc-zlib-bindings.spec
index ee76166..aba5056 100644
--- a/ghc-zlib-bindings.spec
+++ b/ghc-zlib-bindings.spec
@@ -1,17 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name zlib-bindings
-%global common_summary Low-level bindings to the zlib package
-
-%global common_description Provides necessary functions for producing a streaming interface.\
-This is used for example by zlib-conduit and zlib-enum.
-
Name: ghc-%{pkg_name}
Version: 0.1.1.3
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Low-level bindings to the zlib package
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -25,7 +19,19 @@ BuildRequires: ghc-zlib-devel
# End cabal-rpm deps
%description
-%{common_description}
+Provides necessary functions for producing a streaming interface.
+This is used for example by zlib-conduit and zlib-enum.
+
+
+%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 zlib-bindings library development files.
%prep
@@ -40,18 +46,25 @@ BuildRequires: ghc-zlib-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
+* Mon Jun 3 2013 Jens Petersen <petersen at redhat.com> - 0.1.1.3-2
+- update to simplified Haskell Packaging Guidelines
+
* Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 0.1.1.3-1
- update to 0.1.1.3
More information about the scm-commits
mailing list