summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 23:58:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 23:58:13 +0000
commitb9eb600352038fea92f2dedf731074faef420ce2 (patch)
treed109a27df4c7b18a87f685d8fbe766269acc439d
parent8c64cdd4bfb3272e5f0033f94cc000aa383b40d6 (diff)
automatic import of python-ftputil
-rw-r--r--.gitignore1
-rw-r--r--python-ftputil.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0fcf053 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ftputil-5.0.4.tar.gz
diff --git a/python-ftputil.spec b/python-ftputil.spec
new file mode 100644
index 0000000..08ac697
--- /dev/null
+++ b/python-ftputil.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ftputil
+Version: 5.0.4
+Release: 1
+Summary: High-level FTP client library (virtual file system and more)
+License: Open source (revised BSD license)
+URL: https://ftputil.sschwarzer.net/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2a/cf/766637ab533a341628735fa2a6fa48a60f7919471b8e4d5abcd0f72d41c6/ftputil-5.0.4.tar.gz
+BuildArch: noarch
+
+
+%description
+ftputil is a high-level FTP client library for the Python programming
+language. ftputil implements a virtual file system for accessing FTP servers,
+that is, it can generate file-like objects for remote files. The library
+supports many functions similar to those in the os, os.path and
+shutil modules. ftputil has convenience functions for conditional uploads
+and downloads, and handles FTP clients and servers in different timezones.
+
+%package -n python3-ftputil
+Summary: High-level FTP client library (virtual file system and more)
+Provides: python-ftputil
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ftputil
+ftputil is a high-level FTP client library for the Python programming
+language. ftputil implements a virtual file system for accessing FTP servers,
+that is, it can generate file-like objects for remote files. The library
+supports many functions similar to those in the os, os.path and
+shutil modules. ftputil has convenience functions for conditional uploads
+and downloads, and handles FTP clients and servers in different timezones.
+
+%package help
+Summary: Development documents and examples for ftputil
+Provides: python3-ftputil-doc
+%description help
+ftputil is a high-level FTP client library for the Python programming
+language. ftputil implements a virtual file system for accessing FTP servers,
+that is, it can generate file-like objects for remote files. The library
+supports many functions similar to those in the os, os.path and
+shutil modules. ftputil has convenience functions for conditional uploads
+and downloads, and handles FTP clients and servers in different timezones.
+
+%prep
+%autosetup -n ftputil-5.0.4
+
+%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-ftputil -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f847772
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1647e538b6837672578905ecfd7858f1 ftputil-5.0.4.tar.gz