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

Jens Petersen petersen at fedoraproject.org
Tue Jun 4 02:41:43 UTC 2013


commit 49340f522eb0a54bbc0d5a8a542c4b2e9028aa21
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Jun 4 11:38:13 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-tar.spec |   49 +++++++++++++++++++++++++++++++------------------
 1 files changed, 31 insertions(+), 18 deletions(-)
---
diff --git a/ghc-tar.spec b/ghc-tar.spec
index 3ed0794..9dc672d 100644
--- a/ghc-tar.spec
+++ b/ghc-tar.spec
@@ -1,22 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name tar
 
-%global common_summary Reading, writing and manipulating tar archive files
-
-%global common_description This library is for working with ".tar" archive files. It\
-can read and write a range of common variations of archive\
-format including V7, USTAR, POSIX and GNU formats. It\
-provides support for packing and unpacking portable archives.\
-This makes it suitable for distribution but not backup\
-because details like file ownership and exact permissions are\
-not preserved.
-
 Name:           ghc-%{pkg_name}
 Version:        0.4.0.1
-Release:        2%{?dist}
-Summary:        %{common_summary}
+Release:        3%{?dist}
+Summary:        Reading, writing and manipulating tar archive files
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -33,7 +22,24 @@ BuildRequires:  ghc-time-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This library is for working with ".tar" archive files. It
+can read and write a range of common variations of archive
+format including V7, USTAR, POSIX and GNU formats. It provides
+support for packing and unpacking portable archives.
+This makes it suitable for distribution but not backup
+because details like file ownership and exact permissions
+are not preserved.
+
+
+%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
@@ -48,18 +54,25 @@ BuildRequires:  ghc-time-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.4.0.1-3
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.0.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list