diff --git a/python-ed25519.changes b/python-ed25519.changes index 5d15a2c..68e1036 100644 --- a/python-ed25519.changes +++ b/python-ed25519.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 7 15:11:01 UTC 2021 - Matej Cepl + +- Switch from python setup.py test construct to pyunittest macro. + ------------------------------------------------------------------- Tue May 26 06:34:05 UTC 2020 - Petr Gajdos diff --git a/python-ed25519.spec b/python-ed25519.spec index 5b43738..dee2a0c 100644 --- a/python-ed25519.spec +++ b/python-ed25519.spec @@ -1,7 +1,7 @@ # # spec file for package python-ed25519 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -49,7 +49,9 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +cp src/ed25519/test*.py . +rm -r src +%pyunittest_arch test*.py %post %python_install_alternative edsig