update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-11 14:51:15 +09:00
parent 8dcbd8d1a2
commit 7f49ab6171

View File

@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name MissingH
%global common_summary Large utility library
%global common_description MissingH is a library of all sorts of utility functions for \
Haskell programmers. It is written in pure Haskell and thus \
should be extremely portable and easy to use.
Name: ghc-%{pkg_name}
Version: 1.2.0.0
Release: 2%{?dist}
Summary: %{common_summary}
Summary: Large utility library
# src/Data/Hash/MD5.lhs is BSD or GPL+
# src/Data/Hash/CRC32/Posix.hs is GPL+
@ -44,7 +37,20 @@ BuildRequires: ghc-unix-devel
# End cabal-rpm deps
%description
%{common_description}
MissingH is a library of all sorts of utility functions for
Haskell programmers. It is written in pure Haskell and thus
should be extremely portable and easy to use.
%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
@ -59,19 +65,26 @@ 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 3rd-party-licenses
%files -f %{name}.files
%doc LICENSE 3rd-party-licenses
%files devel -f %{name}-devel.files
%doc announcements TODO
%changelog
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 1.2.0.0-2
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild