update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-11 16:37:38 +09:00
parent 6eddc4ac0b
commit 1cdae8fda6

View File

@ -1,19 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name HSH
%global common_summary Library to mix shell scripting with Haskell programs
%global common_description HSH is designed to let you mix and match shell expressions with\
Haskell programs. With HSH, it is possible to easily run shell commands,\
capture their output or provide their input, and pipe them to and from\
other shell commands and arbitrary Haskell functions at will.
Name: ghc-%{pkg_name}
Version: 2.0.4
Release: 4%{?dist}
Summary: %{common_summary}
Release: 5%{?dist}
Summary: Library to mix shell scripting with Haskell programs
License: LGPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -36,7 +28,21 @@ BuildRequires: ghc-unix-devel
# End cabal-rpm deps
%description
%{common_description}
HSH is designed to let you mix and match shell expressions with
Haskell programs. With HSH, it is possible to easily run shell commands,
capture their output or provide their input, and pipe them to and from
other shell commands and arbitrary Haskell functions at will.
%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
@ -51,18 +57,25 @@ BuildRequires: ghc-unix-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 COPYING COPYRIGHT
%files -f %{name}.files
%doc COPYING COPYRIGHT
%files devel -f %{name}-devel.files
%changelog
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 2.0.4-5
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild