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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 03:42:47 UTC 2013


commit 42131d090af57a08c6127ca729bdd7b877adb668
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:41:19 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-pango.spec |   55 +++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 37 insertions(+), 18 deletions(-)
---
diff --git a/ghc-pango.spec b/ghc-pango.spec
index 19d2ead..3d127f2 100644
--- a/ghc-pango.spec
+++ b/ghc-pango.spec
@@ -1,19 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name pango
 
-%global common_summary Binding to the Pango text rendering engine
-
-%global common_description This package provides a wrapper around the Pango C library that\
-allows high-quality rendering of Unicode text. It can be used\
-either with Cairo to output text in PDF, PS or other documents\
-or with Gtk+ to display text on-screen.
-
 Name:           ghc-%{pkg_name}
 Version:        0.12.4
-Release:        3%{?dist}
-Summary:        %{common_summary}
+Release:        4%{?dist}
+Summary:        Binding to the Pango text rendering engine
 
 License:        LGPLv2+
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -30,12 +22,33 @@ BuildRequires:  ghc-glib-devel
 BuildRequires:  ghc-mtl-devel
 BuildRequires:  ghc-pretty-devel
 BuildRequires:  ghc-process-devel
-# End cabal-rpm deps
 BuildRequires:  gtk2hs-buildtools
-BuildRequires:  pango-devel%{?_isa}
+BuildRequires:  pkgconfig(pango)
+BuildRequires:  pkgconfig(cairo)
+BuildRequires:  pkgconfig(pangocairo)
+# End cabal-rpm deps
 
 %description
-%{common_description}
+This package provides a wrapper around the Pango C library that
+allows high-quality rendering of Unicode text. It can be used
+either with Cairo to output text in PDF, PS or other documents
+or with Gtk+ to display text on-screen.
+
+
+%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}
+# Begin cabal-rpm deps:
+Requires:       pkgconfig(pango)
+Requires:       pkgconfig(cairo)
+Requires:       pkgconfig(pangocairo)
+# End cabal-rpm deps
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
 
 
 %prep
@@ -53,20 +66,26 @@ BuildRequires:  pango-devel%{?_isa}
 rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
 
 
-%ghc_devel_package
-Requires:  pango-devel%{?_isa}
+%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
 %doc demo
 
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.12.4-4
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.4-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list