update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:49:09 +09:00
parent daffedbb38
commit 11e55a4e5d
1 changed files with 31 additions and 16 deletions

View File

@ -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 <petersen@redhat.com> - 0.2.0.4-2
- update to new simplified Haskell Packaging Guidelines
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.2.0.4-1
- update to 0.2.0.4