Compare commits
10 Commits
076d0c6080
...
fa661dd601
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa661dd601 | ||
|
|
6b374a2107 | ||
|
|
48bec8e676 | ||
|
|
96f431eac7 | ||
|
|
3d96ec3282 | ||
|
|
65765a8d82 | ||
|
|
0a1e6cfc46 | ||
|
|
d6a83f69f1 | ||
|
|
a403a2035d | ||
|
|
7064f4fbe3 |
Binary file not shown.
BIN
pyquery-2.0.0.tar.gz
Normal file
BIN
pyquery-2.0.0.tar.gz
Normal file
Binary file not shown.
@ -1,68 +1,93 @@
|
|||||||
Name: python-pyquery
|
%global _empty_manifest_terminate_build 0
|
||||||
Version: 1.4.0
|
Name: python-pyquery
|
||||||
Release: 3
|
Version: 2.0.0
|
||||||
Summary: A jquery-like library for python
|
Release: 1
|
||||||
License: BSD
|
Summary: A jquery-like library for python
|
||||||
URL: http://pypi.python.org/pypi/pyquery
|
License: BSD-3-Clause
|
||||||
Source0: https://files.pythonhosted.org/packages/e4/46/596311bb390c902b61499ff9fd5a355cdf85c8455737cb0f08c6c2c13e22/pyquery-1.4.0.tar.gz
|
URL: http://pypi.python.org/pypi/pyquery
|
||||||
BuildArch: noarch
|
Source0: https://files.pythonhosted.org/packages/6c/f2/5dfdea62dcffa3d224d6b25d050f27edfe3c143fff3505078b0903b18d7f/pyquery-2.0.0.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel, python2-setuptools
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pyquery allows you to make jquery queries on xml documents.
|
pyquery allows you to make jquery queries on xml documents.
|
||||||
The API is as much as possible the similar to jquery.
|
The API is as much as possible the similar to jquery.
|
||||||
pyquery uses lxml for fast xml and html manipulation.
|
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
|
%package -n python3-pyquery
|
||||||
%{?python_provide:%python_provide python3-pyquery}
|
Summary: A jquery-like library for python
|
||||||
Summary: A jquery-like library for python
|
Provides: python-pyquery = %{version}-%{release}
|
||||||
BuildRequires: python3-devel, python3-setuptools
|
BuildRequires: python3-devel, python3-setuptools
|
||||||
Requires: python3-lxml >= 2.1, python3-cssselect
|
Requires: python3-lxml >= 2.1, python3-cssselect
|
||||||
|
|
||||||
%description -n python3-pyquery
|
%description -n python3-pyquery
|
||||||
pyquery allows you to make jquery queries on xml documents.
|
pyquery allows you to make jquery queries on xml documents.
|
||||||
The API is as much as possible the similar to jquery.
|
The API is as much as possible the similar to jquery.
|
||||||
pyquery uses lxml for fast xml and html manipulation.
|
pyquery uses lxml for fast xml and html manipulation.
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pyquery-%{version} -p1
|
%autosetup -n pyquery-%{version}
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
cd -
|
|
||||||
%py2_build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
cd -
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
%py2_install
|
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 .
|
||||||
|
|
||||||
|
%files -n python3-pyquery -f filelist.lst
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
%files -n python2-pyquery
|
%files help -f doclist.lst
|
||||||
%doc README.rst
|
%{_docdir}/*
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-pyquery
|
|
||||||
%doc README.rst
|
|
||||||
%{python3_sitelib}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 20 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.0.0-1
|
||||||
|
- Update package to version 2.0.0
|
||||||
|
|
||||||
|
* Tue May 31 2022 liyanan <liyanan32@h-partners.com> - 1.4.3-1
|
||||||
|
- update to 1.4.3
|
||||||
|
|
||||||
|
* Wed May 11 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.4.1-3
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
|
* 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
|
* 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.
|
- 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
|
* Mon Feb 17 2020 Ruijun Ge <geruijun@huawei.com> - 1.4.0-2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user