From 11e55a4e5def9d55806a23e0f00bbaf2da83e9db Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:49:09 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-vault.spec | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 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 - -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun +%postun devel +%ghc_pkg_recache -%ghc_files LICENSE +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files +%doc Readme.md %changelog +* Fri Jun 07 2013 Jens Petersen - 0.2.0.4-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.2.0.4-1 - update to 0.2.0.4