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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 09:32:51 UTC 2013


commit f92c7b0d2832e93f17eaab5ab259b3a97797d545
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:30 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-csv.spec |   45 +++++++++++++++++++++++++++++----------------
 1 files changed, 29 insertions(+), 16 deletions(-)
---
diff --git a/ghc-csv.spec b/ghc-csv.spec
index e675073..57e1890 100644
--- a/ghc-csv.spec
+++ b/ghc-csv.spec
@@ -1,20 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name csv
 
-%global common_summary CSV loader and dumper
-
-%global common_description This library parses and dumps documents that are formatted \
-according to RFC 4180, "The common Format and MIME Type for \
-Comma-Separated Values (CSV) Files". This format is used, \
-among many other things, as a lingua franca for spreadsheets, \
-and for certain web services.
-
 Name:           ghc-%{pkg_name}
 Version:        0.1.2
-Release:        17%{?dist}
-Summary:        %{common_summary}
+Release:        18%{?dist}
+Summary:        CSV loader and dumper
 
 License:        MIT
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -28,7 +19,22 @@ BuildRequires:  ghc-parsec-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+This library parses and dumps documents that are formatted
+according to RFC 4180, "The common Format and MIME Type for
+Comma-Separated Values (CSV) Files". This format is used,
+among many other things, as a lingua franca for spreadsheets,
+and for certain web services.
+
+
+%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
@@ -43,18 +49,25 @@ BuildRequires:  ghc-parsec-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 COPYING
 
-%ghc_files COPYING
+
+%files devel -f %{name}-devel.files
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.1.2-18
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.2-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list