update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-07 12:49:06 +09:00
parent d4f06d6497
commit a26ad1c82a
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/PackagingDrafts/Haskell
%global pkg_name snap-core
%global common_summary Snap web framework core library
%global common_description Snap is a simple and fast web development framework and server written\
in Haskell. This library contains the core definitions and types for\
the Snap framework.
Name: ghc-%{pkg_name}
Version: 0.9.3.1
Release: 1%{?dist}
Summary: %{common_summary}
Release: 2%{?dist}
Summary: Snap web framework core library
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -48,7 +41,20 @@ BuildRequires: ghc-zlib-enum-devel
Patch1: snap-core-0.9.2.2-portable-flag.patch
%description
%{common_description}
Snap is a simple and fast web development framework and server written
in Haskell. This library contains the core definitions and types for
the Snap framework.
%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
@ -72,19 +78,26 @@ Patch1: snap-core-0.9.2.2-portable-flag.patch
%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 LICENSE
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%doc CONTRIBUTORS README*.md
%changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-2
- update to new simplified Haskell Packaging Guidelines
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-1
- update to 0.9.3.1