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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 03:06:37 UTC 2013


commit 5e2091991dbab1babe3f953a7361d648e301f384
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:03:41 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-cairo.spec |   55 ++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 38 insertions(+), 17 deletions(-)
---
diff --git a/ghc-cairo.spec b/ghc-cairo.spec
index 70a60e9..2d25106 100644
--- a/ghc-cairo.spec
+++ b/ghc-cairo.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name cairo
 
-%global common_summary Binding to the Cairo library
-
-%global common_description Cairo is a library to render high quality vector graphics.\
-There exist various backends that allows rendering to Gtk windows, PDF,\
-PS, PNG and SVG documents, amongst others.
-
 Name:           ghc-%{pkg_name}
 Version:        0.12.4
-Release:        3%{?dist}
-Summary:        %{common_summary}
+Release:        4%{?dist}
+Summary:        Binding to the Cairo library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -24,12 +17,34 @@ BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-mtl-devel
-# End cabal-rpm deps
-BuildRequires:  cairo-devel%{?_isa}
 BuildRequires:  gtk2hs-buildtools
+BuildRequires:  pkgconfig(cairo-pdf)
+BuildRequires:  pkgconfig(cairo-ps)
+BuildRequires:  pkgconfig(cairo-svg)
+BuildRequires:  pkgconfig(cairo)
+# End cabal-rpm deps
 
 %description
-%{common_description}
+Cairo is a library to render high quality vector graphics.
+There exist various backends that allows rendering to Gtk windows,
+PDF, PS, PNG and SVG documents, amongst others.
+
+
+%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(cairo-pdf)
+Requires:       pkgconfig(cairo-ps)
+Requires:       pkgconfig(cairo-svg)
+Requires:       pkgconfig(cairo)
+# End cabal-rpm deps
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
 
 
 %prep
@@ -46,20 +61,26 @@ BuildRequires:  gtk2hs-buildtools
 rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
 
 
-%ghc_devel_package
-Requires: cairo-devel%{?_isa}
+%post devel
+%ghc_pkg_recache
 
-%ghc_devel_description
 
+%postun devel
+%ghc_pkg_recache
 
-%ghc_devel_post_postun
 
+%files -f %{name}.files
+%doc COPYRIGHT
 
-%ghc_files COPYRIGHT
+
+%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