diff --git a/lxml-4.9.1.tar.gz b/lxml-4.9.1.tar.gz deleted file mode 100644 index 10a6be1..0000000 --- a/lxml-4.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe749b052bb7233fe5d072fcb549221a8cb1a16725c47c37e42b0b9cb3ff2c3f -size 3377628 diff --git a/lxml-4.9.2.tar.gz b/lxml-4.9.2.tar.gz new file mode 100644 index 0000000..14fbb01 --- /dev/null +++ b/lxml-4.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67 +size 3682202 diff --git a/python-lxml.changes b/python-lxml.changes index 84ec0fe..054a397 100644 --- a/python-lxml.changes +++ b/python-lxml.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Dec 29 07:46:19 UTC 2022 - Torsten Gruner + +- 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. + ------------------------------------------------------------------- Mon Sep 19 11:33:55 UTC 2022 - Matej Cepl diff --git a/python-lxml.rpmlintrc b/python-lxml.rpmlintrc new file mode 100644 index 0000000..abf6ec9 --- /dev/null +++ b/python-lxml.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("zero-length") +addFilter("no-dependency-on python-base") diff --git a/python-lxml.spec b/python-lxml.spec index ec8b29c..f53309a 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -1,7 +1,7 @@ # # spec file for package python-lxml # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -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 @@ -26,13 +25,14 @@ Group: Development/Languages/Python URL: https://lxml.de/ Source0: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz Source1: https://lxml.de/lxmldoc-4.5.2.pdf +Source99: python-lxml.rpmlintrc BuildRequires: %{python_module Cython >= 0.29.7} BuildRequires: %{python_module base} 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 +59,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 +88,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