From 92e5f334a7270e16750c4bb8fc581e2358cd40377c500124a9a4e07aa4df64ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 09:21:47 +0000 Subject: [PATCH] Accepting request 808644 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808644 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban?expand=0&rev=11 --- python-moban.changes | 5 +++++ python-moban.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-moban.changes b/python-moban.changes index 11418d6..baebab1 100644 --- a/python-moban.changes +++ b/python-moban.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 06:50:48 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri May 22 07:42:56 UTC 2020 - Marketa Calabkova diff --git a/python-moban.spec b/python-moban.spec index fc0dbbd..357401d 100644 --- a/python-moban.spec +++ b/python-moban.spec @@ -49,6 +49,8 @@ Requires: python-fs >= 2.4.11 Requires: python-jinja2-fsloader >= 0.2.0 Requires: python-lml >= 0.0.9 Requires: python-ruamel.yaml >= 0.15.98 +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: python-gitfs2 Suggests: python-pypifs BuildArch: noarch @@ -71,6 +73,7 @@ rm -r tests/integration_tests %install %python_install +%python_clone -a %{buildroot}%{_bindir}/moban %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -84,10 +87,16 @@ rm -r tests/integration_tests # test_level_24 needs httpfs, which is optional %python_expand nosetests-%{$python_bin_suffix} -e 'test_level_(9|10|11|24)|test_handle_targets_sequence|test_overrides_fs_url' +%post +%python_install_alternative moban + +%postun +%python_uninstall_alternative moban + %files %{python_files} %{python_sitelib}/* %license LICENSE %doc README.rst CHANGELOG.rst -%python3_only %{_bindir}/moban +%python_alternative %{_bindir}/moban %changelog