update to simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-03 15:49:43 +09:00
parent 560df90766
commit c986d8e323
1 changed files with 27 additions and 14 deletions

View File

@ -1,17 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name zlib-bindings
%global common_summary Low-level bindings to the zlib package
%global common_description Provides necessary functions for producing a streaming interface.\
This is used for example by zlib-conduit and zlib-enum.
Name: ghc-%{pkg_name}
Version: 0.1.1.3
Release: 1%{?dist}
Summary: %{common_summary}
Release: 2%{?dist}
Summary: Low-level bindings to the zlib package
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -25,7 +19,19 @@ BuildRequires: ghc-zlib-devel
# End cabal-rpm deps
%description
%{common_description}
Provides necessary functions for producing a streaming interface.
This is used for example by zlib-conduit and zlib-enum.
%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 zlib-bindings library development files.
%prep
@ -40,18 +46,25 @@ BuildRequires: ghc-zlib-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
* Mon Jun 3 2013 Jens Petersen <petersen@redhat.com> - 0.1.1.3-2
- update to simplified Haskell Packaging Guidelines
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.1.1.3-1
- update to 0.1.1.3