[ghc-sendfile] update to 0.7.9 and simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Tue Jun 4 09:51:55 UTC 2013


commit a61caafd846278bffd6e4da6c828ac05345334f1
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Jun 4 18:50:04 2013 +0900

    update to 0.7.9 and simplified Haskell Packaging Guidelines

 .gitignore        |    1 +
 ghc-sendfile.spec |   44 +++++++++++++++++++++++++++++---------------
 sources           |    2 +-
 3 files changed, 31 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1788224..f727f84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /sendfile-0.7.6.tar.gz
 /sendfile-0.7.8.tar.gz
+/sendfile-0.7.9.tar.gz
diff --git a/ghc-sendfile.spec b/ghc-sendfile.spec
index 0fd7ba4..0c05c1f 100644
--- a/ghc-sendfile.spec
+++ b/ghc-sendfile.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name sendfile
 
-%global common_summary A portable sendfile library
-
-%global common_description A library which exposes zero-copy sendfile functionality in a portable way.\
-If a platform does not support sendfile, a fallback implementation in haskell\
-is provided.
-
 Name:           ghc-%{pkg_name}
-Version:        0.7.8
-Release:        2%{?dist}
-Summary:        %{common_summary}
+Version:        0.7.9
+Release:        1%{?dist}
+Summary:        A portable sendfile library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +19,20 @@ BuildRequires:  ghc-network-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+A library which exposes zero-copy sendfile functionality in a portable way.
+If a platform does not support sendfile, a fallback implementation in haskell
+is provided.
+
+
+%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
@@ -41,18 +47,26 @@ BuildRequires:  ghc-network-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
+* Tue Jun 04 2013 Jens Petersen <petersen at redhat.com> - 0.7.9-1
+- update to 0.7.9
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.8-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index b62e2bc..43799c6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-985e6c2fed34d4c53053ffa1b7d88b72  sendfile-0.7.8.tar.gz
+5fc4f3459a5883072c30c9c747376f7a  sendfile-0.7.9.tar.gz


More information about the scm-commits mailing list