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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 05:46:35 UTC 2013


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

    update to new simplified Haskell Packaging Guidelines

 ghc-ghc-paths.spec |   37 +++++++++++++++++++++++++------------
 1 files changed, 25 insertions(+), 12 deletions(-)
---
diff --git a/ghc-ghc-paths.spec b/ghc-ghc-paths.spec
index 056a1f9..4d5f71a 100644
--- a/ghc-ghc-paths.spec
+++ b/ghc-ghc-paths.spec
@@ -1,16 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name ghc-paths
 
-%global common_summary Interface to GHC's installation directories
-
-%global common_description Knowledge of GHC's installation directories.
-
 Name:           ghc-%{pkg_name}
 Version:        0.1.0.8
-Release:        14%{?dist}
-Summary:        %{common_summary}
+Release:        15%{?dist}
+Summary:        Interface to GHC's installation directories
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -22,7 +17,18 @@ BuildRequires:  ghc-rpm-macros
 # End cabal-rpm deps
 
 %description
-%{common_description}
+Knowledge of GHC's installation directories.
+
+
+%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
@@ -37,18 +43,25 @@ BuildRequires:  ghc-rpm-macros
 %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
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.1.0.8-15
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.0.8-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list