From 7a449c892210b9ec00420f7df60fa4ee56c2914f26bea16d6e70a20578a2b65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Mon, 16 Nov 2020 12:56:29 +0000 Subject: [PATCH] Accepting request 848432 from home:bnavigator:branches:devel:languages:python - Fix BuildRequires for multiple python3 flavors gh#openSUSE/python-rpm-macros#66 - Use %pytest_arch OBS-URL: https://build.opensuse.org/request/show/848432 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyxattr?expand=0&rev=6 --- python-pyxattr.changes | 7 +++++++ python-pyxattr.spec | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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