[ghc-vault] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 06:24:50 UTC 2013
commit 11e55a4e5def9d55806a23e0f00bbaf2da83e9db
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:49:09 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-vault.spec | 45 ++++++++++++++++++++++++++++++---------------
1 files changed, 30 insertions(+), 15 deletions(-)
---
diff --git a/ghc-vault.spec b/ghc-vault.spec
index 262b162..1c082ec 100644
--- a/ghc-vault.spec
+++ b/ghc-vault.spec
@@ -1,19 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name vault
-%global common_summary Typed persistent stores for arbitrary type values
-
-%global common_description A vault is a persistent store for values of arbitrary types.\
-It is like having first-class access to the storage space behind IORefs.\
-The data structure is analogous to a bank vault, where you can access\
-different bank boxes with different keys; hence the name.
-
Name: ghc-%{pkg_name}
Version: 0.2.0.4
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Persistent stores for values of arbitrary types
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -28,7 +20,22 @@ BuildRequires: ghc-unordered-containers-devel
# End cabal-rpm deps
%description
-%{common_description}
+A vault is a persistent store for values of arbitrary types.
+It is like having first-class access to the storage space behind IORefs.
+The data structure is analogous to a bank vault, where you can access
+different bank boxes with different keys; hence the name.
+Also provided is a locker type, representing a store for a single element.
+
+
+%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
@@ -43,18 +50,26 @@ BuildRequires: ghc-unordered-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
+%doc Readme.md
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.2.0.4-2
+- update to new simplified Haskell Packaging Guidelines
+
* Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 0.2.0.4-1
- update to 0.2.0.4
More information about the scm-commits
mailing list