[ghc-cryptohash] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 09:55:57 UTC 2013
commit 49dd57fa75996692e280d03381aabb8f089c3277
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:48:28 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-cryptohash.spec | 43 ++++++++++++++++++++++++++++---------------
1 files changed, 28 insertions(+), 15 deletions(-)
---
diff --git a/ghc-cryptohash.spec b/ghc-cryptohash.spec
index e922916..b6028dd 100644
--- a/ghc-cryptohash.spec
+++ b/ghc-cryptohash.spec
@@ -1,19 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name cryptohash
-%global common_summary Crypto hashes, fast, pure and practical
-
-%global common_description A collection of crypto hashes, with a practical incremental and one-pass,\
-pure APIs, with performance close to the fastest implementations available\
-in others languages. The implementations are made in C with\
-a Haskell FFI wrapper that hide the C implementation.
-
Name: ghc-%{pkg_name}
Version: 0.8.3
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Crypto hashes, fast, pure and practical
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +18,21 @@ BuildRequires: ghc-bytestring-devel
# End cabal-rpm deps
%description
-%{common_description}
+A collection of crypto hashes, with a practical incremental and one-pass,
+pure APIs, with performance close to the fastest implementations available
+in others languages. The implementations are made in C with
+a Haskell FFI wrapper that hide the C implementation.
+
+
+%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
@@ -44,19 +50,26 @@ cabal-tweak-flag cryptoapi False
rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/README.md
-%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
%doc README.md
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.8.3-2
+- update to new simplified Haskell Packaging Guidelines
+
* Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 0.8.3-1
- update to 0.8.3
More information about the scm-commits
mailing list