[ghc-lrucache] update to simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Mon Jun 3 07:59:22 UTC 2013
commit 19722d57cf36a2ffd9e4846799c827c49afe44db
Author: Jens Petersen <petersen at redhat.com>
Date: Mon Jun 3 16:59:05 2013 +0900
update to simplified Haskell Packaging Guidelines
ghc-lrucache.spec | 44 +++++++++++++++++++++++++++++---------------
1 files changed, 29 insertions(+), 15 deletions(-)
---
diff --git a/ghc-lrucache.spec b/ghc-lrucache.spec
index e891101..fe4f3de 100644
--- a/ghc-lrucache.spec
+++ b/ghc-lrucache.spec
@@ -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
+%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
%changelog
+* Mon Jun 3 2013 Jens Petersen <petersen at redhat.com> - 1.1.1.3-2
+- update to new simplified Haskell Packaging Guidelines
+
* Fri Mar 8 2013 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 1.1.1.3-1
- spec file generated by cabal-rpm-0.7.1
More information about the scm-commits
mailing list