update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:05 +09:00
parent 409a5e9c4b
commit bb4a6aef38
1 changed files with 28 additions and 15 deletions

View File

@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name Stream
%global common_summary Provides functions to create and manipulate infinite lists
%global common_description This package implements functions, analogous to \
those from Data.List, to create and manipulate infinite lists: \
data Stream a = Cons a (Stream a).
Name: ghc-%{pkg_name}
Version: 0.4.6.1
Release: 3%{?dist}
Summary: %{common_summary}
Release: 4%{?dist}
Summary: A library for manipulating infinite lists
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -26,7 +19,20 @@ BuildRequires: ghc-lazysmallcheck-devel
# End cabal-rpm deps
%description
%{common_description}
This package implements functions, analogous to
those from Data.List, to create and manipulate infinite lists:
data Stream a = Cons a (Stream a).
%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,18 +47,25 @@ BuildRequires: ghc-lazysmallcheck-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
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.4.6.1-4
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild