diff --git a/python-html5-parser.changes b/python-html5-parser.changes index a80bf6a..3340561 100644 --- a/python-html5-parser.changes +++ b/python-html5-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 31 07:30:34 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch rpm macro for post 15 + ------------------------------------------------------------------- Thu Apr 9 11:12:17 UTC 2020 - Marketa Calabkova diff --git a/python-html5-parser.spec b/python-html5-parser.spec index 64fbd9d..cdf26e1 100644 --- a/python-html5-parser.spec +++ b/python-html5-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-html5-parser # -# 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 @@ -43,13 +43,18 @@ about thirty times faster than the "html5lib" pure Python based parser. %setup -q -n html5-parser-%{version} %build +find . -name '*.py' -exec sed -i '/#.*usr.bin.env.*python/d' {} \; %python_build %install %python_install %check +%if 0%{?suse_version} > 1500 +%pyunittest_arch -v test/*.py +%else %python_exec setup.py test +%endif %files %{python_files} %license LICENSE