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
This commit is contained in:
parent
a0e486e302
commit
7a449c8922
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 13 23:01:05 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <dcermak@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user