From 72389f829af8738433006064cfb9f11dd5cab8f8a3d925c8eddf304874bb69d7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 16 Feb 2023 20:17:34 +0000 Subject: [PATCH] - allow building against any libxml2 version in sle15 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=173 --- python-lxml.changes | 5 +++++ python-lxml.spec | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/python-lxml.changes b/python-lxml.changes index f259469..fe20daf 100644 --- a/python-lxml.changes +++ b/python-lxml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 20:17:22 UTC 2023 - Dirk Müller + +- allow building against any libxml2 version in sle15 + ------------------------------------------------------------------- Fri Jan 20 16:00:15 UTC 2023 - Matej Cepl diff --git a/python-lxml.spec b/python-lxml.spec index 950d21a..852cf35 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -34,7 +34,12 @@ BuildRequires: %{python_module base} BuildRequires: %{python_module cssselect >= 0.9.1} BuildRequires: %{python_module setuptools >= 18.0.1} BuildRequires: fdupes +%if 0%{?suse_version} == 1500 +# Assume the best that the old libxml2 in SLE15 is patched for https://gitlab.gnome.org/GNOME/libxml2/-/issues/378 (CVE-2022-2309) +BuildRequires: libxml2-devel +%else BuildRequires: libxml2-devel >= 2.10.2 +%endif BuildRequires: libxslt-devel >= 1.1.27 BuildRequires: python-rpm-macros Requires: python-cssselect >= 0.9.1