update to simplified Haskell Packaging Guidelines
This commit is contained in:
parent
0dd011ee09
commit
19722d57cf
@ -1,19 +1,11 @@
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name lrucache
|
||||
|
||||
%global common_summary Simple pure LRU cache
|
||||
|
||||
%global common_description This package contains a simple, pure LRU cache,\
|
||||
implemented in terms of "Data.Map".\
|
||||
\
|
||||
It also contains a mutable IO wrapper providing atomic updates to an LRU cache.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.1.1.3
|
||||
Release: 1%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 2%{?dist}
|
||||
Summary: A simple, pure LRU cache
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
@ -26,7 +18,22 @@ BuildRequires: ghc-containers-devel
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
This package contains a simple, pure LRU cache, implemented in
|
||||
terms of "Data.Map".
|
||||
|
||||
It also contains a mutable IO wrapper providing atomic updates to
|
||||
an LRU cache.
|
||||
|
||||
|
||||
%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 lrucache library development files.
|
||||
|
||||
|
||||
%prep
|
||||
@ -41,17 +48,24 @@ BuildRequires: ghc-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
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jun 3 2013 Jens Petersen <petersen@redhat.com> - 1.1.1.3-2
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Fri Mar 8 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.1.1.3-1
|
||||
- spec file generated by cabal-rpm-0.7.1
|
||||
|
Loading…
Reference in New Issue
Block a user