Accepting request 1141530 from devel:languages:python

- Fix build error for Leap.
  Use build and test as descriped on upstream.

OBS-URL: https://build.opensuse.org/request/show/1141530
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=108
This commit is contained in:
Ana Guerrero 2024-01-26 21:46:34 +00:00 committed by Git OBS Bridge
commit 61900e7a88
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 24 10:53:21 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error for Leap.
Use build and test as descriped on upstream.
-------------------------------------------------------------------
Sun Jan 14 10:00:32 UTC 2024 - Adrian Schröter <adrian@suse.de>

View File

@ -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