From 3c722480c86a63b7edf469d6558b5481af3a8272 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Jun 05 2013 10:20:03 +0000 Subject: update to 5.0 and simplified Haskell Packaging Guidelines --- diff --git a/.gitignore b/.gitignore index 682b7fc..fbf9c20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /hs-bibutils-4.15.tar.gz /hs-bibutils-4.17.tar.gz +/hs-bibutils-5.0.tar.gz diff --git a/ghc-hs-bibutils.spec b/ghc-hs-bibutils.spec index 56e4e2e..1193b7e 100644 --- a/ghc-hs-bibutils.spec +++ b/ghc-hs-bibutils.spec @@ -1,18 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name hs-bibutils -%global common_summary Haskell bindings to bibutils - -%global common_description Haskell bindings to Chris Putnam's bibutils, a library that\ -converts between various bibliography formats using a common\ -MODS-format XML intermediate. - Name: ghc-%{pkg_name} -Version: 4.17 -Release: 2%{?dist} -Summary: %{common_summary} +Version: 5.0 +Release: 1%{?dist} +Summary: Haskell bindings to bibutils License: GPL+ URL: http://hackage.haskell.org/package/%{pkg_name} @@ -28,7 +21,23 @@ BuildRequires: pkgconfig(bibutils) # End cabal-rpm deps %description -%{common_description} +Haskell bindings to Chris Putnam's bibutils, a library that +converts between various bibliography formats using a common +MODS-format XML intermediate. + + +%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} +# Begin cabal-rpm deps: +Requires: pkgconfig(bibutils) +# End cabal-rpm deps + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep @@ -48,22 +57,27 @@ rm -r bibutils %ghc_lib_install -%ghc_devel_package -# Begin cabal-rpm deps: -Requires: pkgconfig(bibutils) -# End cabal-rpm deps +%post devel +%ghc_pkg_recache + -%ghc_devel_description +%postun devel +%ghc_pkg_recache -%ghc_devel_post_postun +%files -f %{name}.files +%doc LICENSE -%ghc_files LICENSE +%files devel -f %{name}-devel.files %doc README %changelog +* Wed Jun 05 2013 Jens Petersen - 5.0-1 +- update to 5.0 +- update to new simplified Haskell Packaging Guidelines + * Sat Mar 23 2013 Jens Petersen - 4.17-2 - add back missing cbits to .cabal file diff --git a/sources b/sources index f20bac2..a02ece8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4c3d2008a26167531e870b4ef9a9312f hs-bibutils-4.17.tar.gz +611e02005ad8bbb69218ebf15f3587c6 hs-bibutils-5.0.tar.gz