Accepting request 643585 from home:cgiboudeaux:branches:KDE:Qt5
update to 4.19.13 OBS-URL: https://build.opensuse.org/request/show/643585 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python-sip?expand=0&rev=19
This commit is contained in:
parent
75a147a0d6
commit
1bb0b0e7ff
@ -1,8 +1,8 @@
|
|||||||
Index: b/siputils.py
|
diff --git a/siputils.py b/siputils.py
|
||||||
===================================================================
|
index a29300d..df58650 100644
|
||||||
--- a/siputils.py
|
--- a/siputils.py
|
||||||
+++ b/siputils.py
|
+++ b/siputils.py
|
||||||
@@ -926,6 +926,7 @@ class Makefile:
|
@@ -927,6 +927,7 @@ class Makefile:
|
||||||
rpaths is the cannonical list of rpaths.
|
rpaths is the cannonical list of rpaths.
|
||||||
"""
|
"""
|
||||||
flags = []
|
flags = []
|
||||||
|
30
disable-strip.diff
Normal file
30
disable-strip.diff
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
commit c59ca3fa7a63c7c13fb6be2d9642feeeaef603e2
|
||||||
|
Author: Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
Date: Sun Oct 21 11:29:04 2018 +0200
|
||||||
|
|
||||||
|
Don't strip files.
|
||||||
|
|
||||||
|
This prevents the debug package from being created.
|
||||||
|
|
||||||
|
diff --git a/siputils.py b/siputils.py
|
||||||
|
index a29300d..d58537c 100644
|
||||||
|
--- a/siputils.py
|
||||||
|
+++ b/siputils.py
|
||||||
|
@@ -1473,7 +1473,7 @@ class ModuleMakefile(Makefile):
|
||||||
|
"""
|
||||||
|
def __init__(self, configuration, build_file, install_dir=None, static=0,
|
||||||
|
console=0, qt=0, opengl=0, threaded=0, warnings=1, debug=0,
|
||||||
|
- dir=None, makefile="Makefile", installs=None, strip=1,
|
||||||
|
+ dir=None, makefile="Makefile", installs=None, strip=0,
|
||||||
|
export_all=0, universal=None, arch=None,
|
||||||
|
deployment_target=None):
|
||||||
|
"""Initialise an instance of a module Makefile.
|
||||||
|
@@ -1784,7 +1784,7 @@ class SIPModuleMakefile(ModuleMakefile):
|
||||||
|
"""
|
||||||
|
def __init__(self, configuration, build_file, install_dir=None, static=0,
|
||||||
|
console=0, qt=0, opengl=0, threaded=0, warnings=1, debug=0,
|
||||||
|
- dir=None, makefile="Makefile", installs=None, strip=1,
|
||||||
|
+ dir=None, makefile="Makefile", installs=None, strip=0,
|
||||||
|
export_all=0, universal=None, arch=None, prot_is_public=0,
|
||||||
|
deployment_target=None):
|
||||||
|
"""Initialise an instance of a SIP generated module Makefile.
|
@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 21 09:31:18 UTC 2018 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Add disable-strip.diff to fix the -debuginfo creation.
|
||||||
|
- Update to 4.19.13:
|
||||||
|
* Build system fixes
|
||||||
|
* Removed support in the XML/API export for deprecated features
|
||||||
|
* Pass the fully qualified Python names of types for arguments and
|
||||||
|
results.
|
||||||
|
* Various fixes for the XML export
|
||||||
|
* Fixed a bug when arguments that were templates could lose their type
|
||||||
|
hints
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 16:52:01 UTC 2018 - christophe@krop.fr
|
||||||
|
|
||||||
|
- Update to 4.19.12:
|
||||||
|
* Added the /ScopesStripped/ argument annotation.
|
||||||
|
* The members of traditional C/C++ enums are now also visible within the
|
||||||
|
scope of the enum itself. This means that members of scoped and unscoped
|
||||||
|
enums can be accessed in the same way from Python.
|
||||||
|
* Private copies of the sip module are now easier to configure and use.
|
||||||
|
SIP v5 will only support private copies.
|
||||||
|
* Added the -n option to the sip code generator to support private copies of
|
||||||
|
the sip module.
|
||||||
|
See https://www.riverbankcomputing.com/static/Downloads/sip/ChangeLog for
|
||||||
|
the complete changelog.
|
||||||
|
- Run spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 13 23:33:06 UTC 2018 - termim@gmail.com
|
Fri Apr 13 23:33:06 UTC 2018 - termim@gmail.com
|
||||||
|
|
||||||
|
@ -12,30 +12,30 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define python_sip_api 12.4
|
%define python_sip_api 12.5
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-sip
|
Name: python-sip
|
||||||
Version: 4.19.8
|
Version: 4.19.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SIP tool to use python sip bindings
|
Summary: SIP tool to use python sip bindings
|
||||||
License: GPL-2.0 or GPL-3.0 or SUSE-SIP
|
License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Url: https://www.riverbankcomputing.com/software/sip/introa
|
URL: https://www.riverbankcomputing.com/software/sip/introa
|
||||||
Source0: https://sourceforge.net/projects/pyqt/files/sip/sip-%{version}/sip-%{version}.tar.gz
|
Source0: https://sourceforge.net/projects/pyqt/files/sip/sip-%{version}/sip-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE disable-rpaths.diff -- Disable rpaths
|
# PATCH-FIX-OPENSUSE disable-rpaths.diff -- Disable rpaths
|
||||||
Patch0: disable-rpaths.diff
|
Patch0: disable-rpaths.diff
|
||||||
|
# PATCH-FIX-OPENSUSE disable-strip.diff -- Disable stripping
|
||||||
|
Patch1: disable-strip.diff
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: c++_compiler
|
BuildRequires: c++_compiler
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: %{name}-common = %{version}
|
Requires: %{name}-common = %{version}
|
||||||
Provides: python-sip(api) = %{python_sip_api}
|
Provides: python-sip(api) = %{python_sip_api}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -44,7 +44,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
|
Python bindings for the Qt toolkit, but can be used to create bindings
|
||||||
for any C or C++ library.
|
for any C or C++ library.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: SIP tool to create python bindings
|
Summary: SIP tool to create python bindings
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -52,10 +51,10 @@ Requires: %{name} = %{version}
|
|||||||
Requires: %{name}-common = %{version}
|
Requires: %{name}-common = %{version}
|
||||||
Requires: c++_compiler
|
Requires: c++_compiler
|
||||||
Requires: python-devel
|
Requires: python-devel
|
||||||
Provides: %{name}-bin = %{version}
|
|
||||||
Obsoletes: %{name}-bin < %{version}
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
Provides: %{name}-bin = %{version}
|
||||||
|
Obsoletes: %{name}-bin < %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
SIP is a tool that makes it very easy to create Python bindings for C
|
SIP is a tool that makes it very easy to create Python bindings for C
|
||||||
@ -66,7 +65,6 @@ for any C or C++ library.
|
|||||||
This package contains all the developer tools you need to create your
|
This package contains all the developer tools you need to create your
|
||||||
own sip bindings.
|
own sip bindings.
|
||||||
|
|
||||||
|
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: SIP tool to create python bindings -- common documentation
|
Summary: SIP tool to create python bindings -- common documentation
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -81,7 +79,6 @@ for any C or C++ library.
|
|||||||
This package contains common documentation files shared between python2
|
This package contains common documentation files shared between python2
|
||||||
and python3 versions of sip.
|
and python3 versions of sip.
|
||||||
|
|
||||||
|
|
||||||
%package -n %{name}-common
|
%package -n %{name}-common
|
||||||
Summary: SIP tool to create python bindings -- common files
|
Summary: SIP tool to create python bindings -- common files
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -96,13 +93,12 @@ for any C or C++ library.
|
|||||||
This package contains common files shared between python2 and python3
|
This package contains common files shared between python2 and python3
|
||||||
versions of sip.
|
versions of sip.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sip-%{version}
|
%setup -q -n sip-%{version}
|
||||||
%patch0 -p1
|
%autopatch -p1
|
||||||
|
|
||||||
sip_major=$(grep "define SIP_API_MAJOR_NR" siplib/sip.h.in | awk '{print $3}')
|
sip_major=$(grep "define SIP_API_MAJOR_NR" siplib/sip.h | awk '{print $3}')
|
||||||
sip_minor=$(grep "define SIP_API_MINOR_NR" siplib/sip.h.in | awk '{print $3}')
|
sip_minor=$(grep "define SIP_API_MINOR_NR" siplib/sip.h | awk '{print $3}')
|
||||||
|
|
||||||
if test "%{python_sip_api}" != "$sip_major.$sip_minor"; then
|
if test "%{python_sip_api}" != "$sip_major.$sip_minor"; then
|
||||||
echo "API version was changed to $sip_major.$sip_minor"
|
echo "API version was changed to $sip_major.$sip_minor"
|
||||||
@ -118,7 +114,12 @@ pushd build_%{$python_bin_suffix}
|
|||||||
|
|
||||||
# Link against libpython (fixes bnc#756282 and bnc#721280)
|
# Link against libpython (fixes bnc#756282 and bnc#721280)
|
||||||
ldlibrary=`$python -c "import sysconfig as s;print(s.get_config_var('LDLIBRARY')[3:-3])"`
|
ldlibrary=`$python -c "import sysconfig as s;print(s.get_config_var('LDLIBRARY')[3:-3])"`
|
||||||
$python ../configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="-l$ldlibrary"
|
$python ../configure.py --debug \
|
||||||
|
CFLAGS+="%{optflags}" \
|
||||||
|
CXXFLAGS+="%{optflags}" \
|
||||||
|
LIBS+="-l$ldlibrary" \
|
||||||
|
--no-dist-info
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
# Point to the correct location for the documentation files
|
# Point to the correct location for the documentation files
|
||||||
@ -128,17 +129,42 @@ sed -i 's/"doc" directory/"doc" directory of package %{$python_prefix}-sip-devel
|
|||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Now build the PyQt5 sip module
|
||||||
|
%{python_expand mkdir build_PyQt5_%{$python_bin_suffix}
|
||||||
|
pushd build_PyQt5_%{$python_bin_suffix}
|
||||||
|
|
||||||
|
# Link against libpython (fixes bnc#756282 and bnc#721280)
|
||||||
|
ldlibrary=`$python -c "import sysconfig as s;print(s.get_config_var('LDLIBRARY')[3:-3])"`
|
||||||
|
$python ../configure.py --debug \
|
||||||
|
--sip-module=PyQt5.sip \
|
||||||
|
CFLAGS+="%{optflags}" \
|
||||||
|
CXXFLAGS+="%{optflags}" \
|
||||||
|
LIBS+="-l$ldlibrary" \
|
||||||
|
--no-dist-info
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
|
||||||
%{python_expand pushd build_%{$python_bin_suffix}
|
%{python_expand pushd build_%{$python_bin_suffix}
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Prepare for update-alternatives usage
|
# Prepare for update-alternatives usage
|
||||||
mv %{buildroot}%{_bindir}/sip %{buildroot}%{_bindir}/sip-%{$python_bin_suffix}
|
mv %{buildroot}%{_bindir}/sip %{buildroot}%{_bindir}/sip-%{$python_bin_suffix}
|
||||||
|
# Make sure the correct sip executable is picked
|
||||||
|
sed -i 's,%{_bindir}/sip,%{_bindir}/sip-%{$python_bin_suffix},' %{buildroot}%{python_sitearch}/sipconfig.py
|
||||||
|
}
|
||||||
|
|
||||||
|
%{python_expand pushd build_PyQt5_%{$python_bin_suffix}
|
||||||
|
%make_install
|
||||||
|
popd
|
||||||
|
|
||||||
|
%fdupes %{buildroot}%{python_sitearch}
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/rpm/
|
mkdir -p %{buildroot}/%{_sysconfdir}/rpm/
|
||||||
@ -168,16 +194,19 @@ mkdir -p %{buildroot}%{_datadir}/sip
|
|||||||
%python_uninstall_alternative sip
|
%python_uninstall_alternative sip
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE*
|
||||||
%doc ChangeLog LICENSE* NEWS
|
%doc ChangeLog NEWS
|
||||||
%doc build_%{python_bin_suffix}/README
|
%doc build_%{python_bin_suffix}/README
|
||||||
%{python_sitearch}/sip.so
|
%{python_sitearch}/sip.so
|
||||||
|
%dir %{python_sitearch}/PyQt5
|
||||||
|
%{python_sitearch}/PyQt5/sip.so
|
||||||
|
|
||||||
%files %{python_files devel}
|
%files %{python_files devel}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE*
|
||||||
%doc LICENSE*
|
|
||||||
%config %{_sysconfdir}/rpm/macros.%{python_prefix}-sip
|
%config %{_sysconfdir}/rpm/macros.%{python_prefix}-sip
|
||||||
%python_alternative %{_bindir}/sip
|
%python_alternative %{_bindir}/sip
|
||||||
|
%dir %{python_sitearch}/PyQt5
|
||||||
|
%{python_sitearch}/PyQt5/sip.pyi
|
||||||
%{_includedir}/python%{python_version}*/sip.h
|
%{_includedir}/python%{python_version}*/sip.h
|
||||||
%{python_sitearch}/sipconfig.py*
|
%{python_sitearch}/sipconfig.py*
|
||||||
%{python_sitearch}/sipdistutils.py*
|
%{python_sitearch}/sipdistutils.py*
|
||||||
@ -186,13 +215,11 @@ mkdir -p %{buildroot}%{_datadir}/sip
|
|||||||
%pycache_only %{python_sitearch}/__pycache__/sipdistutils.*.py*
|
%pycache_only %{python_sitearch}/__pycache__/sipdistutils.*.py*
|
||||||
|
|
||||||
%files -n python-sip-doc
|
%files -n python-sip-doc
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE*
|
||||||
%doc LICENSE*
|
|
||||||
%doc doc/
|
%doc doc/
|
||||||
|
|
||||||
%files -n python-sip-common
|
%files -n python-sip-common
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE*
|
||||||
%doc LICENSE*
|
|
||||||
%config %{_sysconfdir}/rpm/macros.python_all-sip
|
%config %{_sysconfdir}/rpm/macros.python_all-sip
|
||||||
%{_datadir}/sip/
|
%{_datadir}/sip/
|
||||||
|
|
||||||
|
3
sip-4.19.13.tar.gz
Normal file
3
sip-4.19.13.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e
|
||||||
|
size 1038815
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7eaf7a2ea7d4d38a56dd6d2506574464bddf7cf284c960801679942377c297bc
|
|
||||||
size 1024548
|
|
Loading…
Reference in New Issue
Block a user