python-pyquery/python-pyquery.spec

95 lines
2.9 KiB
RPMSpec
Raw Normal View History

2023-02-20 17:25:56 +08:00
%global _empty_manifest_terminate_build 0
Name: python-pyquery
Version: 2.0.0
Release: 1
Summary: A jquery-like library for python
License: BSD-3-Clause
URL: http://pypi.python.org/pypi/pyquery
Source0: https://files.pythonhosted.org/packages/6c/f2/5dfdea62dcffa3d224d6b25d050f27edfe3c143fff3505078b0903b18d7f/pyquery-2.0.0.tar.gz
BuildArch: noarch
2020-02-18 10:49:27 +08:00
%description
pyquery allows you to make jquery queries on xml documents.
The API is as much as possible the similar to jquery.
pyquery uses lxml for fast xml and html manipulation.
%package -n python3-pyquery
2023-02-20 17:25:56 +08:00
Summary: A jquery-like library for python
Provides: python-pyquery = %{version}-%{release}
BuildRequires: python3-devel, python3-setuptools
Requires: python3-lxml >= 2.1, python3-cssselect
2020-02-18 10:49:27 +08:00
%description -n python3-pyquery
pyquery allows you to make jquery queries on xml documents.
The API is as much as possible the similar to jquery.
pyquery uses lxml for fast xml and html manipulation.
2023-02-20 17:25:56 +08:00
%package help
Summary: Development documents and examples for pyquery
Provides: python3-pyquery-doc
%description help
pyquery allows you to make jquery queries on xml documents.
The API is as much as possible the similar to jquery.
pyquery uses lxml for fast xml and html manipulation.
2020-02-18 10:49:27 +08:00
%prep
2023-02-20 17:25:56 +08:00
%autosetup -n pyquery-%{version}
2020-02-18 10:49:27 +08:00
%build
%py3_build
%install
%py3_install
2023-02-20 17:25:56 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
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 .
2020-02-18 10:49:27 +08:00
2023-02-20 17:25:56 +08:00
%files -n python3-pyquery -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2020-02-18 10:49:27 +08:00
%changelog
2023-02-20 17:25:56 +08:00
* Mon Feb 20 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.0.0-1
- Update package to version 2.0.0
2022-05-31 17:30:48 +08:00
* Tue May 31 2022 liyanan <liyanan32@h-partners.com> - 1.4.3-1
- update to 1.4.3
2022-05-11 16:32:46 +08:00
* Wed May 11 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.4.1-3
- License compliance rectification
2020-10-30 14:25:35 +08:00
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.4.1-2
- remove python2 dependency
2020-07-16 11:00:42 +08:00
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.4.1-1
- update package to 1.4.1
2020-02-28 10:05:05 +08:00
* Fri Feb 28 2020 hy-euler <eulerstoragemt@huawei.com> - 1.4.0-3
- the package is used for python-webtest building, no needs to test.
2020-02-18 10:49:27 +08:00
* Mon Feb 17 2020 Ruijun Ge <geruijun@huawei.com> - 1.4.0-2
- init package