update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:35 +09:00
parent 5fb3718557
commit af7411cf2b
1 changed files with 29 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 data-reify
%global common_summary %{pkg_name} turns recursive data structures into graphs
%global common_description %{pkg_name} converts recursive data structures into graphs.
Name: ghc-%{pkg_name}
Version: 0.6
Release: 5%{?dist}
Summary: %{common_summary}
Release: 6%{?dist}
Summary: Reify a recursive data structure into an explicit graph
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -23,7 +18,21 @@ BuildRequires: ghc-containers-devel
# End cabal-rpm deps
%description
%{common_description}
'data-reify' provided the ability to turn recursive structures into
explicit graphs. Many (implicitly or explicitly) recursive data
structure can be given this ability, via a type class instance. This
gives an alternative to using 'Ref' for observable sharing.
%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,18 +47,25 @@ BuildRequires: ghc-containers-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.6-6
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild