[ghc-pandoc-types] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Wed Jun 5 08:18:45 UTC 2013
commit f4dee724ce7b144387b753e55dc697a1ebfa7bff
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Jun 5 17:17:25 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-pandoc-types.spec | 47 ++++++++++++++++++++++++++++++-----------------
1 files changed, 30 insertions(+), 17 deletions(-)
---
diff --git a/ghc-pandoc-types.spec b/ghc-pandoc-types.spec
index 6146fad..2b2afe5 100644
--- a/ghc-pandoc-types.spec
+++ b/ghc-pandoc-types.spec
@@ -1,21 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name pandoc-types
-%global common_summary Types for representing a structured document
-
-%global common_description This package contains definitions for the Pandoc data structure, which\
-is used by pandoc to represent structured documents. These definitions\
-used to live in the pandoc package, but they have been split off, so\
-that other packages can use them without drawing in all of pandoc's\
-dependencies, and pandoc itself can depend on packages (like\
-citeproc-hs) that use them.
-
Name: ghc-%{pkg_name}
Version: 1.10
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Types for representing a structured document
License: GPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -29,7 +19,23 @@ BuildRequires: ghc-syb-devel
# End cabal-rpm deps
%description
-%{common_description}
+This package contains definitions for the Pandoc data structure, which
+is used by pandoc to represent structured documents. These definitions
+used to live in the pandoc package, but they have been split off, so
+that other packages can use them without drawing in all of pandoc's
+dependencies, and pandoc itself can depend on packages (like
+citeproc-hs) that use them.
+
+
+%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
@@ -44,18 +50,25 @@ BuildRequires: ghc-syb-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
+* Wed Jun 05 2013 Jens Petersen <petersen at redhat.com> - 1.10-2
+- update to new simplified Haskell Packaging Guidelines
+
* Sun Mar 10 2013 Jens Petersen <petersen at redhat.com> - 1.10-1
- update to 1.10
More information about the scm-commits
mailing list