forked from pool/python-pyftpdlib
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:
committed by
Git OBS Bridge
parent
6f88b044ac
commit
3385631a2e
@@ -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>
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user