diff --git a/ghc-cmdargs.spec b/ghc-cmdargs.spec index b88973a..a8c15d1 100644 --- a/ghc-cmdargs.spec +++ b/ghc-cmdargs.spec @@ -1,17 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name cmdargs -%global common_summary Command line argument processing - -%global common_description This library provides an easy way to define command line \ -parsers. - Name: ghc-%{pkg_name} Version: 0.10.2 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Command line argument processing License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -28,7 +22,19 @@ ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description -%{common_description} +This library provides an easy way to define command line +parsers. + + +%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 @@ -43,18 +49,25 @@ ExclusiveArch: %{ghc_arches_with_ghci} %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.10.2-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.10.2-1 - update to 0.10.2