[ghc-hslogger] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Wed Jun 5 09:23:01 UTC 2013


commit ca74cf360bcc48c1024b1cc67734342ecbb322da
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jun 5 18:19:59 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 .gitignore        |    1 +
 ghc-hslogger.spec |   50 +++++++++++++++++++++++++++++++++-----------------
 sources           |    2 +-
 3 files changed, 35 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c5a0949..11973ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/ghc-hslogger.spec b/ghc-hslogger.spec
index be97e87..6caaae6 100644
--- a/ghc-hslogger.spec
+++ b/ghc-hslogger.spec
@@ -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
+%post devel
+%ghc_pkg_recache
 
-%ghc_devel_description
 
+%postun devel
+%ghc_pkg_recache
 
-%ghc_devel_post_postun
 
+%files -f %{name}.files
+%doc LICENSE
 
-%ghc_files LICENSE
+
+%files devel -f %{name}-devel.files
 
 
 %changelog
+* Wed Jun 05 2013 Jens Petersen <petersen at 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 at lists.fedoraproject.org> - 1.1.5-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index 2d3f3e8..959bae3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cd3dfd6f88176bd53b333ea29130a857  hslogger-1.1.5.tar.gz
+d94e39cd6a262565cf0758a6ead74919  hslogger-1.2.1.tar.gz


More information about the scm-commits mailing list