diff --git a/python-w3lib.spec b/python-w3lib.spec new file mode 100644 index 0000000000000000000000000000000000000000..08292953f3ea5350f61676f9d41b20327db2267a --- /dev/null +++ b/python-w3lib.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-w3lib +Version: 1.22.0 +Release: 1 +Summary: Library of web-related functions +License: BSD +URL: https://github.com/scrapy/w3lib +Source0: https://files.pythonhosted.org/packages/5e/2f/76558d2712d93e9267a3160190f1bb005f97ef4aba35592728f63747da8b/w3lib-1.22.0.tar.gz +BuildArch: noarch + +Requires: python3-six + +%description +This is a Python library of web-related functions. + +%package -n python3-w3lib +Summary: Library of web-related functions +Provides: python-w3lib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-w3lib +This is a Python library of web-related functions. + +%package help +Summary: Development documents and examples for w3lib +Provides: python3-w3lib-doc +%description help +This is a Python library of web-related functions. + + + +%prep +%autosetup -n w3lib-1.22.0 + +%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-w3lib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jun 28 2021 Python_Bot +- Package Spec generated diff --git a/w3lib-1.22.0.tar.gz b/w3lib-1.22.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f7dd21cb447cbeb06c3d5c75d259a043e3b4097 Binary files /dev/null and b/w3lib-1.22.0.tar.gz differ