14
0

Accepting request 807662 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807662
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyftpdlib?expand=0&rev=12
This commit is contained in:
2020-05-26 15:17:30 +00:00
committed by Git OBS Bridge
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> 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: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pyOpenSSL Requires: python-pyOpenSSL
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-pysendfile Recommends: python-pysendfile
BuildArch: noarch BuildArch: noarch
%if %{with python2} %if %{with python2}
@@ -60,6 +62,7 @@ write very asynchronous FTP servers with Python.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/ftpbench
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# Note: Do not remove tests. Other packages import them # Note: Do not remove tests. Other packages import them
@@ -69,10 +72,16 @@ export PYTHONPATH=$PWD
%python_exec pyftpdlib/test/runner.py %python_exec pyftpdlib/test/runner.py
%endif %endif
%post
%python_install_alternative ftpbench
%postun
%python_uninstall_alternative ftpbench
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%python3_only %{_bindir}/ftpbench %python_alternative %{_bindir}/ftpbench
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog