diff --git a/python-lxml.changes b/python-lxml.changes index d86c223..332c77c 100644 --- a/python-lxml.changes +++ b/python-lxml.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 24 10:53:21 UTC 2024 - ecsos + +- Fix build error for Leap. + Use build and test as descriped on upstream. + ------------------------------------------------------------------- Sun Jan 14 10:00:32 UTC 2024 - Adrian Schröter diff --git a/python-lxml.spec b/python-lxml.spec index adb1e98..b48f4bf 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -36,9 +36,6 @@ Patch2: skip-test-under-libxml2-2.11.1.patch BuildRequires: %{python_module Cython >= 3.0.7} BuildRequires: %{python_module base} BuildRequires: %{python_module cssselect >= 0.9.1} -# cyclic dependency -#BuildRequires: %{python_module html5lib} -#BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module setuptools >= 18.0.1} BuildRequires: fdupes %if 0%{?suse_version} == 1500 @@ -98,7 +95,7 @@ rm src/lxml/lxml.etree_api.h %build export CFLAGS="%{optflags}" -%python_build --with-cython +%python_build build_ext -i --with-cython %check # The tests fail on SLE 11 due to broken incremental parsing in libxml2 @@ -107,7 +104,7 @@ export LANG=en_US.UTF-8 export PYTHONUNBUFFERED=x # cyclic dependency between html5lib and lxml rm -v src/lxml/html/tests/test_html5parser.py -%{python_expand PYTHON3="$python" %make_build test} +%python_exec test.py %install %python_install