2018-04-15 14:39:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-softlayer
|
|
|
|
#
|
2022-01-11 05:58:06 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-04-15 14:39:52 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-10 06:28:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-15 14:39:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-03-17 15:34:17 +00:00
|
|
|
%define skip_python2 1
|
2018-04-15 14:39:52 +00:00
|
|
|
Name: python-softlayer
|
2022-10-06 19:26:40 +00:00
|
|
|
Version: 6.1.2
|
2018-04-15 14:39:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A set of Python libraries that assist in calling the SoftLayer API
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/softlayer/softlayer-python
|
|
|
|
Source: https://github.com/softlayer/softlayer-python/archive/v%{version}.tar.gz
|
2022-10-17 18:04:56 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-maint-issue.patch bsc#1203311 mcepl@suse.com
|
|
|
|
# xmlrpc y2038 problem
|
|
|
|
Patch0: fix-maint-issue.patch
|
2022-07-07 11:12:04 +00:00
|
|
|
BuildRequires: %{python_module click >= 8.0.4}
|
|
|
|
BuildRequires: %{python_module prettytable >= 2.5.0}
|
2019-09-10 10:20:45 +00:00
|
|
|
BuildRequires: %{python_module prompt_toolkit >= 2}
|
2019-04-10 06:28:41 +00:00
|
|
|
BuildRequires: %{python_module pygments >= 2.0.0}
|
2018-04-15 14:39:52 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-09-10 10:20:45 +00:00
|
|
|
BuildRequires: %{python_module requests >= 2.20.0}
|
2022-10-06 19:26:40 +00:00
|
|
|
BuildRequires: %{python_module rich >= 12.5.1}
|
2018-04-15 14:39:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-07-07 11:12:04 +00:00
|
|
|
BuildRequires: %{python_module softlayer-zeep >= 5.0.0}
|
2019-04-10 06:28:41 +00:00
|
|
|
BuildRequires: %{python_module testtools}
|
2022-07-07 11:12:04 +00:00
|
|
|
BuildRequires: %{python_module typing_extensions}
|
2019-04-10 06:28:41 +00:00
|
|
|
BuildRequires: %{python_module urllib3 >= 1.24}
|
2018-04-15 14:39:52 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-07-07 11:12:04 +00:00
|
|
|
Requires: python-click >= 8.0.4
|
|
|
|
Requires: python-prettytable >= 2.5.0
|
2019-09-10 10:20:45 +00:00
|
|
|
Requires: python-prompt_toolkit >= 2
|
2019-04-10 06:28:41 +00:00
|
|
|
Requires: python-pygments >= 2.0.0
|
2019-09-10 10:20:45 +00:00
|
|
|
Requires: python-requests >= 2.20.0
|
2022-10-06 19:26:40 +00:00
|
|
|
Requires: python-rich >= 12.5.1
|
2018-04-15 14:39:52 +00:00
|
|
|
Requires: python-setuptools
|
2022-07-07 11:12:04 +00:00
|
|
|
Requires: python-softlayer-zeep >= 5.0.0
|
|
|
|
Requires: python-typing_extensions
|
2019-04-10 06:28:41 +00:00
|
|
|
Requires: python-urllib3 >= 1.24
|
2021-08-16 05:52:31 +00:00
|
|
|
Conflicts: sl
|
2020-05-19 12:15:03 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-08-13 06:06:28 +00:00
|
|
|
Requires(postun):update-alternatives
|
2018-04-15 14:39:52 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides a simple Python client to interact with SoftLayer's XML-RPC API.
|
|
|
|
|
|
|
|
%prep
|
2022-10-17 18:04:56 +00:00
|
|
|
%autosetup -p1 -n softlayer-python-%{version}
|
2018-04-15 14:39:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-05-19 12:15:03 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/slcli
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sl
|
2018-04-15 14:39:52 +00:00
|
|
|
# do not install tests
|
2019-09-10 10:20:45 +00:00
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-04-15 14:39:52 +00:00
|
|
|
|
|
|
|
%check
|
2021-08-13 06:06:28 +00:00
|
|
|
# We do not want TKinter
|
2022-07-07 11:12:04 +00:00
|
|
|
%pytest -k 'not test_getpass_issues1436 and not TestSoapAPICall'
|
2018-04-15 14:39:52 +00:00
|
|
|
|
2020-05-19 12:15:03 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative slcli
|
|
|
|
%python_install_alternative sl
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative slcli
|
|
|
|
%python_uninstall_alternative sl
|
|
|
|
|
2018-04-15 14:39:52 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2019-04-10 06:28:41 +00:00
|
|
|
%doc *.md
|
2018-04-15 14:39:52 +00:00
|
|
|
%{python_sitelib}/*
|
2020-05-19 12:15:03 +00:00
|
|
|
%python_alternative %{_bindir}/sl
|
|
|
|
%python_alternative %{_bindir}/slcli
|
2018-04-15 14:39:52 +00:00
|
|
|
|
|
|
|
%changelog
|