update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
25f05fad75
commit
b2af49833e
@ -1,18 +1,11 @@
|
|||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
||||||
|
|
||||||
%global pkg_name resourcet
|
%global pkg_name resourcet
|
||||||
|
|
||||||
%global common_summary Deterministic allocation and freeing of scarce resources
|
|
||||||
|
|
||||||
%global common_description Allocate resources which are guaranteed to be released.\
|
|
||||||
All register cleanup actions live in the IO monad, not the main monad.\
|
|
||||||
This allows both more efficient code, and for monads to be transformed.
|
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.4.5
|
Version: 0.4.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: Deterministic allocation and freeing of scarce resources
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
@ -30,7 +23,20 @@ BuildRequires: ghc-transformers-base-devel
|
|||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
Allocate resources which are guaranteed to be released.
|
||||||
|
All register cleanup actions live in the IO monad, not the main monad.
|
||||||
|
This allows both more efficient code, and for monads to be transformed.
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
%prep
|
||||||
@ -45,18 +51,25 @@ BuildRequires: ghc-transformers-base-devel
|
|||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_package
|
%post devel
|
||||||
|
%ghc_pkg_recache
|
||||||
%ghc_devel_description
|
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_post_postun
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
|
||||||
%ghc_files LICENSE
|
%files -f %{name}.files
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.4.5-2
|
||||||
|
- update to new simplified Haskell Packaging Guidelines
|
||||||
|
|
||||||
* Mon Mar 11 2013 Jens Petersen <petersen@redhat.com> - 0.4.5-1
|
* Mon Mar 11 2013 Jens Petersen <petersen@redhat.com> - 0.4.5-1
|
||||||
- update to 0.4.5
|
- update to 0.4.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user