python-pyquery/python-pyquery.spec
cherry530 307c75e509 Upgrade 1.4.3
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-10-19 17:56:52 +08:00

58 lines
1.7 KiB
RPMSpec

Name: python-pyquery
Version: 1.4.3
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/source/p/pyquery/pyquery-1.4.3.tar.gz
BuildArch: noarch
%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
%{?python_provide:%python_provide python3-pyquery}
Summary: A jquery-like library for python
BuildRequires: python3-devel, python3-setuptools
Requires: python3-lxml >= 2.1, python3-cssselect
%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.
%prep
%autosetup -n pyquery-%{version} -p1
rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%build
cd %{py3dir}
%py3_build
%install
cd %{py3dir}
%py3_install
%files -n python3-pyquery
%doc README.rst
%{python3_sitelib}/*
%changelog
* Wed Oct 19 2022 xu_ping <xuping33@h-partners.com> - 1.4.3-1
- update to 1.4.3
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.4.1-2
- remove python2 dependency
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.4.1-1
- update package to 1.4.1
* 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.
* Mon Feb 17 2020 Ruijun Ge <geruijun@huawei.com> - 1.4.0-2
- init package