From e216dee62e9fabe2d74f4c5d63986cac0a2dbf95ccf34bb91aa97ccb2f792405 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Sat, 7 Aug 2010 10:45:59 +0000 Subject: [PATCH] Accepting request 44818 from home:vuntz:branches:devel:languages:python Copy from home:vuntz:branches:devel:languages:python/python-gtk via accept of submit request 44818 revision 2. Request was accepted with message: Forwarding to openSUSE:Factory OBS-URL: https://build.opensuse.org/request/show/44818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gtk?expand=0&rev=11 --- python-gtk-fix-pkg-config.patch | 20 ++++++++++++++++++++ python-gtk.changes | 12 ++++++++++++ python-gtk.spec | 7 +++++-- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 python-gtk-fix-pkg-config.patch diff --git a/python-gtk-fix-pkg-config.patch b/python-gtk-fix-pkg-config.patch new file mode 100644 index 0000000..02e837d --- /dev/null +++ b/python-gtk-fix-pkg-config.patch @@ -0,0 +1,20 @@ +commit a9e24426aae96e5968b95ef76aacf41d3153ddf7 +Author: Colin Walters +Date: Fri Jul 30 10:23:56 2010 -0400 + + [pygtk-2.0.pc] Should require gtk+-2.0 + + https://bugzilla.redhat.com/show_bug.cgi?id=618944 + +diff --git a/pygtk-2.0.pc.in b/pygtk-2.0.pc.in +index 0506e75..e277e80 100644 +--- a/pygtk-2.0.pc.in ++++ b/pygtk-2.0.pc.in +@@ -20,6 +20,6 @@ codegendir=${datadir}/pygobject/2.0/codegen + + Name: PyGTK + Description: Python bindings for GTK+ and related libraries +-Requires: pygobject-2.0 ++Requires: pygobject-2.0 gtk+-2.0 + Version: @VERSION@ + Cflags: -I${pygtkincludedir} @THREADING_CFLAGS@ diff --git a/python-gtk.changes b/python-gtk.changes index 50f7fb6..c33ece8 100644 --- a/python-gtk.changes +++ b/python-gtk.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Aug 7 12:36:27 CEST 2010 - vuntz@opensuse.org + +- Add python-gtk-fix-pkg-config.patch to add missing gtk+-2.0 in + pkg-config file. Taken from upstream. + +------------------------------------------------------------------- +Thu Apr 8 16:34:46 CEST 2010 - vuntz@opensuse.org + +- Change python-numpy BuildRequires to python-numpy-devel to really + build with numpy support. Fix bnc#591012. + ------------------------------------------------------------------- Fri Jan 15 12:09:02 CET 2010 - vuntz@opensuse.org diff --git a/python-gtk.spec b/python-gtk.spec index 4b84bd4..1cd70c7 100644 --- a/python-gtk.spec +++ b/python-gtk.spec @@ -24,17 +24,19 @@ BuildRequires: fdupes libglade2-devel python-cairo-devel python-devel python-go %if %suse_version > 1020 || 0%{?opensuse_bs} BuildRequires: python-gobject2-doc %endif -BuildRequires: python-numpy +BuildRequires: python-numpy-devel Requires: python-numpy # Only for directory ownership: BuildRequires: gtk-doc Url: http://www.pygtk.org/ Summary: Python bindings for the GTK+ widget set Version: 2.17.0 -Release: 1 +Release: 2 License: LGPLv2.1+ Group: Development/Libraries/Python Source: %{_name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM python-gtk-fix-pkg-config.patch vuntz@opensuse.org -- Taken from upstream +Patch0: python-gtk-fix-pkg-config.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define lparen ( %define rparen ) @@ -75,6 +77,7 @@ python's benefits. %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 %build %configure