14
0

Accepting request 807615 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807615
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyftpdlib?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:29:30 +00:00
committed by Git OBS Bridge
parent 6f88b044ac
commit 3385631a2e
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:27 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Apr 20 10:41:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -37,6 +37,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyOpenSSL
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-pysendfile
BuildArch: noarch
%if %{with python2}
@@ -60,6 +62,7 @@ write very asynchronous FTP servers with Python.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/ftpbench
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Note: Do not remove tests. Other packages import them
@@ -69,10 +72,16 @@ export PYTHONPATH=$PWD
%python_exec pyftpdlib/test/runner.py
%endif
%post
%python_install_alternative ftpbench
%postun
%python_uninstall_alternative ftpbench
%files %{python_files}
%license LICENSE
%doc README.rst
%python3_only %{_bindir}/ftpbench
%python_alternative %{_bindir}/ftpbench
%{python_sitelib}/*
%changelog