diff --git a/pyquery-1.4.3.tar.gz b/pyquery-1.4.3.tar.gz deleted file mode 100644 index 9706042..0000000 Binary files a/pyquery-1.4.3.tar.gz and /dev/null differ diff --git a/pyquery-2.0.0.tar.gz b/pyquery-2.0.0.tar.gz new file mode 100644 index 0000000..a05b471 Binary files /dev/null and b/pyquery-2.0.0.tar.gz differ diff --git a/python-pyquery.spec b/python-pyquery.spec index d5fc0aa..1b6cbcc 100644 --- a/python-pyquery.spec +++ b/python-pyquery.spec @@ -1,11 +1,13 @@ -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 +%global _empty_manifest_terminate_build 0 +Name: python-pyquery +Version: 2.0.0 +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/6c/f2/5dfdea62dcffa3d224d6b25d050f27edfe3c143fff3505078b0903b18d7f/pyquery-2.0.0.tar.gz +BuildArch: noarch + %description pyquery allows you to make jquery queries on xml documents. @@ -13,35 +15,67 @@ 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 - +Summary: A jquery-like library for python +Provides: python-pyquery = %{version}-%{release} +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. +%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 -%autosetup -n pyquery-%{version} -p1 -rm -rf %{py3dir} -cp -a . %{py3dir} -find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' +%autosetup -n pyquery-%{version} %build -cd %{py3dir} %py3_build %install -cd %{py3dir} %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +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 -%doc README.rst -%{python3_sitelib}/* +%files -n python3-pyquery -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Feb 20 2023 jiangxinyu - 2.0.0-1 +- Update package to version 2.0.0 + * Tue May 31 2022 liyanan - 1.4.3-1 - update to 1.4.3