From 00b57c9cc24c342c3e2a2d92a1894242a8f5e28d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:19 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-bytestring-nums.spec | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/ghc-bytestring-nums.spec b/ghc-bytestring-nums.spec index f6cf15b..d88d9b7 100644 --- a/ghc-bytestring-nums.spec +++ b/ghc-bytestring-nums.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name bytestring-nums -%global common_summary Parse numeric literals from ByteStrings - -%global common_description %{common_summary}. - Name: ghc-%{pkg_name} Version: 0.3.6 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Parse numeric literals from ByteStrings License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -24,7 +19,18 @@ BuildRequires: ghc-containers-devel # End cabal-rpm deps %description -%{common_description} +Parse numeric literals from ByteStrings. + + +%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 @@ -39,18 +45,25 @@ BuildRequires: ghc-containers-devel %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 - 0.3.6-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.3.6-1 - update to 0.3.6