update to new simplified Haskell Packaging Guidelines

epel9
Jens Petersen 12 years ago
parent e08414fa73
commit 4b17024179

@ -1,19 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name dlist %global pkg_name dlist
%global common_summary Haskell differences lists
%global common_description Differences lists: a list-like type supporting O(1) append.\
This is particularly useful for efficient logging and pretty\
printing, (e.g. with the Writer monad), where list append\
quickly becomes too expensive.
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.5 Version: 0.5
Release: 9%{?dist} Release: 10%{?dist}
Summary: %{common_summary} Summary: Haskell differences lists
License: BSD License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name} URL: http://hackage.haskell.org/package/%{pkg_name}
@ -21,11 +13,23 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
# End cabal-rpm deps
%description %description
%{common_description} Differences lists: a list-like type supporting O(1) append.
This is particularly useful for efficient logging and pretty
printing, (e.g. with the Writer monad), where list append
quickly becomes too expensive.
%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 %prep
@ -40,18 +44,25 @@ BuildRequires: ghc-rpm-macros
%ghc_lib_install %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 %changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.5-10
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save