[cpphs] update to revised simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Wed Apr 24 04:41:49 UTC 2013
commit 2572e170cbaa0129bea8b561a083529212027fdb
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Apr 24 13:41:27 2013 +0900
update to revised simplified Haskell Packaging Guidelines
cpphs.spec | 83 ++++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 56 insertions(+), 27 deletions(-)
---
diff --git a/cpphs.spec b/cpphs.spec
index 5bad3fe..531fdd1 100644
--- a/cpphs.spec
+++ b/cpphs.spec
@@ -1,23 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name cpphs
-%global common_summary Haskell %{pkg_name} library
-
-%global common_description Cpphs is a re-implementation of the C pre-processor that is both more\
-compatible with Haskell, and itself written in Haskell so that it can be\
-distributed with compilers.\
-\
-This version of the C pre-processor is pretty-much feature-complete and\
-compatible with traditional (K&R) pre-processors. Additional features\
-include: a plain-text mode; an option to unlit literate code files; and\
-an option to turn off macro-expansion.
-
Name: %{pkg_name}
Version: 1.16
-Release: 1%{?dist}
-Summary: A liberalised re-implementation of the C pre-processor
+Release: 2%{?dist}
+Summary: A liberalised C pre-processor for Haskell
License: GPL+ and LGPLv2+
URL: http://hackage.haskell.org/package/%{name}
@@ -32,7 +20,48 @@ BuildRequires: ghc-old-time-devel
# End cabal-rpm deps
%description
-%{common_description}
+Cpphs is a re-implementation of the C pre-processor that is both
+more compatible with Haskell, and itself written in Haskell so
+that it can be distributed with compilers.
+
+This version of the C pre-processor is pretty-much
+feature-complete and compatible with traditional (K&R)
+pre-processors. Additional features include: a plain-text mode;
+an option to unlit literate code files; and an option to turn
+off macro-expansion.
+
+
+%package -n ghc-%{name}
+Summary: Haskell %{name} library
+License: LGPLv2+
+
+%description -n ghc-%{name}
+Cpphs is a re-implementation of the C pre-processor that is both
+more compatible with Haskell, and itself written in Haskell so
+that it can be distributed with compilers.
+
+This version of the C pre-processor is pretty-much
+feature-complete and compatible with traditional (K&R)
+pre-processors. Additional features include: a plain-text mode;
+an option to unlit literate code files; and an option to turn
+off macro-expansion.
+
+
+%package -n ghc-%{name}-devel
+Summary: Haskell %{name} library development files
+License: LGPLv2+
+%{?ghc_devel_requires}
+
+%description -n ghc-%{name}-devel
+Cpphs is a re-implementation of the C pre-processor that is both
+more compatible with Haskell, and itself written in Haskell so
+that it can be distributed with compilers.
+
+This version of the C pre-processor is pretty-much
+feature-complete and compatible with traditional (K&R)
+pre-processors. Additional features include: a plain-text mode;
+an option to unlit literate code files; and an option to turn
+off macro-expansion.
%prep
@@ -50,19 +79,12 @@ rm %{buildroot}%{_docdir}/%{name}-%{version}/LICENCE-LGPL
install -D -p -m 0644 docs/cpphs.1 %{buildroot}%{_mandir}/man1/%{name}.1
-%ghc_package
-License: LGPLv2+
-
-%ghc_description
-
+%post -n ghc-%{name}-devel
+%ghc_pkg_recache
-%ghc_devel_package
-License: LGPLv2+
-%ghc_devel_description
-
-
-%ghc_devel_post_postun
+%postun -n ghc-%{name}-devel
+%ghc_pkg_recache
%files
@@ -71,10 +93,17 @@ License: LGPLv2+
%{_mandir}/man1/%{name}.1*
-%ghc_files LICENCE-LGPL LICENCE-GPL
+%files -n ghc-%{name} -f ghc-%{name}.files
+%doc LICENCE-LGPL LICENCE-GPL
+
+
+%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%changelog
+* Wed Apr 24 2013 Jens Petersen <petersen at redhat.com> - 1.16-2
+- update to revised simplified Haskell Packaging Guidelines (cabal-rpm-0.8)
+
* Mon Mar 11 2013 Jens Petersen <petersen at redhat.com> - 1.16-1
- update to 1.16
More information about the scm-commits
mailing list