update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:26 +09:00
parent 6675f714ff
commit 3ae8d2badd
1 changed files with 28 additions and 17 deletions

View File

@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name colour
%global common_summary A model for human color perception
%global common_description This package provides a data type for colors and transparency.\
Colors can be blended and composed. Various color spaces are supported.\
A module of color names ("Data.Colour.Names") is provided.
Name: ghc-%{pkg_name}
Version: 2.3.3
Release: 5%{?dist}
Summary: %{common_summary}
Release: 6%{?dist}
Summary: A model for human color perception
License: MIT
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -20,11 +13,22 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
# End cabal-rpm deps
%description
%{common_description}
This package provides a data type for colors and transparency.
Colors can be blended and composed. Various color spaces are supported.
A module of color names ("Data.Colour.Names") is provided.
%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
@ -41,19 +45,26 @@ BuildRequires: ghc-rpm-macros
rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,CHANGELOG}
%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 CHANGELOG README
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 2.3.3-6
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild