diff --git a/python-jsonpatch.changes b/python-jsonpatch.changes index 5a6adac..6a4d62f 100644 --- a/python-jsonpatch.changes +++ b/python-jsonpatch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 17 21:02:26 UTC 2021 - Matej Cepl + +- Don't use python setup.py test expression. + ------------------------------------------------------------------- Sun Aug 22 20:36:59 UTC 2021 - Stefan Schubert diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec index 1f5dbea..4cccc78 100644 --- a/python-jsonpatch.spec +++ b/python-jsonpatch.spec @@ -71,15 +71,16 @@ Python module to apply JSON-Patches (according to RFC 6902). rm %{buildroot}%{_bindir}/jsondiff %check -%python_exec tests.py +%pyunittest -v tests %if %{with libalternatives} %pre # removing old update-alternatives entries if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then %python_uninstall_alternative jsonpatch -fi +fi %else + %post %python_install_alternative jsonpatch @@ -99,6 +100,6 @@ fi %{_bindir}/jsonpatch %{_bindir}/jsonpatch-%python_version %endif -%{python_sitelib}/* +%{python_sitelib}/jsonpatch* %changelog