15
0
forked from pool/python-lxml

Accepting request 1045710 from home:Simmphonie:branches:devel:languages:python

- update to version 4.9.2
  * Bugs fixed
    + CVE-2022-2309: A Bug in libxml2 2.9.1[0-4] could let namespace declarations
      from a failed parser run leak into later parser runs.  This bug was worked around
      in lxml and resolved in libxml2 2.10.0.
      https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
  * LP#1981760: ``Element.attrib`` now registers as ``collections.abc.MutableMapping``.
  * lxml now has a static build setup for macOS on ARM64 machines (not used for building wheels).
    Patch by Quentin Leffray.

OBS-URL: https://build.opensuse.org/request/show/1045710
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=167
This commit is contained in:
2022-12-29 22:41:01 +00:00
committed by Git OBS Bridge
parent c0fd0bd8c9
commit 74ca921cf2
5 changed files with 27 additions and 8 deletions

View File

@@ -16,9 +16,8 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lxml
Version: 4.9.1
Version: 4.9.2
Release: 0
Summary: Pythonic XML processing library
License: BSD-3-Clause AND GPL-2.0-or-later
@@ -32,7 +31,7 @@ BuildRequires: %{python_module cssselect >= 0.9.1}
BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: fdupes
BuildRequires: libxml2-devel >= 2.10.2
BuildRequires: libxslt-devel >= 1.1.23
BuildRequires: libxslt-devel >= 1.1.27
BuildRequires: python-rpm-macros
Requires: python-cssselect >= 0.9.1
%python_subpackages
@@ -59,7 +58,6 @@ This package contains documentation for lxml (HTML and PDF).
%package devel
Summary: Development files for python-lxml
Group: Development/Libraries/Python
BuildRequires: %{python_module base}
Requires: %{name} = %{version}
%description devel
@@ -89,15 +87,21 @@ export CFLAGS="%{optflags}"
export LANG=en_US.UTF-8
export PYTHONUNBUFFERED=x
%if 0%{?have_python2}
%{python_expand # define python version for test:
export PYTHON="$python"
%make_build test
}
%endif
%if 0%{?have_python3}
%{python_expand # define python version for test:
export PYTHON3="$python"
%make_build test3
}
%endif
%install
%python_install
%fdupes %{buildroot}
%python_expand %fdupes %{buildroot}
%files %{python_files}
%license LICENSES.txt