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

Jens Petersen petersen at fedoraproject.org
Wed Jun 5 10:23:29 UTC 2013


commit 668793eb56bc73c3db4074dc5757c4459518bf9e
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jun 5 19:22:34 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-hinotify.spec |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/ghc-hinotify.spec b/ghc-hinotify.spec
index 753e007..5d86f93 100644
--- a/ghc-hinotify.spec
+++ b/ghc-hinotify.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name hinotify
 
-%global common_summary Haskell binding to INotify
-
-%global common_description This library provides a wrapper to the Linux Kernel's inotify\
-feature, allowing applications to subscribe to notifications\
-when a file is accessed or modified.
-
 Name:           ghc-%{pkg_name}
 Version:        0.3.5
-Release:        2%{?dist}
-Summary:        %{common_summary}
+Release:        3%{?dist}
+Summary:        Haskell binding to INotify
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -27,7 +20,20 @@ BuildRequires:  ghc-unix-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This library provides a wrapper to the Linux Kernel's inotify
+feature, allowing applications to subscribe to notifications
+when a file is accessed or modified.
+
+
+%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
@@ -42,19 +48,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
 %doc ANNOUNCE README* examples
 
 
 %changelog
+* Wed Jun 05 2013 Jens Petersen <petersen at redhat.com> - 0.3.5-3
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.5-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list