update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-05 18:19:59 +09:00
parent 5945c74325
commit ca74cf360b
3 changed files with 36 additions and 19 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/hslogger-1.1.3.tar.gz
/hslogger-1.1.4.tar.gz
/hslogger-1.1.5.tar.gz
/hslogger-1.2.1.tar.gz

View File

@ -1,20 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name hslogger
%global common_summary Haskell logging library
%global common_description This package provides a logging framework for Haskell.\
It lets each log message have a priority and source be associated with it.\
The programmer can then define global handlers that route or filter messages \
based on the priority and source.\
It also has a syslog handler built in.
Name: ghc-%{pkg_name}
Version: 1.1.5
Release: 8%{?dist}
Summary: %{common_summary}
Version: 1.2.1
Release: 1%{?dist}
Summary: Versatile logging framework
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -34,7 +25,24 @@ BuildRequires: ghc-unix-devel
# End cabal-rpm deps
%description
%{common_description}
hslogger is a logging framework for Haskell, roughly similar to
Python's logging module.
hslogger lets each log message have a priority and source be associated
with it. The programmer can then define global handlers that route
or filter messages based on the priority and source. hslogger also
has a syslog handler built in.
%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
@ -49,18 +57,26 @@ 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 LICENSE
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%changelog
* Wed Jun 05 2013 Jens Petersen <petersen@redhat.com> - 1.2.1-1
- update to 1.2.1
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

View File

@ -1 +1 @@
cd3dfd6f88176bd53b333ea29130a857 hslogger-1.1.5.tar.gz
d94e39cd6a262565cf0758a6ead74919 hslogger-1.2.1.tar.gz