From ca606d04effad2e3fb9c8ad18768d15aa0431f795df18b2221d67f4b3ed9fb5a Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Tue, 1 Jun 2021 16:55:33 +0000 Subject: [PATCH] Accepting request 896632 from home:pgajdos:python - %check: use %pyunittest_arch rpm macro for post 15 OBS-URL: https://build.opensuse.org/request/show/896632 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5-parser?expand=0&rev=21 --- python-html5-parser.changes | 5 +++++ python-html5-parser.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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