python-lxml/python-lxml.spec

86 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:13 -04:00
%global modname lxml
%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.
Name: python-%{modname}
Version: 4.9.1
2022-07-25 17:16:17 +08:00
Release: 2
2019-09-30 11:15:13 -04:00
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
License: BSD
2021-12-13 12:09:16 +08:00
URL: https://github.com/lxml/lxml
Source0: %_sourcedir/lxml-%{version}.tar.gz
2021-04-14 10:47:32 +08:00
2019-09-30 11:15:13 -04:00
BuildRequires: gcc libxml2-devel libxslt-devel
%description %{_description}
%package -n python3-%{modname}
Summary: %{summary}
BuildRequires: python3-devel python3-setuptools python3-Cython
%{?python_provide:%python_provide python3-%{modname}}
%description -n python3-%{modname} %{_description}
%package_help
%prep
2021-04-14 10:47:32 +08:00
%autosetup -n %{modname}-%{version} -p1
2022-07-25 17:16:17 +08:00
# Remove pregenerated Cython C sources
find -type f -name '*.c' -print -delete
2019-09-30 11:15:13 -04:00
%build
export WITH_CYTHON=true
%py3_build
%install
%py3_install
%check
2022-01-19 07:20:32 +00:00
make test3
2019-09-30 11:15:13 -04:00
%files -n python3-%{modname}
2021-12-13 12:09:16 +08:00
%license doc/licenses/*.txt LICENSES.txt
2019-09-30 11:15:13 -04:00
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/*.egg-info/
%files help
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
2021-02-01 18:38:20 +08:00
%changelog
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