Hello community,

here is the log from the commit of package python-sip for openSUSE:Factory 
checked in at 2018-11-06 13:49:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sip (Old)
 and      /work/SRC/openSUSE:Factory/.python-sip.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sip"

Tue Nov  6 13:49:48 2018 rev:98 rq:643603 version:4.19.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sip/python-sip.changes    2018-04-19 
15:20:30.836897417 +0200
+++ /work/SRC/openSUSE:Factory/.python-sip.new/python-sip.changes       
2018-11-06 13:49:50.332623633 +0100
@@ -1,0 +2,29 @@
+Sun Oct 21 09:31:18 UTC 2018 - Christophe Giboudeaux <[email protected]>
+
+- 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 - [email protected]
+
+- 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
+
+-------------------------------------------------------------------

Old:
----
  sip-4.19.8.tar.gz

New:
----
  disable-strip.diff
  sip-4.19.13.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sip.spec ++++++
--- /var/tmp/diff_new_pack.PsWGaD/_old  2018-11-06 13:49:52.376620862 +0100
+++ /var/tmp/diff_new_pack.PsWGaD/_new  2018-11-06 13:49:52.384620851 +0100
@@ -12,30 +12,30 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # 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-%{**}}
 Name:           python-sip
-Version:        4.19.8
+Version:        4.19.13
 Release:        0
 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
-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
 # PATCH-FIX-OPENSUSE disable-rpaths.diff -- Disable rpaths
 Patch0:         disable-rpaths.diff
+# PATCH-FIX-OPENSUSE disable-strip.diff -- Disable stripping
+Patch1:         disable-strip.diff
 BuildRequires:  %{python_module devel}
 BuildRequires:  c++_compiler
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       %{name}-common = %{version}
 Provides:       python-sip(api) = %{python_sip_api}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-
 %python_subpackages
 
 %description
@@ -44,7 +44,6 @@
 Python bindings for the Qt toolkit, but can be used to create bindings
 for any C or C++ library.
 
-
 %package devel
 Summary:        SIP tool to create python bindings
 Group:          Development/Libraries/Python
@@ -52,10 +51,10 @@
 Requires:       %{name}-common = %{version}
 Requires:       c++_compiler
 Requires:       python-devel
-Provides:       %{name}-bin = %{version}
-Obsoletes:      %{name}-bin < %{version}
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+Provides:       %{name}-bin = %{version}
+Obsoletes:      %{name}-bin < %{version}
 
 %description devel
 SIP is a tool that makes it very easy to create Python bindings for C
@@ -66,7 +65,6 @@
 This package contains all the developer tools you need to create your
 own sip bindings.
 
-
 %package -n %{name}-doc
 Summary:        SIP tool to create python bindings -- common documentation
 Group:          Development/Libraries/Python
@@ -81,7 +79,6 @@
 This package contains common documentation files shared between python2
 and python3 versions of sip.
 
-
 %package -n %{name}-common
 Summary:        SIP tool to create python bindings -- common files
 Group:          Development/Libraries/Python
@@ -96,13 +93,12 @@
 This package contains common files shared between python2 and python3
 versions of sip.
 
-
 %prep
 %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_minor=$(grep "define SIP_API_MINOR_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 | awk '{print $3}')
 
 if test "%{python_sip_api}" != "$sip_major.$sip_minor"; then
     echo "API version was changed to $sip_major.$sip_minor"
@@ -118,7 +114,12 @@
 
 # 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 CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" 
LIBS+="-l$ldlibrary"
+$python ../configure.py --debug \
+  CFLAGS+="%{optflags}" \
+  CXXFLAGS+="%{optflags}" \
+  LIBS+="-l$ldlibrary" \
+  --no-dist-info
+
 make %{?_smp_mflags}
 
 # Point to the correct location for the documentation files
@@ -128,17 +129,42 @@
 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
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 
 %{python_expand pushd build_%{$python_bin_suffix}
-
 %make_install
-
 popd
 
 # Prepare for update-alternatives usage
 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/
@@ -168,16 +194,19 @@
 %python_uninstall_alternative sip
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc ChangeLog LICENSE* NEWS
+%license LICENSE*
+%doc ChangeLog NEWS
 %doc build_%{python_bin_suffix}/README
 %{python_sitearch}/sip.so
+%dir %{python_sitearch}/PyQt5
+%{python_sitearch}/PyQt5/sip.so
 
 %files %{python_files devel}
-%defattr(-,root,root,-)
-%doc LICENSE*
+%license LICENSE*
 %config %{_sysconfdir}/rpm/macros.%{python_prefix}-sip
 %python_alternative %{_bindir}/sip
+%dir %{python_sitearch}/PyQt5
+%{python_sitearch}/PyQt5/sip.pyi
 %{_includedir}/python%{python_version}*/sip.h
 %{python_sitearch}/sipconfig.py*
 %{python_sitearch}/sipdistutils.py*
@@ -186,13 +215,11 @@
 %pycache_only %{python_sitearch}/__pycache__/sipdistutils.*.py*
 
 %files -n python-sip-doc
-%defattr(-,root,root,-)
-%doc LICENSE*
+%license LICENSE*
 %doc doc/
 
 %files -n python-sip-common
-%defattr(-,root,root,-)
-%doc LICENSE*
+%license LICENSE*
 %config %{_sysconfdir}/rpm/macros.python_all-sip
 %{_datadir}/sip/
 

++++++ disable-rpaths.diff ++++++
--- /var/tmp/diff_new_pack.PsWGaD/_old  2018-11-06 13:49:52.412620813 +0100
+++ /var/tmp/diff_new_pack.PsWGaD/_new  2018-11-06 13:49:52.412620813 +0100
@@ -1,8 +1,8 @@
-Index: b/siputils.py
-===================================================================
+diff --git a/siputils.py b/siputils.py
+index a29300d..df58650 100644
 --- a/siputils.py
 +++ b/siputils.py
-@@ -926,6 +926,7 @@ class Makefile:
+@@ -927,6 +927,7 @@ class Makefile:
          rpaths is the cannonical list of rpaths.
          """
          flags = []

++++++ disable-strip.diff ++++++
commit c59ca3fa7a63c7c13fb6be2d9642feeeaef603e2
Author: Christophe Giboudeaux <[email protected]>
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.
++++++ sip-4.19.8.tar.gz -> sip-4.19.13.tar.gz ++++++
++++ 43252 lines of diff (skipped)


Reply via email to