summaryrefslogtreecommitdiff
path: root/python-scrapy-user-agents.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 04:58:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 04:58:25 +0000
commit938a8b01022716ad87aec7067eb8eae2e732deef (patch)
treed0dc1c1260f732a3380b4f453cdb48b55044b956 /python-scrapy-user-agents.spec
parent851a48a016e2131ab6376518918cc404de4aa0ec (diff)
automatic import of python-scrapy-user-agentsopeneuler20.03
Diffstat (limited to 'python-scrapy-user-agents.spec')
-rw-r--r--python-scrapy-user-agents.spec16
1 files changed, 8 insertions, 8 deletions
diff --git a/python-scrapy-user-agents.spec b/python-scrapy-user-agents.spec
index ca2eccf..d092c1f 100644
--- a/python-scrapy-user-agents.spec
+++ b/python-scrapy-user-agents.spec
@@ -5,7 +5,7 @@ Release: 1
Summary: Automatically pick an User-Agent for every request
License: New BSD License
URL: https://github.com/hyan15/crawler-demo/tree/master/crawling-basic/scrapy_user_agents
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/18/dcf232312662f4242439691142ef58b90c59eb8bb196b9cc86fcbd8c6c08/scrapy_user_agents-0.1.1.win-amd64.zip
+Source0: https://mirrors.aliyun.com/pypi/web/packages/89/18/dcf232312662f4242439691142ef58b90c59eb8bb196b9cc86fcbd8c6c08/scrapy_user_agents-0.1.1.win-amd64.zip
BuildArch: noarch
Requires: python3-user-agents
@@ -29,7 +29,7 @@ Provides: python3-scrapy-user-agents-doc
Random User-Agent middleware picks up ``User-Agent`` strings based on `Python User Agents <https://github.com/selwin/python-user-agents>`__ and `MDN <https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent>`__.
%prep
-%autosetup -n scrapy-user-agents-0.1.1
+%autosetup -n scrapy_user_agents.win-amd64-0.1.1
%build
%py3_build
@@ -43,20 +43,20 @@ 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
+ 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
+ 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
+ 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
+ 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
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -69,5 +69,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1
- Package Spec generated