[ghc-hledger-lib] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 09:44:00 UTC 2013
commit b2872ed6d0ebfb0591241982d6111c9a1c355406
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:48:51 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-hledger-lib.spec | 39 ++++++++++++++++++++++++++-------------
1 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/ghc-hledger-lib.spec b/ghc-hledger-lib.spec
index f507912..7432a25 100644
--- a/ghc-hledger-lib.spec
+++ b/ghc-hledger-lib.spec
@@ -1,17 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name hledger-lib
-%global common_summary Core data types, parsers and utilities for the hledger accounting tool
-
-%global common_description This is the reusable core of the hledger financial app; use \
-it to build hledger and c++-ledger compatible finance tools.
-
Name: ghc-%{pkg_name}
Version: 0.17
-Release: 9%{?dist}
-Summary: %{common_summary}
+Release: 10%{?dist}
+Summary: Core library for the hledger accounting tool
License: GPLv3
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -38,7 +32,19 @@ BuildRequires: ghc-utf8-string-devel
# End cabal-rpm deps
%description
-%{common_description}
+This is the core library of the hledger financial app used
+by various hledger packages.
+
+
+%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
@@ -55,18 +61,25 @@ cabal-tweak-dep-ver split "== 0.1.*" "== 0.2.*"
%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
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.17-10
+- update to new simplified Haskell Packaging Guidelines
+
* Fri Mar 22 2013 Jens Petersen <petersen at redhat.com> - 0.17-9
- rebuild
More information about the scm-commits
mailing list