[ghc-gtk] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 03:31:35 UTC 2013
commit 82781eae8c0258d25574f97cbf37c95bfa377d64
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:29:47 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-gtk.spec | 56 +++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 37 insertions(+), 19 deletions(-)
---
diff --git a/ghc-gtk.spec b/ghc-gtk.spec
index 870a136..4db629e 100644
--- a/ghc-gtk.spec
+++ b/ghc-gtk.spec
@@ -1,18 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name gtk
-%global common_summary Binding to the Gtk+ graphical user interface library
-
-%global common_description This is the core library of the Gtk2Hs suite of libraries for Haskell\
-based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit\
-for creating graphical user interfaces.
-
Name: ghc-%{pkg_name}
Version: 0.12.4
-Release: 3%{?dist}
-Summary: %{common_summary}
+Release: 4%{?dist}
+Summary: Binding to the Gtk+ graphical user interface library
License: LGPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -29,12 +22,33 @@ BuildRequires: ghc-gio-devel
BuildRequires: ghc-glib-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-pango-devel
-# End cabal-rpm deps
-BuildRequires: gtk2-devel%{?_isa}
BuildRequires: gtk2hs-buildtools
+BuildRequires: pkgconfig(gthread-2.0)
+BuildRequires: pkgconfig(gtk+-2.0)
+# End cabal-rpm deps
%description
-%{common_description}
+This is the core library of the Gtk2Hs suite of libraries for Haskell
+based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit
+for creating graphical user 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(gthread-2.0)
+Requires: pkgconfig(gtk+-2.0)
+# End cabal-rpm deps
+Obsoletes: ghc-gtkglext-devel < 0.11, ghc-soegtk-devel < 0.11, ghc-vte-devel < 0.11
+Obsoletes: ghc-gtkglext-prof < 0.11, ghc-soegtk-prof < 0.11, ghc-vte-prof < 0.11
+
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
%prep
@@ -52,22 +66,26 @@ BuildRequires: gtk2hs-buildtools
rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
-%ghc_devel_package
-Requires: gtk2-devel%{?_isa}
-Obsoletes: ghc-gtkglext-devel < 0.11, ghc-soegtk-devel < 0.11, ghc-vte-devel < 0.11
-Obsoletes: ghc-gtkglext-prof < 0.11, ghc-soegtk-prof < 0.11, ghc-vte-prof < 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
%doc demo
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.12.4-4
+- update to new simplified Haskell Packaging Guidelines
+
* Sat Feb 23 2013 Kevin Fenzi <kevin at scrye.com> - 0.12.4-3
- Rebuild for broken deps in rawhide
More information about the scm-commits
mailing list