From a146a1a393d190dc9ee9027d23c3a0eceeaa186ac742a3d52d63d15c88b04827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 20 Feb 2017 14:42:53 +0000 Subject: [PATCH] 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 --- python3-sip.changes | 6 ++++++ python3-sip.spec | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python3-sip.changes b/python3-sip.changes index 46a46d5..253f7b0 100644 --- a/python3-sip.changes +++ b/python3-sip.changes @@ -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 diff --git a/python3-sip.spec b/python3-sip.spec index b61a162..484d3c1 100644 --- a/python3-sip.spec +++ b/python3-sip.spec @@ -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}')