diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:09:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:09:38 +0000 |
commit | dbecef55e0b409bec10cf2590a6f7dbbc8e27317 (patch) | |
tree | 97f9c8a266cbe7eef400ba495653af3654f8d0ec /python-slybot.spec | |
parent | c32cd1c12276795d43e37e62ccbab37a6cbde260 (diff) |
automatic import of python-slybotopeneuler20.03
Diffstat (limited to 'python-slybot.spec')
-rw-r--r-- | python-slybot.spec | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/python-slybot.spec b/python-slybot.spec new file mode 100644 index 0000000..47493fd --- /dev/null +++ b/python-slybot.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-slybot +Version: 0.13.3 +Release: 1 +Summary: Slybot crawler +License: BSD +URL: http://github.com/scrapinghub/portia +Source0: https://mirrors.aliyun.com/pypi/web/packages/75/c5/1e831e8bc7d1dcaf5d0de66eb048b2a5ba0f3385475e6ab692fae84e26cc/slybot-0.13.3.tar.gz +BuildArch: noarch + +Requires: python3-Scrapy +Requires: python3-scrapely +Requires: python3-loginform +Requires: python3-lxml +Requires: python3-jsonschema +Requires: python3-dateparser +Requires: python3-scrapy-splash +Requires: python3-page-finder +Requires: python3-six +Requires: python3-chardet +Requires: python3-page-clustering +Requires: python3-nose +Requires: python3-nose-timer +Requires: python3-doctest-ignore-unicode +Requires: python3-tox + +%description + + +%package -n python3-slybot +Summary: Slybot crawler +Provides: python-slybot +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-slybot + + +%package help +Summary: Development documents and examples for slybot +Provides: python3-slybot-doc +%description help + + +%prep +%autosetup -n slybot-0.13.3 + +%build +%py3_build + +%install +%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-slybot -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.3-1 +- Package Spec generated |