diff --git a/libvirt-python.spec b/libvirt-python.spec index 758aeca320a33d25740e7b874d7c342a6504d6b2..4dddf4b57c02f8bbf1f4e41d426d8a24a209f47b 100644 --- a/libvirt-python.spec +++ b/libvirt-python.spec @@ -3,19 +3,17 @@ Summary: The libvirt virtualization API python3 binding Name: libvirt-python Version: 9.10.0 -Release: 2 -Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz -Url: http://libvirt.org -License: LGPLv2+ +Release: 3 +Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz +Url: https://libvirt.org +License: LGPL-2.1-or-later BuildRequires: libvirt-devel BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-lxml BuildRequires: gcc -# Don't want provides for python shared objects -%{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so} -%{?filter_setup} +%global __provides_exclude_from ^(%{python3_sitearch}/.*\.so)$ %description The libvirt-python package contains a module that permits applications @@ -25,11 +23,9 @@ of recent versions of Linux (and other OSes). %package -n python3-libvirt Summary: The libvirt virtualization API python3 binding -Url: http://libvirt.org -License: LGPLv2+ %{?python_provide:%python_provide python3-libvirt} Provides: libvirt-python3 = %{version}-%{release} -Obsoletes: libvirt-python3 <= 3.6.0-1%{?dist} +Obsoletes: libvirt-python3 < %{version}-%{release} %description -n python3-libvirt The python3-libvirt package contains a module that permits applications @@ -52,11 +48,11 @@ find examples -type f -exec chmod 0644 \{\} \; %py3_install %check -%{__python3} setup.py test +%pytest %files -n python3-libvirt -%defattr(-,root,root) -%doc README COPYING examples/ +%license COPYING +%doc README examples/ %{python3_sitearch}/libvirt.py* %{python3_sitearch}/libvirtaio.py* %{python3_sitearch}/libvirt_qemu.py* @@ -69,6 +65,9 @@ find examples -type f -exec chmod 0644 \{\} \; %{python3_sitearch}/*egg-info %changelog +* Mon Jul 14 2025 Funda Wang - 9.10.0-3 +- fix test usage + * Thu Mar 28 2024 mayunlong - 9.10.0-2 - Delete BuildRequires python3-libvirt to fix build failure.