|
|
@ -1,232 +1,110 @@
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
%global modname lxml
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
Name: python-%{modname}
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
Version: 4.6.5
|
|
|
|
release_number = 4;
|
|
|
|
Release: 3%{?dist}
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-lxml
|
|
|
|
|
|
|
|
Version: 5.2.1
|
|
|
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
|
|
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
|
|
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
|
|
|
|
|
|
|
|
|
|
|
# The lxml project is licensed under BSD-3-Clause
|
|
|
|
# The lxml project is licensed under BSD
|
|
|
|
# Some code is derived from ElementTree and cElementTree
|
|
|
|
# Some code is derived from ElementTree and cElementTree
|
|
|
|
# thus using the MIT-CMU elementtree license
|
|
|
|
# thus using the MIT-like elementtree license
|
|
|
|
# .xsl schematron files are under the MIT license
|
|
|
|
# .xsl schematron files are under the MIT and zlib license
|
|
|
|
License: BSD-3-Clause AND MIT-CMU AND MIT
|
|
|
|
License: BSD and MIT and zlib
|
|
|
|
URL: https://github.com/lxml/lxml
|
|
|
|
URL: https://github.com/lxml/lxml
|
|
|
|
|
|
|
|
Source0: %{pypi_source %{modname}}
|
|
|
|
|
|
|
|
|
|
|
|
# We use the get-lxml-source.sh script to generate the tarball
|
|
|
|
# Fix for CVE-2022-2309
|
|
|
|
# without the isoschematron RNG validation file under a problematic license.
|
|
|
|
# Resolved upstream:
|
|
|
|
# See: https://gitlab.com/fedora/legal/fedora-license-data/-/issues/154
|
|
|
|
# https://github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6f
|
|
|
|
Source0: lxml-%{version}-no-isoschematron-rng.tar.gz
|
|
|
|
# https://github.com/lxml/lxml/commit/d01872ccdf7e1e5e825b6c6292b43e7d27ae5fc4
|
|
|
|
Source1: get-lxml-source.sh
|
|
|
|
# https://github.com/lxml/lxml/commit/c742576c105f40fc8b754fcae56fee4aa35840a3
|
|
|
|
|
|
|
|
# Tracking bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2107571
|
|
|
|
# Skip some tests if lxml_html_clean is not available
|
|
|
|
Patch0: CVE-2022-2309.patch
|
|
|
|
Patch: https://github.com/lxml/lxml/pull/417.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Some of the extras create a build dependency loop.
|
|
|
|
|
|
|
|
# - [cssselect] Requires cssselect BuildRequires lxml
|
|
|
|
|
|
|
|
# - [html5] Requires html5lib BuildRequires lxml
|
|
|
|
|
|
|
|
# - [htmlsoup] Requires beautifulsoup4 Requires lxml
|
|
|
|
|
|
|
|
# - [html_clean] Requires lxml-html-clean Requires lxml
|
|
|
|
|
|
|
|
# Hence we provide a bcond to disable the extras altogether.
|
|
|
|
|
|
|
|
# By default, the extras are disabled in RHEL, to avoid dependencies.
|
|
|
|
|
|
|
|
%bcond extras %{undefined rhel}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global _description \
|
|
|
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It\
|
|
|
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It\
|
|
|
|
provides safe and convenient access to these libraries using the ElementTree It\
|
|
|
|
provides safe and convenient access to these libraries using the ElementTree It\
|
|
|
|
extends the ElementTree API significantly to offer support for XPath, RelaxNG,\
|
|
|
|
extends the ElementTree API significantly to offer support for XPath, RelaxNG,\
|
|
|
|
XML Schema, XSLT, C14N and much more.
|
|
|
|
XML Schema, XSLT, C14N and much more.To contact the project, go to the project\
|
|
|
|
|
|
|
|
home page < or see our bug tracker at case you want to use the current ...
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-lxml
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%if %{with extras}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
Suggests: python3-lxml+cssselect
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
Suggests: python3-lxml+html5
|
|
|
|
BuildRequires: python3-Cython
|
|
|
|
Suggests: python3-lxml+htmlsoup
|
|
|
|
Suggests: python%{python3_version}dist(cssselect) >= 0.7
|
|
|
|
Suggests: python3-lxml+html_clean
|
|
|
|
Suggests: python%{python3_version}dist(html5lib)
|
|
|
|
%endif
|
|
|
|
Suggests: python%{python3_version}dist(beautifulsoup4)
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-lxml %{_description}
|
|
|
|
%description -n python3-%{modname} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with extras}
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-lxml cssselect html5 htmlsoup html_clean
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n lxml-%{version} -p1
|
|
|
|
%autosetup -n %{modname}-%{version} -p1
|
|
|
|
# Don't run html5lib tests --without extras
|
|
|
|
# Remove pregenerated Cython C sources
|
|
|
|
%{!?without_extras:rm src/lxml/html/tests/test_html5parser.py}
|
|
|
|
find -type f -name '*.c' -print -delete
|
|
|
|
|
|
|
|
|
|
|
|
# Remove limit for version of Cython
|
|
|
|
|
|
|
|
sed -i "s/Cython.*/Cython/" requirements.txt
|
|
|
|
|
|
|
|
sed -i 's/"Cython.*",/"Cython",/' pyproject.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires -x source%{?with_extras:,cssselect,html5,htmlsoup,html_clean}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Remove pregenerated Cython C sources
|
|
|
|
env WITH_CYTHON=true %py3_build
|
|
|
|
# We need to do this after %%pyproject_buildrequires because setup.py errors
|
|
|
|
|
|
|
|
# without Cython and without the .c files.
|
|
|
|
|
|
|
|
find -type f -name '*.c' -print -delete >&2
|
|
|
|
|
|
|
|
export WITH_CYTHON=true
|
|
|
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_save_files lxml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# The tests assume inplace build, so we copy the built library to source-dir.
|
|
|
|
# The tests assume inplace build, so we copy the built library to source-dir.
|
|
|
|
# If not done that, Python can either import the tests or the extension modules, but not both.
|
|
|
|
# If not done that, Python can either import the tests or the extension modules, but not both.
|
|
|
|
cp -a build/lib.%{python3_platform}-*/* src/
|
|
|
|
cp -a build/lib.%{python3_platform}-%{python3_version}/* src/
|
|
|
|
# The options are: verbose, unit, functional
|
|
|
|
# The options are: verbose, unit, functional
|
|
|
|
%{python3} test.py -vuf
|
|
|
|
%{python3} test.py -vuf
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-lxml -f %{pyproject_files}
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
%license doc/licenses/BSD.txt doc/licenses/elementtree.txt
|
|
|
|
%license LICENSES.txt doc/licenses/BSD.txt doc/licenses/elementtree.txt
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{modname}/
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{modname}-*.egg-info/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
* Wed Jul 27 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.6.5-3
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.2.1-4
|
|
|
|
- Security fix for CVE-2022-2309
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
- Resolves: rhbz#2107571
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 30 2024 Miro Hrončok <miro@hroncok.cz> - 5.2.1-3
|
|
|
|
|
|
|
|
- Convert the gating configuration to RHEL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.2.1-2
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 04 2024 Lumir Balhar <lbalhar@redhat.com> - 5.2.1-1
|
|
|
|
|
|
|
|
- Update to 5.2.1 (rhbz#2272165)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 06 2024 Miro Hrončok <miro@hroncok.cz> - 5.1.0-7
|
|
|
|
|
|
|
|
- Revert "Reduce the type safety as a workaround for build failures in
|
|
|
|
|
|
|
|
Fedora 40+"
|
|
|
|
|
|
|
|
- The workaround has been moved to Cython
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 04 2024 Miro Hrončok <miro@hroncok.cz> - 5.1.0-6
|
|
|
|
|
|
|
|
- Fix test_elementtree with Expat 2.6.0
|
|
|
|
|
|
|
|
- Fixes: rhbz#2264859
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2024 Miro Hrončok <miro@hroncok.cz> - 5.1.0-5
|
|
|
|
|
|
|
|
- Reduce the type safety as a workaround for build failures in Fedora 40+
|
|
|
|
|
|
|
|
- Fixes: rhbz#2261034
|
|
|
|
|
|
|
|
- Fixes: rhbz#2256232
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 08 2024 Lumír Balhar <lbalhar@redhat.com> - 5.1.0-1
|
|
|
|
|
|
|
|
- Update to 5.1.0 (rhbz#2256232)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 20 2023 Lumír Balhar <lbalhar@redhat.com> - 4.9.4-1
|
|
|
|
|
|
|
|
- Update to 4.9.4 (rhbz#2255267)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Nov 26 2023 David King <amigadave@amigadave.com> - 4.9.3-4
|
|
|
|
|
|
|
|
- Fix building against libxml2 2.12.0
|
|
|
|
|
|
|
|
- Resolves: rhbz#2250838
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 30 2023 Miro Hrončok <mhroncok@redhat.com> - 4.9.3-3
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 4.6.5-2
|
|
|
|
- Fix build with a future mock version
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 28 2023 Miro Hrončok <mhroncok@redhat.com> - 4.9.3-2
|
|
|
|
* Thu Jan 06 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.6.5-1
|
|
|
|
- Fix build with Cython 3
|
|
|
|
- Update to 4.6.5
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Lumír Balhar <lbalhar@redhat.com> - 4.9.3-1
|
|
|
|
|
|
|
|
- Update to 4.9.3 (rhbz#2219811)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 14 2023 Miro Hrončok <mhroncok@redhat.com> - 4.9.2-8
|
|
|
|
|
|
|
|
- Bring back the isoschematron submodule,
|
|
|
|
|
|
|
|
but without the validation of the schema file itself
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 4.9.2-7
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.9.2-6
|
|
|
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 31 2023 Miro Hrončok <mhroncok@redhat.com> - 4.9.2-5
|
|
|
|
|
|
|
|
- Remove the isoschematron submodule
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 4.9.2-4
|
|
|
|
|
|
|
|
- Disable extra subpackages in RHEL builds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 29 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 4.9.2-3
|
|
|
|
|
|
|
|
- Skip failing test to avoid FTBFS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 14 2022 Lumír Balhar <lbalhar@redhat.com> - 4.9.2-1
|
|
|
|
|
|
|
|
- Update to 4.9.2 (rhbz#2153063)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 14 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.9.1-1
|
|
|
|
|
|
|
|
- Update to 4.9.1
|
|
|
|
|
|
|
|
- Fix for CVE-2022-2309
|
|
|
|
|
|
|
|
- Resolves: rhbz#2107571, rhbz#2110131
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 31 2022 Miro Hrončok <mhroncok@redhat.com> - 4.7.1-6
|
|
|
|
|
|
|
|
- Use SPDX license identifiers
|
|
|
|
|
|
|
|
- The schematron files are not Zlib licensed, but MIT
|
|
|
|
|
|
|
|
- Package the lxml[cssselect], lxml[html5] and lxml[htmlsoup] extras
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.1-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.7.1-4
|
|
|
|
|
|
|
|
- Fix FTBFS with setuptools >= 62.1
|
|
|
|
|
|
|
|
- Resolves: rhbz#2097102
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.7.1-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 06 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.7.1-1
|
|
|
|
|
|
|
|
- Update to 4.7.1
|
|
|
|
|
|
|
|
- Fixes CVE-2021-43818
|
|
|
|
- Fixes CVE-2021-43818
|
|
|
|
- Resolves: rhbz#2031686, rhbz#2032572
|
|
|
|
- Resolves: rhbz#2032569
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 26 2021 Miro Hrončok <mhroncok@redhat.com> - 4.6.3-5
|
|
|
|
* Fri Nov 26 2021 Miro Hrončok <mhroncok@redhat.com> - 4.6.3-5
|
|
|
|
- Run the tests during build
|
|
|
|
- Run the tests during build
|
|
|
|
- Resolves: rhbz#2026941
|
|
|
|
- Resolves: rhbz#2026941
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-4
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.6.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.6.3-3
|
|
|
|
* Thu Jun 03 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.6.3-2
|
|
|
|
- Update the license information
|
|
|
|
- Update the license information
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 4.6.3-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 20 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.6.3-1
|
|
|
|
* Thu May 20 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.6.3-1
|
|
|
|
- Update to 4.6.3
|
|
|
|
- Update to 4.6.3
|
|
|
|
- Fixes CVE-2021-28957
|
|
|
|
- Fixes CVE-2021-28957
|
|
|
|
- Fixes: rhbz#1941773
|
|
|
|
Resolves: rhbz#1941534
|
|
|
|
- Fixes: rhbz#1941535
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.6.2-3
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-2
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
@ -1773,5 +1651,3 @@ cp -a build/lib.%{python3_platform}-*/* src/
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 13 2005 Shahms E. King <shahms@shahms.com> 0.8-1
|
|
|
|
* Tue Dec 13 2005 Shahms E. King <shahms@shahms.com> 0.8-1
|
|
|
|
- Initial package
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|
|
|
|