diff --git a/python-bitstruct.changes b/python-bitstruct.changes index a7b1259..fd85cca 100644 --- a/python-bitstruct.changes +++ b/python-bitstruct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 21 09:39:29 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch macro + ------------------------------------------------------------------- Tue Jul 21 05:57:35 UTC 2020 - Steve Kowalik diff --git a/python-bitstruct.spec b/python-bitstruct.spec index bb98f0e..d52a3d3 100644 --- a/python-bitstruct.spec +++ b/python-bitstruct.spec @@ -1,7 +1,7 @@ # # spec file for package python-bitstruct # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -27,6 +27,7 @@ License: MIT URL: https://github.com/eerimoq/bitstruct Source: https://files.pythonhosted.org/packages/source/b/bitstruct/bitstruct-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,7 +49,8 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python setup.py test +mv bitstruct bitstruct.hide +%pyunittest_arch discover -v tests %files %{python_files} %license LICENSE