Accepting request 459249 from home:dimstar:Factory
As nobody else seems to be picking up this ball, here a version that builds with python 3.6 OBS-URL: https://build.opensuse.org/request/show/459249 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt/python-sip?expand=0&rev=144
This commit is contained in:
parent
cabf7650cc
commit
a146a1a393
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 20 13:34:17 UTC 2017 - dimstar@opensuse.org
|
||||
|
||||
- Use pkgconfig to find the correct lib to link for python3.
|
||||
- Properly define py3_incdir.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 16 18:48:11 UTC 2017 - termim@gmail.com
|
||||
|
||||
|
@ -17,9 +17,7 @@
|
||||
|
||||
|
||||
%define python_sip_api 12.1
|
||||
%if 0%{?suse_version} == 1220
|
||||
%define py3_incdir %{_includedir}/python3.2mu
|
||||
%endif
|
||||
%define py3_incdir %(python3 -c "from distutils import sysconfig; print (sysconfig.get_python_inc())")
|
||||
Name: python3-sip
|
||||
Version: 4.19.1
|
||||
Release: 0
|
||||
@ -70,7 +68,7 @@ own sip bindings.
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags}"
|
||||
# Link against libpython (fixes bnc#756282 and bnc#721280)
|
||||
python3 configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="-lpython%{py3_ver}%{py3_abiflags}"
|
||||
python3 configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="$(pkg-config --libs python3)"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
sip_major=$(grep "define SIP_API_MAJOR_NR" siplib/sip.h.in | awk '{print $3}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user