[ghc-crypto-api] update to simplified Packaging Guidelines and disable haddock on f17
Jens Petersen
petersen at fedoraproject.org
Wed Jun 19 03:28:12 UTC 2013
commit 0f953568f298976906fa821ff3386a58170b15b0
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Jun 19 11:53:44 2013 +0900
update to simplified Packaging Guidelines and disable haddock on f17
ghc-crypto-api.spec | 50 ++++++++++++++++++++++++++++++++++----------------
1 files changed, 34 insertions(+), 16 deletions(-)
---
diff --git a/ghc-crypto-api.spec b/ghc-crypto-api.spec
index 490c4b6..e90c7c6 100644
--- a/ghc-crypto-api.spec
+++ b/ghc-crypto-api.spec
@@ -1,21 +1,15 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name crypto-api
-%global common_summary A generic interface for cryptographic operations
-
-%global common_description A generic interface for cryptographic operations (hashes, ciphers, randomness).\
-Maintainers of hash and cipher implementations are encouraged to add instances\
-for the classes defined in Crypto.Classes. Crypto users are similarly\
-encouraged to use the interfaces defined in the Classes module.\
-Any concepts or functions of general use to more than one cryptographic\
-algorithm (eg padding) is within the scope of this package.
+%if 0%{?fedora} <= 17
+echo %%global with_haddock 1
+%endif
Name: ghc-%{pkg_name}
Version: 0.11
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: A generic interface for cryptographic operations
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -32,7 +26,23 @@ BuildRequires: ghc-transformers-devel
# End cabal-rpm deps
%description
-%{common_description}
+A generic interface for cryptographic operations (hashes, ciphers, randomness).
+Maintainers of hash and cipher implementations are encouraged to add instances
+for the classes defined in Crypto.Classes. Crypto users are similarly
+encouraged to use the interfaces defined in the Classes module.
+Any concepts or functions of general use to more than one cryptographic
+algorithm (eg padding) is within the scope of this package.
+
+
+%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 development files for the Haskell %{pkg_name} library.
%prep
@@ -47,18 +57,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
-%ghc_files LICENSE
+
+%files devel -f %{name}-devel.files
%changelog
+* Wed Jun 19 2013 Jens Petersen <petersen at redhat.com> - 0.11-2
+- update to new simplified Haskell Packaging Guidelines
+- disable failing haddock on F17
+
* Fri Mar 22 2013 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 0.11-1
- spec file generated by cabal-rpm-0.7.1
More information about the scm-commits
mailing list