Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2018-01-26 13:40:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Fri Jan 26 13:40:08 2018 rev:9 rq:569726 version:4.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2017-12-19 10:58:15.718003559 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new/python-libvirt-python.changes
 2018-01-26 13:40:12.895290095 +0100
@@ -1,0 +2,7 @@
+Fri Jan 19 18:39:23 UTC 2018 - [email protected]
+
+- Update to 4.0.0
+  - Add all new APIs and constants in libvirt 4.0.0
+  - BuildRequire matching libvirt version
+
+-------------------------------------------------------------------

Old:
----
  libvirt-python-3.10.0.tar.gz
  libvirt-python-3.10.0.tar.gz.asc

New:
----
  libvirt-python-4.0.0.tar.gz
  libvirt-python-4.0.0.tar.gz.asc

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

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.OYl1pJ/_old  2018-01-26 13:40:13.655254602 +0100
+++ /var/tmp/diff_new_pack.OYl1pJ/_new  2018-01-26 13:40:13.655254602 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-libvirt-python
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %define srcname libvirt-python
 Name:           python-libvirt-python
 Url:            http://libvirt.org/
-Version:        3.10.0
+Version:        4.0.0
 Release:        0
 Summary:        Library providing a virtualization API
 License:        LGPL-2.1+
@@ -29,7 +29,7 @@
 Source1:        %{srcname}-%{version}.tar.gz.asc
 Source2:        python-libvirt-python.keyring
 BuildRequires:  fdupes
-BuildRequires:  libvirt-devel >= 0.9.11
+BuildRequires:  libvirt-devel = %{version}
 BuildRequires:  python-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module devel}

++++++ libvirt-python-3.10.0.tar.gz -> libvirt-python-4.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/AUTHORS 
new/libvirt-python-4.0.0/AUTHORS
--- old/libvirt-python-3.10.0/AUTHORS   2017-12-04 18:46:31.000000000 +0100
+++ new/libvirt-python-4.0.0/AUTHORS    2018-01-19 12:15:12.000000000 +0100
@@ -62,6 +62,7 @@
    Oskari Saarenmaa <[email protected]>
    Pavel Boldin <[email protected]>
    Pavel Hrdina <[email protected]>
+   Peng Hao <[email protected]>
    Peter Krempa <[email protected]>
    Philipp Hahn <[email protected]>
    Prabodh Agarwal <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/ChangeLog 
new/libvirt-python-4.0.0/ChangeLog
--- old/libvirt-python-3.10.0/ChangeLog 2017-12-04 18:46:31.000000000 +0100
+++ new/libvirt-python-4.0.0/ChangeLog  2018-01-19 12:15:12.000000000 +0100
@@ -1,3 +1,105 @@
+2018-01-19 Daniel Veillard  <[email protected]>
+    
+    Release of libvirt-python-4.0.0
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Use python*_sitearch macros instead of manually defining the dir
+    Note we use python_sitearch not python2_sitearch, since the former
+    is more portable.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Fix filtering of RPM provides for .so files
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Require libvirt native version matching py version by default
+    Although we're capable of building against any libvirt >= 0.9.11, 99% of 
the
+    time we want RPM builds to be done against matching libvirt version, 
otherwise
+    we might silently build against an unexpected/wrong version.
+    
+    We don't support building against a native libvirt that's newer than the
+    python binding, since the generator may incorrectly handle new APIs. So use
+    == instead of >= too.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Turn on python3 sub-RPMs for RHEL > 7
+    It is expected that future RHEL-8 will have python3 by default, so enable 
that.
+    It is unclear whether python2 will still be available, so leave that 
enabled
+    for now.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Adapt to rename of py2 RPMs from python- to python2- prefix
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Add emacs mode marker to activate rpm-spec highlighting
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Add checks for min supported distros
+    Be clear about which distros we aim to support with the specfile, so we 
know
+    what we can cleanup in the spec later.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Allow override of which sub-RPMs to build
+    Allow using
+    
+    rpmbuild --define "with_python2 0"
+    
+    to override the default logic about which python sub-RPMs to build
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-01-12 Daniel P. Berrange  <[email protected]>
+    
+    Allow disabling of python2 RPM build
+    With Fedora modularity, it is possible to have add-on repos for multiple
+    versions of python3. It is thus desirable to be able to build 
libvirt-python
+    in these repos, with only the python3 sub-RPMs enabled.
+    
+    Thus also helps if future RHEL/Fedora drop python2 entirely from their 
default
+    repos.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2017-12-11 Peng Hao  <[email protected]>
+    
+    libvirt-python : PyObject memory leak
+    libvirt_virConnectDomainEventTunableCallback leak a PyObject.
+    
+    
+    
+2017-12-04 Daniel Veillard  <[email protected]>
+    
+    Release of libvirt-python 3.10.0
+    
+    
 2017-11-30 Cédric Bosdonnat  <[email protected]>
     
     Don't hardcode interpreter path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/PKG-INFO 
new/libvirt-python-4.0.0/PKG-INFO
--- old/libvirt-python-3.10.0/PKG-INFO  2017-12-04 18:46:31.000000000 +0100
+++ new/libvirt-python-4.0.0/PKG-INFO   2018-01-19 12:15:12.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: libvirt-python
-Version: 3.10.0
+Version: 4.0.0
 Summary: The libvirt virtualization API python binding
 Home-page: http://www.libvirt.org
 Author: Libvirt Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/libvirt-override.c 
new/libvirt-python-4.0.0/libvirt-override.c
--- old/libvirt-python-3.10.0/libvirt-override.c        2017-12-04 
18:31:00.000000000 +0100
+++ new/libvirt-python-4.0.0/libvirt-override.c 2018-01-19 12:12:33.000000000 
+0100
@@ -6662,11 +6662,11 @@
     if (!pyobj_ret) {
         DEBUG("%s - ret:%p\n", __FUNCTION__, pyobj_ret);
         PyErr_Print();
-        Py_XDECREF(pyobj_dict);
     } else {
         Py_DECREF(pyobj_ret);
         ret = 0;
     }
+    Py_XDECREF(pyobj_dict);
 
     LIBVIRT_RELEASE_THREAD_STATE;
     return ret;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/libvirt-python.spec 
new/libvirt-python-4.0.0/libvirt-python.spec
--- old/libvirt-python-3.10.0/libvirt-python.spec       2017-12-04 
18:46:31.000000000 +0100
+++ new/libvirt-python-4.0.0/libvirt-python.spec        2018-01-19 
12:15:12.000000000 +0100
@@ -1,21 +1,52 @@
+# -*- rpm-spec -*-
 
-%define with_python3 0
-%if 0%{?fedora}
-%define with_python3 1
+# This spec file assumes you are building on a Fedora or RHEL version
+# that's still supported by the vendor. It may work on other distros
+# or versions, but no effort will be made to ensure that going forward
+%define min_rhel 6
+%define min_fedora 25
+
+%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} 
>= %{min_rhel})
+    %define supported_platform 1
+%else
+    %define supported_platform 0
+%endif
+
+%define _with_python2 1
+%define _with_python3 0
+%if 0%{?fedora} || 0%{?rhel} > 7
+%define _with_python3 1
+%endif
+
+# Whether py2 packages are assumed to have python2- name prefix
+%define py2_versioned_deps 0
+%if 0%{?fedora} || 0%{?rhel} > 7
+%define py2_versioned_deps 1
 %endif
 
+%{!?with_python2: %define with_python2 %{_with_python2}}
+%{!?with_python3: %define with_python3 %{_with_python3}}
+
 Summary: The libvirt virtualization API python2 binding
 Name: libvirt-python
-Version: 3.10.0
+Version: 4.0.0
 Release: 1%{?dist}%{?extra_release}
 Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
 Url: http://libvirt.org
 License: LGPLv2+
 Group: Development/Libraries
-BuildRequires: libvirt-devel >= 0.9.11
+BuildRequires: libvirt-devel == %{version}
+%if %{with_python2}
+%if %{py2_versioned_deps}
+BuildRequires: python2-devel
+BuildRequires: python2-nose
+BuildRequires: python2-lxml
+%else
 BuildRequires: python-devel
 BuildRequires: python-nose
 BuildRequires: python-lxml
+%endif
+%endif
 %if %{with_python3}
 BuildRequires: python3-devel
 BuildRequires: python3-nose
@@ -23,7 +54,12 @@
 %endif
 
 # Don't want provides for python shared objects
+%if %{with_python2}
 %{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
+%endif
+%if %{with_python3}
+%{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so}
+%endif
 %{?filter_setup}
 
 %description
@@ -32,6 +68,7 @@
 supplied by the libvirt library to use the virtualization capabilities
 of recent versions of Linux (and other OSes).
 
+%if %{with_python2}
 %package -n python2-libvirt
 Summary: The libvirt virtualization API python2 binding
 Url: http://libvirt.org
@@ -46,6 +83,7 @@
 written in the Python programming language to use the interface
 supplied by the libvirt library to use the virtualization capabilities
 of recent versions of Linux (and other OSes).
+%endif
 
 %if %{with_python3}
 %package -n python3-libvirt
@@ -73,46 +111,59 @@
 find examples -type f -exec chmod 0644 \{\} \;
 
 %build
+%if ! %{supported_platform}
+echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
+exit 1
+%endif
+
+%if %{with_python2}
 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%endif
 %if %{with_python3}
 CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
 %endif
 
 %install
+%if %{with_python2}
 %{__python} setup.py install --skip-build --root=%{buildroot}
+%endif
 %if %{with_python3}
 %{__python3} setup.py install --skip-build --root=%{buildroot}
 %endif
 
 %check
+%if %{with_python2}
 %{__python} setup.py test
+%endif
 %if %{with_python3}
 %{__python3} setup.py test
 %endif
 
+%if %{with_python2}
 %files -n python2-libvirt
 %defattr(-,root,root)
 %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
-%{_libdir}/python2*/site-packages/libvirt.py*
-%{_libdir}/python2*/site-packages/libvirt_qemu.py*
-%{_libdir}/python2*/site-packages/libvirt_lxc.py*
-%{_libdir}/python2*/site-packages/libvirtmod*
-%{_libdir}/python2*/site-packages/*egg-info
+%{python_sitearch}/libvirt.py*
+%{python_sitearch}/libvirt_qemu.py*
+%{python_sitearch}/libvirt_lxc.py*
+%{python_sitearch}/libvirtmod*
+%{python_sitearch}/*egg-info
+%endif
 
 %if %{with_python3}
 %files -n python3-libvirt
 %defattr(-,root,root)
 %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
-%{_libdir}/python3*/site-packages/libvirt.py*
-%{_libdir}/python3*/site-packages/libvirtaio.py*
-%{_libdir}/python3*/site-packages/libvirt_qemu.py*
-%{_libdir}/python3*/site-packages/libvirt_lxc.py*
-%{_libdir}/python3*/site-packages/__pycache__/libvirt.cpython-*.py*
-%{_libdir}/python3*/site-packages/__pycache__/libvirt_qemu.cpython-*.py*
-%{_libdir}/python3*/site-packages/__pycache__/libvirt_lxc.cpython-*.py*
-%{_libdir}/python3*/site-packages/__pycache__/libvirtaio.cpython-*.py*
-%{_libdir}/python3*/site-packages/libvirtmod*
-%{_libdir}/python3*/site-packages/*egg-info
+%{python3_sitearch}/libvirt.py*
+%{python3_sitearch}/libvirtaio.py*
+%{python3_sitearch}/libvirt_qemu.py*
+%{python3_sitearch}/libvirt_lxc.py*
+%{python3_sitearch}/__pycache__/libvirt.cpython-*.py*
+%{python3_sitearch}/__pycache__/libvirt_qemu.cpython-*.py*
+%{python3_sitearch}/__pycache__/libvirt_lxc.cpython-*.py*
+%{python3_sitearch}/__pycache__/libvirtaio.cpython-*.py*
+%{python3_sitearch}/libvirtmod*
+%{python3_sitearch}/*egg-info
 %endif
 
 %changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-3.10.0/setup.py 
new/libvirt-python-4.0.0/setup.py
--- old/libvirt-python-3.10.0/setup.py  2017-12-04 18:46:24.000000000 +0100
+++ new/libvirt-python-4.0.0/setup.py   2018-01-19 12:13:20.000000000 +0100
@@ -175,8 +175,7 @@
         f2 = open('libvirt-python.spec', 'w')
         for line in f1:
             f2.write(line
-                     .replace('@PY_VERSION@', self.distribution.get_version())
-                     .replace('@C_VERSION@', MIN_LIBVIRT))
+                     .replace('@PY_VERSION@', self.distribution.get_version()))
         f1.close()
         f2.close()
 
@@ -335,7 +334,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '3.10.0',
+      version = '4.0.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = '[email protected]',


Reply via email to