python-lxml/python-lxml.spec

115 lines
3.2 KiB
RPMSpec
Raw Normal View History

2022-12-15 10:12:58 +08:00
%global _empty_manifest_terminate_build 0
2019-09-30 11:15:13 -04:00
%global _description \
The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt. \
It is unique in that it combines the speed and XML feature completeness of these libraries with \
the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API. \
The latest release works with all CPython versions from 2.7 to 3.7.
2022-12-15 10:12:58 +08:00
Name: python-lxml
Version: 4.9.2
Release: 1
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
License: BSD
URL: https://github.com/lxml/lxml
Source0: https://files.pythonhosted.org/packages/06/5a/e11cad7b79f2cf3dd2ff8f81fa8ca667e7591d3d8451768589996b65dec1/lxml-4.9.2.tar.gz
%description
%{_description}
%package -n python3-lxml
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
Provides: python-lxml = %{version}-%{release}
BuildRequires: gcc
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
%description -n python3-lxml
%{_description}
%package help
Summary: Development documents and examples for lxml
Provides: python3-lxml-doc
%description help
%{_description}
2019-09-30 11:15:13 -04:00
%prep
2022-12-15 10:12:58 +08:00
%autosetup -n lxml-%{version}
2022-07-25 17:16:17 +08:00
find -type f -name '*.c' -print -delete
2019-09-30 11:15:13 -04:00
%build
%py3_build
%install
%py3_install
2022-12-15 10:12:58 +08:00
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2019-09-30 11:15:13 -04:00
%check
2022-01-19 07:20:32 +00:00
make test3
2019-09-30 11:15:13 -04:00
2022-12-15 10:12:58 +08:00
%files -n python3-lxml -f filelist.lst
2021-12-13 12:09:16 +08:00
%license doc/licenses/*.txt LICENSES.txt
2022-12-15 10:12:58 +08:00
%dir %{python3_sitearch}/*
2019-09-30 11:15:13 -04:00
2022-12-15 10:12:58 +08:00
%files help -f doclist.lst
2019-09-30 11:15:13 -04:00
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
2022-07-29 10:01:51 +08:00
%changelog
2022-12-15 10:12:58 +08:00
* Wed Dec 14 2022 wangjunqi <wangjunqi@kylinos.cn> - 4.9.2-1
- Update package to version 4.9.2
2022-07-29 10:01:51 +08:00
* Fri Jul 29 2022 renhongxun <renhongxun@h-partners.com> - 4.9.1-3
- add amended patch for cve-2022-2309
2022-07-25 17:16:17 +08:00
* Mon Jul 25 2022 shixuantong <shixuantong@h-partners.com> - 4.9.1-2
- Remove pregenerated Cython C sources
* Mon Jul 25 2022 liksh <liks11@chinaunicom.cn> - 4.9.1-1
- Upgrade to 4.9.1 for openstack yoga
2022-01-19 07:20:32 +00:00
* Wed Jan 19 2022 shixuantong <shixuantong@huawei.com> - 4.7.1-2
- enable check
2021-12-25 15:47:15 +08:00
* Sat Dec 25 2021 liudabo<liudabo1@huawei.com> - 4.7.1-1
- DESC: upgrade python-lxml to 4.7.1
2021-12-13 12:09:16 +08:00
* Mon Dec 13 2021 hanxinke<hanxinke@huawei.com> - 4.6.5-1
- DESC: upgrade python-lxml to 4.6.5
2021-04-14 10:47:32 +08:00
* Wed Apr 14 2021 shixuantong<shixuantong@huawei.com> - 4.6.2-2
- fix CVE-2021-28957
2021-02-01 18:38:20 +08:00
* Mon Feb 1 2021 wangjie<wangjie294@huawei.com> - 4.6.2-1
- upgrade 4.6.2-1
2020-10-30 14:52:40 +08:00
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 4.5.2-2
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
2020-07-23 16:41:12 +08:00
* Thu Jul 23 2020 tianwei <tianwei12@huawei.com> - 4.5.2-1
- Package update to release 4.5.2
2019-09-30 11:15:13 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.2.3-3
- Package init