From 7f49ab617109492927457c343bce957dce5b9124 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 11 Jun 2013 14:51:15 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-MissingH.spec | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/ghc-MissingH.spec b/ghc-MissingH.spec index 33dd02f..6a1f182 100644 --- a/ghc-MissingH.spec +++ b/ghc-MissingH.spec @@ -1,18 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name MissingH -%global common_summary Large utility library - -%global common_description MissingH is a library of all sorts of utility functions for \ -Haskell programmers. It is written in pure Haskell and thus \ -should be extremely portable and easy to use. - Name: ghc-%{pkg_name} Version: 1.2.0.0 Release: 2%{?dist} -Summary: %{common_summary} +Summary: Large utility library # src/Data/Hash/MD5.lhs is BSD or GPL+ # src/Data/Hash/CRC32/Posix.hs is GPL+ @@ -44,7 +37,20 @@ BuildRequires: ghc-unix-devel # End cabal-rpm deps %description -%{common_description} +MissingH is a library of all sorts of utility functions for +Haskell programmers. It is written in pure Haskell and thus +should be extremely portable and easy to use. + + +%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 @@ -59,19 +65,26 @@ BuildRequires: ghc-unix-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 3rd-party-licenses +%files -f %{name}.files +%doc LICENSE 3rd-party-licenses + + +%files devel -f %{name}-devel.files %doc announcements TODO %changelog +* Tue Jun 11 2013 Jens Petersen - 1.2.0.0-2 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 1.2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild