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

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 03:24:52 UTC 2013


commit d172e18b1570104235ccbf7a0b0fa290462bc379
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:23:36 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-gio.spec |   53 ++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 34 insertions(+), 19 deletions(-)
---
diff --git a/ghc-gio.spec b/ghc-gio.spec
index 1e5686f..54b47a3 100644
--- a/ghc-gio.spec
+++ b/ghc-gio.spec
@@ -1,20 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name gio
 
-%global common_summary Binding to GIO
-
-%global common_description GIO is striving to provide a modern, easy-to-use VFS API that sits at the right level in the library stack.\
-The goal is to overcome the shortcomings of GnomeVFS and provide an API that is\
-so good that developers prefer it over raw POSIX calls.\
-Among other things that means using GObject.\
-It also means not cloning the POSIX API, but providing higher-level, document-centric interfaces.
-
 Name:           ghc-%{pkg_name}
 Version:        0.12.4
-Release:        3%{?dist}
-Summary:        %{common_summary}
+Release:        4%{?dist}
+Summary:        Binding to GIO
 
 License:        LGPLv2+
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -28,12 +19,30 @@ BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-glib-devel
 BuildRequires:  ghc-mtl-devel
-# End cabal-rpm deps
-BuildRequires:  glib2-devel%{?_isa}
 BuildRequires:  gtk2hs-buildtools
+BuildRequires:  pkgconfig(gio-2.0)
+# End cabal-rpm deps
 
 %description
-%{common_description}
+GIO is striving to provide a modern, easy-to-use VFS API that sits at the right level in the library stack.
+The goal is to overcome the shortcomings of GnomeVFS and provide an API that is
+so good that developers prefer it over raw POSIX calls.
+Among other things that means using GObject.
+It also means not cloning the POSIX API, but providing higher-level, document-centric interfaces.
+
+
+%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(gio-2.0)
+# End cabal-rpm deps
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
 
 
 %prep
@@ -50,20 +59,26 @@ BuildRequires:  gtk2hs-buildtools
 # demo files
 rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
 
-%ghc_devel_package
-Requires:  glib2-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