update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:48:36 +09:00
parent 9dd3f84231
commit e44a51dd0d
1 changed files with 28 additions and 15 deletions

View File

@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name dataenc %global pkg_name dataenc
%global common_summary Haskell encoding library
%global common_description Data encoding library currently providing Base16, Base32, Base32Hex, Base64,\
Base64Url, Base85, Python string escaping, Quoted-Printable, URL encoding,\
uuencode, xxencode, and yEncoding.
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.14.0.5 Version: 0.14.0.5
Release: 1%{?dist} Release: 2%{?dist}
Summary: %{common_summary} Summary: Haskell encoding library
License: BSD License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name} URL: http://hackage.haskell.org/package/%{pkg_name}
@ -26,7 +19,20 @@ BuildRequires: ghc-containers-devel
# End cabal-rpm deps # End cabal-rpm deps
%description %description
%{common_description} Data encoding library currently providing Base16, Base32, Base32Hex, Base64,
Base64Url, Base85, Python string escaping, Quoted-Printable, URL encoding,
uuencode, xxencode, and yEncoding.
%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
@ -41,18 +47,25 @@ BuildRequires: ghc-containers-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
%changelog %changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.14.0.5-2
- update to new simplified Haskell Packaging Guidelines
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.14.0.5-1 * Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.14.0.5-1
- update to 0.14.0.5 - update to 0.14.0.5