diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:38:19 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:38:19 +0000 |
commit | 051c73182c2d2ba1751adca83cca3c6e44315ab7 (patch) | |
tree | c260b808a8e70538eccf72e9ed91f773e2aa7a14 | |
parent | 2dddcd5dc9a3943d17d77e7da0ac7cea3763d4be (diff) |
automatic import of python-google-search-api
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-google-search-api.spec | 79 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -0,0 +1 @@ +/Google-Search-API-1.1.14.tar.gz diff --git a/python-google-search-api.spec b/python-google-search-api.spec new file mode 100644 index 0000000..bbbf789 --- /dev/null +++ b/python-google-search-api.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Google-Search-API +Version: 1.1.14 +Release: 1 +Summary: Search in google +License: MIT +URL: https://github.com/abenassi/Google-Search-API +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/76/c7/9189eccb5ac8b410fc21a940bbb4697f1b291cb07186dd45d6fc7d83c682/Google-Search-API-1.1.14.tar.gz +BuildArch: noarch + +Requires: python3-beautifulsoup4 +Requires: python3-selenium +Requires: python3-requests +Requires: python3-unidecode +Requires: python3-vcrpy +Requires: python3-future +Requires: python3-fake-useragent + +%description + + +%package -n python3-Google-Search-API +Summary: Search in google +Provides: python-Google-Search-API +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Google-Search-API + + +%package help +Summary: Development documents and examples for Google-Search-API +Provides: python3-Google-Search-API-doc +%description help + + +%prep +%autosetup -n Google-Search-API-1.1.14 + +%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-Google-Search-API -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.14-1 +- Package Spec generated @@ -0,0 +1 @@ +1eb9ae24df332c6a7a76c016658471c6 Google-Search-API-1.1.14.tar.gz |