From af7e9e82526c1e2745a72ec94cbc3197868cb6e552beb2812e51e9c2a7b5dd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 19 May 2020 12:15:03 +0000 Subject: [PATCH] Accepting request 807250 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=17 --- python-softlayer.changes | 5 +++++ python-softlayer.spec | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/python-softlayer.changes b/python-softlayer.changes index 54669fe..3ae8cdb 100644 --- a/python-softlayer.changes +++ b/python-softlayer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 09:28:05 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Wed Apr 15 15:19:02 UTC 2020 - Marketa Calabkova diff --git a/python-softlayer.spec b/python-softlayer.spec index ed1aaae..35cdd95 100644 --- a/python-softlayer.spec +++ b/python-softlayer.spec @@ -47,6 +47,8 @@ Requires: python-requests >= 2.20.0 Requires: python-setuptools Requires: python-six >= 1.7.0 Requires: python-urllib3 >= 1.24 +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -60,6 +62,8 @@ This library provides a simple Python client to interact with SoftLayer's XML-RP %install %python_install +%python_clone -a %{buildroot}%{_bindir}/slcli +%python_clone -a %{buildroot}%{_bindir}/sl # do not install tests %python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -67,11 +71,19 @@ This library provides a simple Python client to interact with SoftLayer's XML-RP %check %pytest +%post +%python_install_alternative slcli +%python_install_alternative sl + +%postun +%python_uninstall_alternative slcli +%python_uninstall_alternative sl + %files %{python_files} %license LICENSE %doc *.md %{python_sitelib}/* -%python3_only %{_bindir}/sl -%python3_only %{_bindir}/slcli +%python_alternative %{_bindir}/sl +%python_alternative %{_bindir}/slcli %changelog