diff --git a/python-libvirt-python.changes b/python-libvirt-python.changes index 25d254b..2aede93 100644 --- a/python-libvirt-python.changes +++ b/python-libvirt-python.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Oct 23 19:56:04 UTC 2020 - Benjamin Greiner + +- Use %pycache_only %python_sitelib instead of %python3_sitelib in + order to support multiple python3 flavors + gh#openSUSE/python-rpm-macros#66 +- Enable test suite. It is mandatory for python packages and + upstream's next major version update will have more tests. + ------------------------------------------------------------------- Mon Oct 12 19:34:25 UTC 2020 - James Fehlig diff --git a/python-libvirt-python.spec b/python-libvirt-python.spec index 94651ac..a1e15f5 100644 --- a/python-libvirt-python.spec +++ b/python-libvirt-python.spec @@ -19,7 +19,7 @@ # No longer build for python2. Support was dropped upstream in the 6.0.0 release %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %define srcname libvirt-python Name: python-libvirt-python URL: https://libvirt.org/ @@ -37,6 +37,7 @@ BuildRequires: libvirt-devel = %{version} BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module xml} %ifpython2 Provides: libvirt-python = %{version} @@ -68,9 +69,13 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +%pytest_arch + %files %{python_files} %doc ChangeLog AUTHORS README COPYING COPYING.LESSER examples/ -%{python_sitearch}/* -%pycache_only %{python3_sitearch}/__pycache__/* +%{python_sitearch}/libvirt* +%{python_sitearch}/libvirt_python-%{version}*info +%pycache_only %{python_sitearch}/__pycache__/libvirt* %changelog