From 7622af000155c03c61b333a4292819a881824d49 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 11 Jun 2013 18:20:35 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-setenv.spec | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/ghc-setenv.spec b/ghc-setenv.spec index 15730ef..d0c1d5c 100644 --- a/ghc-setenv.spec +++ b/ghc-setenv.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name setenv -%global common_summary Cross-platform library for setting environment variables - -%global common_description A cross-platform library for setting environment variables. - Name: ghc-%{pkg_name} Version: 0.1.0 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Cross-platform library for setting environment variables License: MIT URL: http://hackage.haskell.org/package/%{pkg_name} @@ -23,7 +18,18 @@ BuildRequires: ghc-unix-devel # End cabal-rpm deps %description -%{common_description} +A cross-platform library for setting environment variables. + + +%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 @@ -38,17 +44,24 @@ 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 +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files %changelog +* Tue Jun 11 2013 Jens Petersen - 0.1.0-2 +- update to new simplified Haskell Packaging Guidelines + * Thu Feb 28 2013 Fedora Haskell SIG - 0.1.0-1 - spec file generated by cabal-rpm-0.7.1