!1 init package

Merge pull request !1 from geruijun/master
This commit is contained in:
openeuler-ci-bot 2020-02-18 11:15:11 +08:00 committed by Gitee
commit c46ee4cf7f
2 changed files with 75 additions and 0 deletions

BIN
pyquery-1.4.0.tar.gz Normal file

Binary file not shown.

75
python-pyquery.spec Normal file
View File

@ -0,0 +1,75 @@
Name: python-pyquery
Version: 1.4.0
Release: 2
Summary: A jquery-like library for python
License: BSD
URL: http://pypi.python.org/pypi/pyquery
Source0: https://files.pythonhosted.org/packages/e4/46/596311bb390c902b61499ff9fd5a355cdf85c8455737cb0f08c6c2c13e22/pyquery-1.4.0.tar.gz
BuildArch: noarch
BuildRequires: python2-devel, python2-setuptools, python2-beautifulsoup, python2-cssselect
BuildRequires: python2-lxml >= 2.1, python2-nose, python2-requests, python2-restkit
BuildRequires: python2-webob, python2-webtest
%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 python2-pyquery
%{?python_provide:%python_provide python2-pyquery}
Summary: A jquery-like library for python
Requires: python2-lxml >= 2.1, python2-cssselect
%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.
%package -n python3-pyquery
%{?python_provide:%python_provide python3-pyquery}
Summary: A jquery-like library for python
BuildRequires: python3-devel, python3-setuptools, python3-cssselect, python3-lxml >= 2.1
BuildRequires: python3-nose, python3-requests, python3-webob, python3-webtest
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
cd -
%py2_build
%install
cd %{py3dir}
%py3_install
cd -
%py2_install
%check
cd %{py3dir}
nosetests-%{python3_version}
cd -
nosetests-2
%files -n python2-pyquery
%doc README.rst
%{python2_sitelib}/*
%files -n python3-pyquery
%doc README.rst
%{python3_sitelib}/*
%changelog
* Mon Feb 17 2020 Ruijun Ge <geruijun@huawei.com> - 1.4.0-2
- init package