[ghc-snap-core] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Tue Jun 11 04:55:15 UTC 2013
commit a26ad1c82ad225b25408e20b0d01eac8a3a3cb02
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:49:06 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-snap-core.spec | 41 +++++++++++++++++++++++++++--------------
1 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/ghc-snap-core.spec b/ghc-snap-core.spec
index be34d23..8339a8c 100644
--- a/ghc-snap-core.spec
+++ b/ghc-snap-core.spec
@@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name snap-core
-%global common_summary Snap web framework core library
-
-%global common_description Snap is a simple and fast web development framework and server written\
-in Haskell. This library contains the core definitions and types for\
-the Snap framework.
-
Name: ghc-%{pkg_name}
Version: 0.9.3.1
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Snap web framework core library
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -48,7 +41,20 @@ BuildRequires: ghc-zlib-enum-devel
Patch1: snap-core-0.9.2.2-portable-flag.patch
%description
-%{common_description}
+Snap is a simple and fast web development framework and server written
+in Haskell. This library contains the core definitions and types for
+the Snap framework.
+
+
+%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
@@ -72,19 +78,26 @@ Patch1: snap-core-0.9.2.2-portable-flag.patch
%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
%doc CONTRIBUTORS README*.md
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.9.3.1-2
+- update to new simplified Haskell Packaging Guidelines
+
* Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 0.9.3.1-1
- update to 0.9.3.1
More information about the scm-commits
mailing list