forked from pool/python-softlayer
Accepting request 807293 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807293 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-softlayer?expand=0&rev=9
This commit is contained in:
@@ -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>
|
Wed Apr 15 15:19:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -47,6 +47,8 @@ Requires: python-requests >= 2.20.0
|
|||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-six >= 1.7.0
|
Requires: python-six >= 1.7.0
|
||||||
Requires: python-urllib3 >= 1.24
|
Requires: python-urllib3 >= 1.24
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -60,6 +62,8 @@ This library provides a simple Python client to interact with SoftLayer's XML-RP
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/slcli
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/sl
|
||||||
# do not install tests
|
# do not install tests
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%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
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative slcli
|
||||||
|
%python_install_alternative sl
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative slcli
|
||||||
|
%python_uninstall_alternative sl
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc *.md
|
%doc *.md
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/sl
|
%python_alternative %{_bindir}/sl
|
||||||
%python3_only %{_bindir}/slcli
|
%python_alternative %{_bindir}/slcli
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user