14
0

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
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:15:03 +00:00
committed by Git OBS Bridge
parent 095b24ed20
commit af7e9e8252
2 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:28:05 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Apr 15 15:19:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -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