[ghc-hakyll] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Tue Jun 11 05:36:13 UTC 2013


commit deba17e5581a53ed95a1872d21448d8699ff6e98
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:46 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-hakyll.spec |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/ghc-hakyll.spec b/ghc-hakyll.spec
index 571bc38..990c9f5 100644
--- a/ghc-hakyll.spec
+++ b/ghc-hakyll.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name hakyll
 
-%global common_summary Static website compiler Haskell library
-
-%global common_description Hakyll is a static website compiler library.\
-It provides you with the tools to create a simple or advanced static website\
-using a Haskell DSL and formats such as markdown or RST.
-
 Name:           ghc-%{pkg_name}
 Version:        4.2.1.2
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Static website compiler Haskell library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -48,7 +41,20 @@ BuildRequires:  ghc-time-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Hakyll is a static website compiler library.
+It provides you with the tools to create a simple or advanced static website
+using a Haskell DSL and formats such as markdown or RST.
+
+
+%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
@@ -67,19 +73,26 @@ cabal-tweak-flag previewServer False
 %ghc_add_basepkg_file %{_datadir}/%{pkg_name}-%{version}
 
 
-%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
 %{_bindir}/hakyll-init
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 4.2.1.2-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Sun Mar 10 2013 Jens Petersen <petersen at redhat.com> - 4.2.1.2-1
 - update to 4.2.1.2
 - no longer depends on hamlet


More information about the scm-commits mailing list