[ghc-glib] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 03:29:46 UTC 2013
commit 7932471f73ee5ea97881dd2cba514c52abc3a52e
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:27:36 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-glib.spec | 55 ++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 36 insertions(+), 19 deletions(-)
---
diff --git a/ghc-glib.spec b/ghc-glib.spec
index 7f428b4..b4dfbe5 100644
--- a/ghc-glib.spec
+++ b/ghc-glib.spec
@@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name glib
-%global common_summary Binding to the GLIB library for Gtk2Hs
-
-%global common_description The GNU Library is a collection of C data structures and utility functions for\
-dealing with Unicode. This package only binds as much functionality as required\
-to support the packages that wrap libraries that are themselves based on GLib.
-
Name: ghc-%{pkg_name}
Version: 0.12.4
-Release: 2%{?dist}
-Summary: %{common_summary}
+Release: 3%{?dist}
+Summary: Binding to the GLIB library for Gtk2Hs
License: LGPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -22,12 +15,32 @@ BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-containers-devel
-# End cabal-rpm deps
BuildRequires: gtk2hs-buildtools
-BuildRequires: glib2-devel%{?_isa}
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gobject-2.0)
+# End cabal-rpm deps
%description
-%{common_description}
+The GNU Library is a collection of C data structures and utility functions for
+dealing with Unicode. This package only binds as much functionality as required
+to support the packages that wrap libraries that are themselves based on GLib.
+
+
+%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(glib-2.0)
+Requires: pkgconfig(gobject-2.0)
+# End cabal-rpm deps
+# obsolete old gtk2hs packages
+Obsoletes: ghc-gconf-devel < 0.11, ghc-gstreamer-devel < 0.11, ghc-svgcairo-devel < 0.11, ghc-gtk2hs-doc < 0.11
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
%prep
@@ -42,21 +55,25 @@ BuildRequires: glib2-devel%{?_isa}
%ghc_lib_install
-%ghc_devel_package
-Requires: glib2-devel%{?_isa}
-# obsolete old gtk2hs packages
-Obsoletes: ghc-gconf-devel < 0.11, ghc-gstreamer-devel < 0.11, ghc-svgcairo-devel < 0.11, ghc-gtk2hs-doc < 0.11
+%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
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.12.4-3
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list