!10 Add python2 subpackage for python-webtest build
From: @wk333 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
02ccf262dc
@ -1,6 +1,6 @@
|
||||
Name: python-pyquery
|
||||
Version: 1.4.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A jquery-like library for python
|
||||
License: BSD
|
||||
URL: http://pypi.python.org/pypi/pyquery
|
||||
@ -23,6 +23,17 @@ 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 python2-pyquery
|
||||
%{?python_provide:%python_provide python2-pyquery}
|
||||
Summary: A jquery-like library for python
|
||||
Requires: python2-lxml >= 2.1, python2-cssselect
|
||||
BuildRequires: python2-devel, python2-setuptools
|
||||
|
||||
%description -n python2-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}
|
||||
@ -32,16 +43,27 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||
%build
|
||||
cd %{py3dir}
|
||||
%py3_build
|
||||
cd -
|
||||
%py2_build
|
||||
|
||||
%install
|
||||
cd %{py3dir}
|
||||
%py3_install
|
||||
cd -
|
||||
%py2_install
|
||||
|
||||
%files -n python2-pyquery
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files -n python3-pyquery
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 13 2023 wangkai <13474090681@163.com> - 1.4.1-3
|
||||
- Add python2 subpackage for python-webtest build
|
||||
|
||||
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.4.1-2
|
||||
- remove python2 dependency
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user