Skip to content
Commits on Source (3)
2018-07-23 Daniel P. Berrangé <berrange@redhat.com>
rpm: update min required rhel/fedora
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2018-07-23 Daniel P. Berrangé <berrange@redhat.com>
rpm: add BuildRequires on gcc
The gcc RPM is no longer part of the default build root.
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2018-07-23 Daniel P. Berrangé <berrange@redhat.com>
rpm: use the versioned python2 macro names
The use of non-versioned python2 macro names is deprecated in Fedora
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2018-07-16 Daniel P. Berrangé <berrange@redhat.com>
travis: add libvirt 4.5.0 version to build matrix
2018-07-16 Daniel P. Berrangé <berrange@redhat.com>
fix build with older libvirt missing virNWFilterBindingPtr
While we correctly disable all public API bindings that rely on
virNWFilterBindingPtr, the generator is still creating a helper function
that needs it - libvirt_virNWFilterBinding_pointer. Making this helper
conditional is a little hairy, so just provide a trivial typedef to keep
it happy.
2018-07-10 Cole Robinson <crobinso@redhat.com>
spec: Remove Group: and %defattr
These are only needed for RHEL5 builds, which are no longer supported
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CMCUBB4SWS3URHTRRS3OPFM4HF5CGKBW/
https://fedoraproject.org/wiki/RPMGroups
2018-07-02 Daniel Veillard <veillard@redhat.com>
Release of libvirt-python-4.5.0
......
Metadata-Version: 1.1
Name: libvirt-python
Version: 4.5.0
Version: 4.6.0
Summary: The libvirt virtualization API python binding
Home-page: http://www.libvirt.org
Author: Libvirt Maintainers
......
libvirt-python (4.6.0-1) unstable; urgency=medium
* [2019ea6] New upstream version 4.6.0
-- Guido Günther <agx@sigxcpu.org> Tue, 14 Aug 2018 15:22:44 +0200
libvirt-python (4.5.0-1) unstable; urgency=medium
* [f1bae57] New upstream version 4.5.0
......
......@@ -3,8 +3,8 @@
# 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
%define min_rhel 7
%define min_fedora 27
%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel})
%define supported_platform 1
......@@ -33,12 +33,11 @@
Summary: The libvirt virtualization API python2 binding
Name: libvirt-python
Version: 4.5.0
Version: 4.6.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 == %{version}
%if %{with_python2}
%if %{py2_versioned_deps}
......@@ -56,10 +55,11 @@ BuildRequires: python3-devel
BuildRequires: python3-nose
BuildRequires: python3-lxml
%endif
BuildRequires: gcc
# Don't want provides for python shared objects
%if %{with_python2}
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
%{?filter_provides_in: %filter_provides_in %{python2_sitearch}/.*\.so}
%endif
%if %{with_python3}
%{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so}
......@@ -77,7 +77,6 @@ of recent versions of Linux (and other OSes).
Summary: The libvirt virtualization API python2 binding
Url: http://libvirt.org
License: LGPLv2+
Group: Development/Libraries
%{?python_provide:%python_provide python2-libvirt}
Provides: libvirt-python = %{version}-%{release}
Obsoletes: libvirt-python <= 3.6.0-1%{?dist}
......@@ -94,7 +93,6 @@ of recent versions of Linux (and other OSes).
Summary: The libvirt virtualization API python3 binding
Url: http://libvirt.org
License: LGPLv2+
Group: Development/Libraries
%{?python_provide:%python_provide python3-libvirt}
Provides: libvirt-python3 = %{version}-%{release}
Obsoletes: libvirt-python3 <= 3.6.0-1%{?dist}
......@@ -121,7 +119,7 @@ exit 1
%endif
%if %{with_python2}
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
%endif
%if %{with_python3}
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
......@@ -129,7 +127,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%install
%if %{with_python2}
%{__python} setup.py install --skip-build --root=%{buildroot}
%{__python2} setup.py install --skip-build --root=%{buildroot}
%endif
%if %{with_python3}
%{__python3} setup.py install --skip-build --root=%{buildroot}
......@@ -137,7 +135,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%check
%if %{with_python2}
%{__python} setup.py test
%{__python2} setup.py test
%endif
%if %{with_python3}
%{__python3} setup.py test
......@@ -145,18 +143,16 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%if %{with_python2}
%files -n python2-libvirt
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{python_sitearch}/libvirt.py*
%{python_sitearch}/libvirt_qemu.py*
%{python_sitearch}/libvirt_lxc.py*
%{python_sitearch}/libvirtmod*
%{python_sitearch}/*egg-info
%{python2_sitearch}/libvirt.py*
%{python2_sitearch}/libvirt_qemu.py*
%{python2_sitearch}/libvirt_lxc.py*
%{python2_sitearch}/libvirtmod*
%{python2_sitearch}/*egg-info
%endif
%if %{with_python3}
%files -n python3-libvirt
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{python3_sitearch}/libvirt.py*
%{python3_sitearch}/libvirtaio.py*
......
......@@ -334,7 +334,7 @@ class my_clean(clean):
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
version = '4.5.0',
version = '4.6.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = 'libvir-list@redhat.com',
......
......@@ -27,6 +27,10 @@
typedef ssize_t Py_ssize_t;
#endif
#if !LIBVIR_CHECK_VERSION(4, 5, 0)
typedef struct _virNWFilterBinding *virNWFilterBindingPtr;
#endif
#define PyvirConnect_Get(v) (((v) == Py_None) ? NULL : \
(((PyvirConnect_Object *)(v))->obj))
......