diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:37:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:37:06 +0000 |
commit | ba4d4d156dae9134558b3874fd59468822d247b6 (patch) | |
tree | 7749b5a03a5bface9ca740ecaa4c2617abe81aaf | |
parent | cee668dc92e19403ab71893d234209ff7befc6cf (diff) |
automatic import of python-amazon_scraperopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-amazon-scraper.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/amazon_scraper-0.3.3.tar.gz diff --git a/python-amazon-scraper.spec b/python-amazon-scraper.spec new file mode 100644 index 0000000..4ccecd3 --- /dev/null +++ b/python-amazon-scraper.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-amazon_scraper +Version: 0.3.3 +Release: 1 +Summary: Provides content not accessible through the standard Amazon API +License: BSD +URL: https://github.com/adamlwgriffiths/amazon_scraper +Source0: https://mirrors.aliyun.com/pypi/web/packages/20/cd/5224dcc16309ad7396e0cb447af30c3ca60b2fa91965e235800635ff401a/amazon_scraper-0.3.3.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-amazon_scraper +Summary: Provides content not accessible through the standard Amazon API +Provides: python-amazon_scraper +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-amazon_scraper + + +%package help +Summary: Development documents and examples for amazon_scraper +Provides: python3-amazon_scraper-doc +%description help + + +%prep +%autosetup -n amazon_scraper-0.3.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-amazon_scraper -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.3-1 +- Package Spec generated @@ -0,0 +1 @@ +d315a942711635cbe49aa0cceca3b041 amazon_scraper-0.3.3.tar.gz |