[ghc-mmap] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Wed Jun 5 08:45:36 UTC 2013
commit 197c638a56fe0849a7964a426d1e66d187b15519
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Jun 5 17:44:43 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-mmap.spec | 43 ++++++++++++++++++++++++++++---------------
1 files changed, 28 insertions(+), 15 deletions(-)
---
diff --git a/ghc-mmap.spec b/ghc-mmap.spec
index 68fa3ba..a6f96aa 100644
--- a/ghc-mmap.spec
+++ b/ghc-mmap.spec
@@ -1,19 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name mmap
-%global common_summary Memory mapped files library
-
-%global common_description A Haskell wrapper to mmap(2) or MapViewOfFile, allowing files or devices\
-to be lazily loaded into memory as strict or lazy ByteStrings, ForeignPtrs or\
-plain Ptrs, using the virtual memory subsystem to do on-demand loading.\
-Modifications are also supported.
-
Name: ghc-%{pkg_name}
Version: 0.5.8
-Release: 2%{?dist}
-Summary: %{common_summary}
+Release: 3%{?dist}
+Summary: Memory mapped files library
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +18,21 @@ BuildRequires: ghc-bytestring-devel
# End cabal-rpm deps
%description
-%{common_description}
+A Haskell wrapper to mmap(2) or MapViewOfFile, allowing files or devices
+to be lazily loaded into memory as strict or lazy ByteStrings, ForeignPtrs or
+plain Ptrs, using the virtual memory subsystem to do on-demand loading.
+Modifications are also supported.
+
+
+%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
@@ -41,18 +47,25 @@ BuildRequires: ghc-bytestring-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
+* Wed Jun 05 2013 Jens Petersen <petersen at redhat.com> - 0.5.8-3
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list