14
0

Accepting request 505700 from home:matejcik:branches:devel:languages:python

- update to 1.5.2
  * disables old SSL methods
  * fixed some hangs/crashes
- fixes test failures in OBS
- drop patches that are no longer needed:
  * pyftpdlib-disable-error-0-ssl-unwrap.diff
  * pyftpdlib-disable-incomplete-file-received.diff
  * pyftpdlib-handle-missing-SSLv3.diff
- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/505700
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyftpdlib?expand=0&rev=3
This commit is contained in:
Jan Matejek
2017-06-22 14:54:05 +00:00
committed by Git OBS Bridge
parent c4eec126ae
commit 474e2d0b6b
7 changed files with 38 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyftpdlib
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -14,31 +14,28 @@
# 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-pyftpdlib
Version: 1.5.1
Version: 1.5.2
Release: 0
License: MIT
Summary: Very fast asynchronous FTP server library
Url: https://github.com/giampaolo/pyftpdlib/
License: MIT
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/a8/f8/0f6db156898616dbcbd7bf865660295c81479071ab0fcd1898fe1b3a4fc4/pyftpdlib-%{version}.tar.gz
Patch1: pyftpdlib-disable-error-0-ssl-unwrap.diff
Patch2: pyftpdlib-handle-missing-SSLv3.diff
Patch3: pyftpdlib-disable-incomplete-file-received.diff
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-pyOpenSSL
Requires: python-pyOpenSSL
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
Python FTP server library provides a high-level portable interface to easily
@@ -54,23 +51,22 @@ language and it's used in projects like
%prep
%setup -q -n pyftpdlib-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
make test
#%%python_exec -m nose #pyftpdlib/test
export PYTHONPATH=$PWD
%python_exec pyftpdlib/test/runner.py
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{_bindir}/ftpbench
%python3_only %{_bindir}/ftpbench
%{python_sitelib}/*
%changelog