From a58c80eb0422282cbcfecd67bf0be79a772a577a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:03 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-NumInstances.spec | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/ghc-NumInstances.spec b/ghc-NumInstances.spec index 4aa7287..e4f49cd 100644 --- a/ghc-NumInstances.spec +++ b/ghc-NumInstances.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name NumInstances -%global common_summary Instances of numeric classes for functions and tuples - -%global common_description %{common_summary}. - Name: ghc-%{pkg_name} Version: 1.0 -Release: 3%{?dist} -Summary: %{common_summary} +Release: 4%{?dist} +Summary: Instances of numeric classes for functions and tuples 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} +%{common_summary}. + + +%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 - -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun +%postun devel +%ghc_pkg_recache -%ghc_files LICENSE +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files %changelog +* Fri Jun 07 2013 Jens Petersen - 1.0-4 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild