Accepting request 47213 from KDE:Qt

Copy from KDE:Qt/python-sip based on submit request 47213 from user coolo

OBS-URL: https://build.opensuse.org/request/show/47213
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sip?expand=0&rev=35
This commit is contained in:
OBS User autobuild 2010-09-06 09:48:25 +00:00 committed by Git OBS Bridge
commit 432191c3e1
4 changed files with 23 additions and 15 deletions

View File

@ -5,7 +5,7 @@
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
-QMAKE_LFLAGS_SHLIB = -shared
+QMAKE_LFLAGS_SHLIB = -shared -lpython2.6
+QMAKE_LFLAGS_SHLIB = -shared -lpython2.7
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD =

11
fix-linking26.diff Normal file
View File

@ -0,0 +1,11 @@
--- specs/linux-g++ 2009/08/31 11:59:37 1.1
+++ specs/linux-g++ 2009/08/31 12:00:19
@@ -53,7 +53,7 @@
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
-QMAKE_LFLAGS_SHLIB = -shared
+QMAKE_LFLAGS_SHLIB = -shared -lpython2.6
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD =

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 6 07:51:48 UTC 2010 - coolo@novell.com
- fix python linking for factory
-------------------------------------------------------------------
Wed Sep 1 10:42:55 CEST 2010 - dmueller@suse.de

View File

@ -24,7 +24,7 @@ License: GPLv2+
Group: Development/Libraries/Python
Summary: SIP tool to use python sip bindings
Version: 4.11
Release: 1
Release: 2
%define rversion %version
Url: http://www.riverbankcomputing.com/software/sip/intro
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -33,6 +33,7 @@ Patch0: disable-rpaths.diff
Patch2: fix-linking.diff
Patch3: fix-linking25.diff
Patch4: build-compare.diff
Patch5: fix-linking26.diff
%py_requires
%description
@ -41,13 +42,6 @@ and C++ libraries. It was originally developed to create PyQt, the
Python bindings for the Qt toolkit, but can be used to create bindings
for any C or C++ library.
Authors:
--------
Riverbank Computing Limited
%package devel
License: GPLv2+
Group: Development/Libraries/Python
@ -65,17 +59,15 @@ for any C or C++ library.
This package contains all the developer tools you need to create your
own sip bindings.
Authors:
--------
Riverbank Computing Limited
%prep
%setup -q -n sip-%{rversion}
%patch0
%if %suse_version >1100
%if %suse_version <1130
%patch5
%else
%patch2
%endif
%else
%patch3
%endif