python-pyquery/python-pyquery.spec

58 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-02-18 10:49:27 +08:00
Name: python-pyquery
2020-07-16 11:00:42 +08:00
Version: 1.4.1
2022-05-11 16:32:46 +08:00
Release: 3
2020-02-18 10:49:27 +08:00
Summary: A jquery-like library for python
2022-05-11 16:32:46 +08:00
License: BSD-3-Clause
2020-02-18 10:49:27 +08:00
URL: http://pypi.python.org/pypi/pyquery
2020-07-16 11:00:42 +08:00
Source0: https://files.pythonhosted.org/packages/6b/94/4663206f709ac32446e995227cc5be34d5e2aa74ba8f92b8083c2740d3d7/pyquery-1.4.1.tar.gz
2020-02-18 10:49:27 +08:00
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
2020-02-28 10:05:05 +08:00
BuildRequires: python3-devel, python3-setuptools
2020-02-18 10:49:27 +08:00
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
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