From 837840e35d478fc1d6ef1cb598d2f6ac1cc0c0f45df04b548ba48bed36af490d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 25 Jan 2024 14:00:53 +0000 Subject: [PATCH] Accepting request 1141231 from home:ecsos:python - Fix build error for Leap. Use build and test as descriped on upstream. OBS-URL: https://build.opensuse.org/request/show/1141231 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=195 --- python-lxml.changes | 6 ++++++ python-lxml.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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..37cb6d4 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -37,8 +37,8 @@ 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 html5lib} +#BuildRequires: %%{python_module beautifulsoup4} BuildRequires: %{python_module setuptools >= 18.0.1} BuildRequires: fdupes %if 0%{?suse_version} == 1500 @@ -98,7 +98,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 +107,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%python_bin_suffix test.py %install %python_install