diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:51:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:51:10 +0000 |
| commit | e662f3aba3e0a8e4daecf192d20aa200fa0a11a5 (patch) | |
| tree | 61295944243c58a29b42ba87f5c06355ffb2b436 /python-pyspider.spec | |
| parent | e40832dfefb2b1d1bb8daf309a4ea2feed07b378 (diff) | |
automatic import of python-pyspideropeneuler20.03
Diffstat (limited to 'python-pyspider.spec')
| -rw-r--r-- | python-pyspider.spec | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/python-pyspider.spec b/python-pyspider.spec new file mode 100644 index 0000000..f791e83 --- /dev/null +++ b/python-pyspider.spec @@ -0,0 +1,99 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyspider +Version: 0.3.10 +Release: 1 +Summary: A Powerful Spider System in Python +License: Apache License, Version 2.0 +URL: https://github.com/binux/pyspider +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/97/d6062c928f53d899ff2a8538fed11d4d425ba3d27c96248a2c601c1c9fef/pyspider-0.3.10.tar.gz +BuildArch: noarch + + +%description +A Powerful Spider(Web Crawler) System in Python. **[TRY IT NOW!][Demo]** +- Write script in Python +- Powerful WebUI with script editor, task monitor, project manager and result viewer +- [MySQL](https://www.mysql.com/), [MongoDB](https://www.mongodb.org/), [Redis](http://redis.io/), [SQLite](https://www.sqlite.org/), [Elasticsearch](https://www.elastic.co/products/elasticsearch); [PostgreSQL](http://www.postgresql.org/) with [SQLAlchemy](http://www.sqlalchemy.org/) as database backend +- [RabbitMQ](http://www.rabbitmq.com/), [Beanstalk](http://kr.github.com/beanstalkd/), [Redis](http://redis.io/) and [Kombu](http://kombu.readthedocs.org/) as message queue +- Task priority, retry, periodical, recrawl by age, etc... +- Distributed architecture, Crawl Javascript pages, Python 2.{6,7}, 3.{3,4,5,6} support, etc... +Tutorial: [http://docs.pyspider.org/en/latest/tutorial/](http://docs.pyspider.org/en/latest/tutorial/) +Documentation: [http://docs.pyspider.org/](http://docs.pyspider.org/) +Release notes: [https://github.com/binux/pyspider/releases](https://github.com/binux/pyspider/releases) + +%package -n python3-pyspider +Summary: A Powerful Spider System in Python +Provides: python-pyspider +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyspider +A Powerful Spider(Web Crawler) System in Python. **[TRY IT NOW!][Demo]** +- Write script in Python +- Powerful WebUI with script editor, task monitor, project manager and result viewer +- [MySQL](https://www.mysql.com/), [MongoDB](https://www.mongodb.org/), [Redis](http://redis.io/), [SQLite](https://www.sqlite.org/), [Elasticsearch](https://www.elastic.co/products/elasticsearch); [PostgreSQL](http://www.postgresql.org/) with [SQLAlchemy](http://www.sqlalchemy.org/) as database backend +- [RabbitMQ](http://www.rabbitmq.com/), [Beanstalk](http://kr.github.com/beanstalkd/), [Redis](http://redis.io/) and [Kombu](http://kombu.readthedocs.org/) as message queue +- Task priority, retry, periodical, recrawl by age, etc... +- Distributed architecture, Crawl Javascript pages, Python 2.{6,7}, 3.{3,4,5,6} support, etc... +Tutorial: [http://docs.pyspider.org/en/latest/tutorial/](http://docs.pyspider.org/en/latest/tutorial/) +Documentation: [http://docs.pyspider.org/](http://docs.pyspider.org/) +Release notes: [https://github.com/binux/pyspider/releases](https://github.com/binux/pyspider/releases) + +%package help +Summary: Development documents and examples for pyspider +Provides: python3-pyspider-doc +%description help +A Powerful Spider(Web Crawler) System in Python. **[TRY IT NOW!][Demo]** +- Write script in Python +- Powerful WebUI with script editor, task monitor, project manager and result viewer +- [MySQL](https://www.mysql.com/), [MongoDB](https://www.mongodb.org/), [Redis](http://redis.io/), [SQLite](https://www.sqlite.org/), [Elasticsearch](https://www.elastic.co/products/elasticsearch); [PostgreSQL](http://www.postgresql.org/) with [SQLAlchemy](http://www.sqlalchemy.org/) as database backend +- [RabbitMQ](http://www.rabbitmq.com/), [Beanstalk](http://kr.github.com/beanstalkd/), [Redis](http://redis.io/) and [Kombu](http://kombu.readthedocs.org/) as message queue +- Task priority, retry, periodical, recrawl by age, etc... +- Distributed architecture, Crawl Javascript pages, Python 2.{6,7}, 3.{3,4,5,6} support, etc... +Tutorial: [http://docs.pyspider.org/en/latest/tutorial/](http://docs.pyspider.org/en/latest/tutorial/) +Documentation: [http://docs.pyspider.org/](http://docs.pyspider.org/) +Release notes: [https://github.com/binux/pyspider/releases](https://github.com/binux/pyspider/releases) + +%prep +%autosetup -n pyspider-0.3.10 + +%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-pyspider -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.10-1 +- Package Spec generated |
