update to new simplified Haskell Packaging Guidelines

epel9
Jens Petersen 12 years ago
parent 9964e6db96
commit 2e3424e2e7

@ -1,20 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name safe
%global common_summary Library for safe (pattern match free) functions
%global common_description Partial functions from the base library, such as head and \
!!, modified to return more descriptive error messages, \
programmer defined error messages, Maybe wrapped results \
and default values. These functions can be used to reduce the \
number of unsafe pattern matches in your code.
Name: ghc-%{pkg_name}
Version: 0.3.3
Release: 6%{?dist}
Summary: %{common_summary}
Release: 7%{?dist}
Summary: Library for safe (pattern match free) functions
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -22,11 +13,24 @@ 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}
Partial functions from the base library, such as head and
!!, modified to return more descriptive error messages,
programmer defined error messages, Maybe wrapped results
and default values. These functions can be used to reduce the
number of unsafe pattern matches in your code.
%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 +45,25 @@ BuildRequires: ghc-rpm-macros
%ghc_lib_install
%ghc_devel_package
%post devel
%ghc_pkg_recache
%ghc_devel_description
%postun devel
%ghc_pkg_recache
%ghc_devel_post_postun
%files -f %{name}.files
%doc LICENSE
%ghc_files LICENSE
%files devel -f %{name}-devel.files
%changelog
* Wed Jun 05 2013 Jens Petersen <petersen@redhat.com> - 0.3.3-7
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save