2016-05-23 10:46:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyftpdlib
|
|
|
|
#
|
2017-06-22 14:54:05 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-05-23 10:46:46 +00:00
|
|
|
# Copyright (c) 2016 LISA GmbH, Bingen, 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/
|
2017-06-22 14:54:05 +00:00
|
|
|
#
|
2016-05-23 10:46:46 +00:00
|
|
|
|
|
|
|
|
2017-06-22 14:54:05 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-05-23 10:46:46 +00:00
|
|
|
Name: python-pyftpdlib
|
2017-06-22 14:54:05 +00:00
|
|
|
Version: 1.5.2
|
2016-05-23 10:46:46 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Very fast asynchronous FTP server library
|
2017-06-22 14:54:05 +00:00
|
|
|
License: MIT
|
2016-05-23 10:46:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-06-22 14:54:05 +00:00
|
|
|
Url: https://github.com/giampaolo/pyftpdlib/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module pyOpenSSL}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-pyOpenSSL
|
2016-05-23 10:46:46 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-06-22 14:54:05 +00:00
|
|
|
%python_subpackages
|
2016-05-23 10:46:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Python FTP server library provides a high-level portable interface to easily
|
|
|
|
write very efficient, scalable and asynchronous FTP servers with Python. It is
|
|
|
|
the most complete `RFC-959 <http://www.faqs.org/rfcs/rfc959.html>`__ FTP server
|
|
|
|
implementation available for `Python <http://www.python.org/>`__ programming
|
|
|
|
language and it's used in projects like
|
|
|
|
`Google Chromium <http://www.code.google.com/chromium/>`__ and
|
|
|
|
`Bazaar <http://bazaar-vcs.org/>`__ and included in
|
|
|
|
`Debian <http://packages.debian.org/sid/python-pyftpdlib>`__,
|
|
|
|
`Fedora <https://admin.fedoraproject.org/pkgdb/packages/name/pyftpdlib>`__ and
|
|
|
|
`FreeBSD <http://www.freshports.org/ftp/py-pyftpdlib/>`__ package repositories.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyftpdlib-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-06-22 14:54:05 +00:00
|
|
|
%python_build
|
2016-05-23 10:46:46 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-22 14:54:05 +00:00
|
|
|
%python_install
|
2016-05-23 10:46:46 +00:00
|
|
|
|
|
|
|
%check
|
2017-06-22 14:54:05 +00:00
|
|
|
#%%python_exec -m nose #pyftpdlib/test
|
|
|
|
export PYTHONPATH=$PWD
|
|
|
|
%python_exec pyftpdlib/test/runner.py
|
2016-05-23 10:46:46 +00:00
|
|
|
|
2017-06-22 14:54:05 +00:00
|
|
|
%files %{python_files}
|
2016-05-23 10:46:46 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.rst LICENSE
|
2017-06-22 14:54:05 +00:00
|
|
|
%python3_only %{_bindir}/ftpbench
|
2016-05-23 10:46:46 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|