update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:13 +09:00
parent 158cea3a7d
commit 59e78fb7ec

View File

@ -1,16 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name blaze-builder %global pkg_name blaze-builder
%global common_summary Builder to efficiently append text
%global common_description Builder to efficiently append text, optimized for HTML generation.
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.3.1.0 Version: 0.3.1.0
Release: 7%{?dist} Release: 8%{?dist}
Summary: %{common_summary} Summary: Builder to efficiently append text
License: BSD License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name} URL: http://hackage.haskell.org/package/%{pkg_name}
@ -24,7 +19,24 @@ BuildRequires: ghc-text-devel
# End cabal-rpm deps # End cabal-rpm deps
%description %description
%{common_description} This library provides an abstraction of buffered output of byte streams
and several convenience functions to exploit it. For example, it allows
to efficiently serialize Haskell values to lazy bytestrings with a large
average chunk size. The large average chunk size allows to make good use of
cache prefetching in later processing steps (e.g. compression) and reduces
the system call overhead when writing the resulting lazy bytestring to
a file or sending it over the network.
%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
@ -39,19 +51,26 @@ BuildRequires: ghc-text-devel
%ghc_lib_install %ghc_lib_install
%ghc_devel_package %post devel
%ghc_pkg_recache
%ghc_devel_description
%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 CHANGES README.markdown %doc CHANGES README.markdown
%changelog %changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.3.1.0-8
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1.0-7 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild