diff --git a/python-pyxattr.changes b/python-pyxattr.changes index ca1a7fa..8d39681 100644 --- a/python-pyxattr.changes +++ b/python-pyxattr.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 13 23:01:05 UTC 2020 - Benjamin Greiner + +- Fix BuildRequires for multiple python3 flavors + gh#openSUSE/python-rpm-macros#66 +- Use %pytest_arch + ------------------------------------------------------------------- Wed Feb 19 08:49:11 UTC 2020 - Dan Čermák diff --git a/python-pyxattr.spec b/python-pyxattr.spec index a24c48d..103a53c 100644 --- a/python-pyxattr.spec +++ b/python-pyxattr.spec @@ -35,7 +35,7 @@ BuildRequires: fdupes BuildRequires: gcc BuildRequires: libattr-devel BuildRequires: python-rpm-macros -BuildRequires: python3-pytest +BuildRequires: %{python_module pytest} %python_subpackages %description @@ -50,10 +50,7 @@ of the attr C library - see attr(5). %python_build %check -# the module is just a C extension => need to add the installed destination to -# PYTHONPATH, otherwise it won't be found -export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH -%python_exec -m pytest test +%pytest_arch test %install %python_install @@ -61,7 +58,7 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH %files %{python_files} %{python_sitearch}/xattr* -%{python_sitearch}/*egg-info +%{python_sitearch}/pyxattr-%{version}*-info %license COPYING %doc NEWS README.md