[ghc-citeproc-hs] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 09:48:54 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-citeproc-hs.spec |   44 ++++++++++++++++++++++++++++----------------
 1 files changed, 28 insertions(+), 16 deletions(-)
---
diff --git a/ghc-citeproc-hs.spec b/ghc-citeproc-hs.spec
index 87010d4..2d90414 100644
--- a/ghc-citeproc-hs.spec
+++ b/ghc-citeproc-hs.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name citeproc-hs
 
-%global common_summary Haskell Citation Style Language library
-
-%global common_description citeproc-hs is a library for rendering bibliographic reference citations\
-into a variety of styles using a macro language called\
-Citation Style Language (CSL): http://citationstyles.org/.
-
 Name:           ghc-%{pkg_name}
 Version:        0.3.8
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Citation Style Language library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -40,7 +33,20 @@ BuildRequires:  ghc-xml-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+citeproc-hs is a library for rendering bibliographic reference citations
+into a variety of styles using a macro language called
+Citation Style Language (CSL): http://citationstyles.org/.
+
+
+%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
@@ -56,22 +62,28 @@ cabal-tweak-flag hexpat False
 %install
 %ghc_lib_install
 
-%ghc_add_basepkg_file %{_datadir}/%{pkg_name}-%{version}
 
+%post devel
+%ghc_pkg_recache
 
-%ghc_devel_package
 
-%ghc_devel_description
+%postun devel
+%ghc_pkg_recache
 
 
-%ghc_devel_post_postun
+%files -f %{name}.files
+%doc LICENSE
+%{_datadir}/%{pkg_name}-%{version}
 
 
-%ghc_files LICENSE
+%files devel -f %{name}-devel.files
 %doc README
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.3.8-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Sun Mar 10 2013 Jens Petersen <petersen at redhat.com> - 0.3.8-1
 - update to 0.3.8
 
@@ -132,7 +144,7 @@ cabal-tweak-flag hexpat False
 
 * Tue May 24 2011 Jens Petersen <petersen at redhat.com> - 0.3.2-2
 - include locale files
-- drop ghc_pkg_deps 
+- drop ghc_pkg_deps
 - fix macro in comment for rpmlint
 
 * Tue May  3 2011 Jens Petersen <petersen at redhat.com> - 0.3.2-1


More information about the scm-commits mailing list