diff --git a/python-lxml.spec b/python-lxml.spec index fb979e8..1cfcf6a 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -68,6 +68,8 @@ sed -i "s/, 'lxml.isoschematron'//" setup.py # Remove the doctests for it (the documentation is not shipped) # The command [d]eletes all lines from the first pattern to the second sed -Ei '/^Schematron$/,/^\(Pre-ISO-Schematron\)$/d' doc/validation.txt +# Don't run html5lib tests --without extras +%{!?without_extras:rm src/lxml/html/tests/test_html5parser.py} %generate_buildrequires %pyproject_buildrequires -x source%{?with_extras:,cssselect,html5,htmlsoup}