From 93457978779c4110daf04ac06f1a3d56296305e2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:49:03 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-simple-sendfile.spec | 43 ++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/ghc-simple-sendfile.spec b/ghc-simple-sendfile.spec index c8777a8..7223a6c 100644 --- a/ghc-simple-sendfile.spec +++ b/ghc-simple-sendfile.spec @@ -1,18 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name simple-sendfile -%global common_summary Cross-platform sendfile system call - -%global common_description A Haskell cross-platform library for the sendfile system call.\ -This library tries to minimize system calls,\ -since they are a bottleneck for web servers. - Name: ghc-%{pkg_name} Version: 0.2.11 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Cross-platform sendfile system call 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} +A Haskell cross-platform library for the sendfile system call. +This library tries to minimize system calls, +since they are a bottleneck for web servers. + + +%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,18 +48,25 @@ 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 +* Fri Jun 07 2013 Jens Petersen - 0.2.11-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.2.11-1 - update to 0.2.11