From 5656ba79e7311f4975106030140dd0ebf53cf78991ea3d78e38ba3333e7887b9 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:36 +0000 Subject: [PATCH] Accepting request 612017 from devel:languages:python:misc High-level FTP client library OBS-URL: https://build.opensuse.org/request/show/612017 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftputil?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + ftputil-3.4.tar.gz | 3 ++ python-ftputil.changes | 16 +++++++++++ python-ftputil.spec | 65 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ftputil-3.4.tar.gz create mode 100644 python-ftputil.changes create mode 100644 python-ftputil.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ftputil-3.4.tar.gz b/ftputil-3.4.tar.gz new file mode 100644 index 0000000..2d7234b --- /dev/null +++ b/ftputil-3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762 +size 141472 diff --git a/python-ftputil.changes b/python-ftputil.changes new file mode 100644 index 0000000..b3dd9a0 --- /dev/null +++ b/python-ftputil.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Wed May 16 16:08:53 UTC 2018 - toddrme2178@gmail.com + +- Update to 3.4 + * Added support for Python 3 + * Dropped support for Python 2.4 and 2.5 + * Newlines and encoding of remote file content + * Upload and download modes + * Custom parsers receive lines as unicode strings +- Implement single-spec version + +------------------------------------------------------------------- +Fri Sep 23 13:03:57 UTC 2011 - saschpe@suse.de + +- Initial version + diff --git a/python-ftputil.spec b/python-ftputil.spec new file mode 100644 index 0000000..694232b --- /dev/null +++ b/python-ftputil.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-ftputil +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-ftputil +Version: 3.4 +Release: 0 +License: BSD-3-Clause +Summary: High-level FTP client library (virtual file system and more) +Url: http://ftputil.sschwarzer.net/ +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/f/ftputil/ftputil-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +BuildArch: noarch + +%python_subpackages + +%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. + +%prep +%setup -q -n ftputil-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +mkdir -p %{buildroot}%{_docdir} +%python_expand cp -r %{buildroot}%{_prefix}/doc/ftputil %{buildroot}%{_docdir}/%{$python_prefix}-ftputil +rm -rf %{buildroot}%{_prefix}/doc/ftputil + +%files %{python_files} +%{_docdir}/%{python_prefix}-ftputil +%license LICENSE +%{python_sitelib}/* + +%changelog