fix plasmoids requiring python-devel to work (part of bnc#535057)

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt/python-sip?expand=0&rev=19
This commit is contained in:
Stephan Binner 2009-08-31 12:57:19 +00:00 committed by Git OBS Bridge
parent 6ae14c385d
commit 9b145a4e47
3 changed files with 19 additions and 0 deletions

11
fix-linking.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 Aug 31 12:55:45 UTC 2009 - beineri@opensuse.org
- fix plasmoids requiring python-devel to work (part of bnc#535057)
-------------------------------------------------------------------
Wed Aug 05 00:46:55 CEST 2009 - hpj@urpla.net

View File

@ -31,6 +31,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: sip-%{rversion}.tar.bz2
Patch0: disable-rpaths.diff
Patch1: fix-unresolved-external-types.diff
Patch2: fix-linking.diff
%py_requires
%description
@ -71,10 +72,12 @@ Authors:
%setup -q -n sip-%{rversion}
%patch0
%patch1 -p1
%patch2
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export SUSE_ASNEEDED=0
python configure.py
make %{?jobs:-j %jobs}