17
0
2020-10-30 10:45:42 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 3 deletions

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Oct 23 19:56:04 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- 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 <jfehlig@suse.com>

View File

@@ -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