update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:11 +09:00
parent ba5bbe8b9b
commit f7be3441ac
1 changed files with 26 additions and 13 deletions

View File

@ -1,16 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name base64-bytestring
%global common_summary Fast base64 encoding and decoding for ByteStrings
%global common_description %{common_summary}.
Name: ghc-%{pkg_name}
Version: 1.0.0.1
Release: 1%{?dist}
Summary: %{common_summary}
Release: 2%{?dist}
Summary: Fast base64 encoding and decoding for ByteStrings
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -23,7 +18,18 @@ BuildRequires: ghc-bytestring-devel
# End cabal-rpm deps
%description
%{common_description}
Fast base64 encoding and decoding for ByteStrings.
%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,19 +44,26 @@ BuildRequires: ghc-bytestring-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
%doc README.markdown
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 1.0.0.1-2
- update to new simplified Haskell Packaging Guidelines
* Mon Mar 11 2013 Jens Petersen <petersen@redhat.com> - 1.0.0.1-1
- update to 1.0.0.1