diff --git libvirt-python/libvirt-python.spec libvirt-python/libvirt-python.spec.tmp index bd266e2e73..1b2492af0c 100644 --- libvirt-python/libvirt-python.spec +++ libvirt-python/libvirt-python.spec.tmp @@ -7,7 +7,7 @@ Summary: The libvirt virtualization API python2 binding Name: libvirt-python Version: 3.5.0 -Release: 4%{?dist}%{?extra_release} +Release: 5%{?dist}%{?extra_release} Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: http://libvirt.org License: LGPLv2+ @@ -26,12 +26,23 @@ BuildRequires: python3-lxml %{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so} %{?filter_setup} -%description -The libvirt-python package contains a module that permits applications -written in the Python programming language to use the interface -supplied by the libvirt library to use the virtualization capabilities +%global _description\ +The libvirt-python package contains a module that permits applications\ +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). +%description %_description + +%package -n python2-libvirt +Summary: %summary +%{?python_provide:%python_provide python2-libvirt} +# Remove before F30 +Provides: libvirt-python%{?_isa} = %{version}-%{release} +Obsoletes: libvirt-python < %{version}-%{release} + +%description -n python2-libvirt %_description + %if %{with_python3} %package -n libvirt-python3 Summary: The libvirt virtualization API python3 binding @@ -72,7 +83,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %{__python3} setup.py test %endif -%files +%files -n python2-libvirt %defattr(-,root,root) %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/ %{_libdir}/python2*/site-packages/libvirt.py* @@ -98,6 +109,10 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %endif %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 3.5.0-5 +- Python 2 binary package renamed to python2-libvirt + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 3.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild