2019-09-04 08:40:57 +02:00
|
|
|
#
|
2021-08-04 08:03:49 +02:00
|
|
|
# spec file
|
2019-09-04 08:40:57 +02:00
|
|
|
#
|
2022-01-09 15:08:02 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-09-04 08:40:57 +02: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.
|
|
|
|
|
2020-02-10 15:30:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2020-09-09 20:32:27 +02:00
|
|
|
|
2020-07-14 18:55:42 +02:00
|
|
|
# The testsuite currently requires an OCI account, see:
|
|
|
|
# https://github.com/oracle/oci-cli/issues/187,
|
|
|
|
# so we're not building the test flavor.
|
2020-01-09 23:38:28 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2020-07-15 16:07:22 +02:00
|
|
|
Name: oci-cli%{psuffix}
|
2022-03-15 16:55:18 +01:00
|
|
|
Version: 3.6.0
|
2019-09-04 08:40:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Oracle Cloud Infrastructure CLI
|
2020-02-10 15:30:58 +01:00
|
|
|
License: Apache-2.0
|
2019-09-04 08:40:57 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-02-10 15:30:58 +01:00
|
|
|
URL: https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/cli.htm
|
2021-05-22 13:12:56 +02:00
|
|
|
Source: https://github.com/oracle/oci-cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-09-04 08:40:57 +02:00
|
|
|
Patch0: oc_relax-python-depends.patch
|
2020-02-10 15:30:58 +01:00
|
|
|
BuildRequires: fdupes
|
2021-05-22 13:12:56 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-02-10 15:30:58 +01:00
|
|
|
BuildRequires: python3-PyJWT
|
2021-05-15 21:55:47 +02:00
|
|
|
BuildRequires: python3-PyYAML >= 5.4.1
|
2021-10-27 15:46:23 +02:00
|
|
|
BuildRequires: python3-arrow >= 1.0.0
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-certifi
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-click >= 7.1.2
|
2021-06-30 11:24:12 +02:00
|
|
|
BuildRequires: python3-cryptography >= 3.2.1
|
2020-02-10 15:30:58 +01:00
|
|
|
BuildRequires: python3-devel
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-jmespath >= 0.10.0
|
2022-03-15 16:55:18 +01:00
|
|
|
BuildRequires: python3-oci-sdk >= 2.60.0
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-pyOpenSSL >= 19.1.0
|
2020-03-16 17:10:29 +01:00
|
|
|
BuildRequires: python3-python-dateutil >= 2.5.3
|
2020-01-09 23:38:28 +01:00
|
|
|
BuildRequires: python3-pytz >= 2016.10
|
2020-02-10 15:30:58 +01:00
|
|
|
BuildRequires: python3-setuptools
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-six >= 1.15.0
|
2020-01-09 23:38:28 +01:00
|
|
|
BuildRequires: python3-terminaltables >= 3.1.0
|
|
|
|
%if %{with test}
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-Jinja2 >= 2.11.3
|
2020-02-10 15:30:58 +01:00
|
|
|
BuildRequires: python3-Sphinx >= 1.6.4
|
2020-01-09 23:38:28 +01:00
|
|
|
BuildRequires: python3-appdirs >= 1.4.3
|
|
|
|
BuildRequires: python3-cffi >= 1.9.1
|
2020-03-16 17:10:29 +01:00
|
|
|
BuildRequires: python3-coverage >= 4.5.2
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-mock >= 2.0.0
|
|
|
|
BuildRequires: python3-ndg-httpsclient >= 0.4.2
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-packaging >= 20.2
|
|
|
|
BuildRequires: python3-pluggy >= 0.13.0
|
|
|
|
BuildRequires: python3-py >= 1.10.0
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-pyasn1 >= 0.2.3
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-pycparser >= 2.20
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-pyparsing >= 2.2.0
|
|
|
|
BuildRequires: python3-pytest >= 3.2.3
|
|
|
|
BuildRequires: python3-pytest-cov >= 2.5.1
|
Accepting request 745485 from home:glaubitz:branches:Cloud:Tools
- Update to version 2.6.10
+ Support for retrieving metadata for Autonomous Wallet, both regional and
instance, as well as requesting rotation of Autonomous Wallets, both
regional instance. Generate wallet now allows for specifying the wallet
type to download, All or Single.
+ ``oci db autonomous-database get-metadata --id <an OCID of an autonomous database>``
+ ``oci db autonomous-database get-regional-wallet-metadata``
+ ``oci db autonomous-database-wallet rotate --should-rotate true
--id <an OCID of an autonomous database>``
+ ``oci db autonomous-database-wallet rotate-regional-wallet --should-rotate true``
+ ``oci db autonomous-database generate-wallet --generate-type ALL``
+ ``oci db autonomous-database generate-wallet --generate-type SINGLE``
+ Support for adding and removing image shape compatibility entries
* ``oci compute image-shape-compatibility-entry add``
* ``oci compute image-shape-compatibility-entry remove``
+ Support for managing redirects (e.g. create, update, delete, get list)
* ``oci waas http-redirect change-compartment --compartment-id, --http-redirect-id``
* ``oci waas http-redirect create --compartment-id, --domain, --target,
--defined-tags, --display-name, --freeform-tags, --response-code``
* ``oci waas http-redirect delete --http-redirect-id, --force``
* ``oci waas http-redirect get --http-redirect-id``
* ``oci waas http-redirect list --compartment-id, --all-pages, --display-name,
--id, --time-created-greater-than-or-equal-to, --time-created-less-than``
* ``oci waas http-redirect update --http-redirect-id, --defined-tags,
--display-name, --force, --freeform-tags, --response-code, --target``
+ Support for migrating Dyn HTTP Redirect Service to OCI DNS
* ``oci dns zone migrate-from-dynect``
+ ``oci setup oci-cli-rc`` will try to create the directory for the
oci_cli_rc file, if it does not exist.
+ Added validation check for thread count ``--parallel-upload-count`` and
OBS-URL: https://build.opensuse.org/request/show/745485
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/oci-cli?expand=0&rev=2
2019-11-05 14:51:34 +01:00
|
|
|
BuildRequires: python3-pytest-forked >= 1.0.2
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-pytest-xdist >= 1.22.2
|
|
|
|
BuildRequires: python3-requests >= 2.21.0
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-sphinx_rtd_theme >= 0.4.3
|
|
|
|
BuildRequires: python3-tox >= 3.23.0
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildRequires: python3-vcrpy >= 1.13.0
|
2021-08-30 09:56:47 +02:00
|
|
|
BuildRequires: python3-virtualenv >= 16.7.10
|
2020-01-09 23:38:28 +01:00
|
|
|
%endif
|
2021-05-15 21:55:47 +02:00
|
|
|
Requires: python3-PyYAML >= 5.4.1
|
2021-10-27 15:46:23 +02:00
|
|
|
Requires: python3-arrow >= 1.0.0
|
2019-09-04 08:40:57 +02:00
|
|
|
Requires: python3-certifi
|
2021-08-30 09:56:47 +02:00
|
|
|
Requires: python3-click >= 7.1.2
|
2021-06-30 11:24:12 +02:00
|
|
|
Requires: python3-cryptography >= 3.2.1
|
2020-09-09 20:32:27 +02:00
|
|
|
Requires: python3-jmespath >= 0.10.0
|
2022-03-15 16:55:18 +01:00
|
|
|
Requires: python3-oci-sdk >= 2.60.0
|
2021-08-30 09:56:47 +02:00
|
|
|
Requires: python3-pyOpenSSL >= 19.1.0
|
2020-03-16 17:10:29 +01:00
|
|
|
Requires: python3-python-dateutil >= 2.5.3
|
2019-09-04 08:40:57 +02:00
|
|
|
Requires: python3-pytz >= 2016.10
|
2021-08-30 09:56:47 +02:00
|
|
|
Requires: python3-six >= 1.15.0
|
2019-09-04 08:40:57 +02:00
|
|
|
Requires: python3-terminaltables >= 3.1.0
|
2020-02-10 15:30:58 +01:00
|
|
|
|
2019-09-04 08:40:57 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The CLI is a small footprint tool that you can use on its own or with the
|
|
|
|
Console to complete Oracle Cloud Infrastructure tasks. The CLI provides
|
|
|
|
the same core functionality as the Console, plus additional commands.
|
|
|
|
Some of these, such as the ability to run scripts, extend the Console's
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
%prep
|
2021-06-30 11:24:12 +02:00
|
|
|
%setup -q -n oci-cli-%{version}
|
|
|
|
%patch0 -p1
|
2019-09-04 08:40:57 +02:00
|
|
|
# Fix includes
|
2021-06-30 11:24:12 +02:00
|
|
|
find . -name "*.py" -exec sed -i 's/from oci\._vendor //' \{\} +
|
|
|
|
find . -name "*.py" -exec sed -i 's/oci\._vendor\.//' \{\} +
|
2019-09-04 08:40:57 +02:00
|
|
|
|
|
|
|
%build
|
2021-05-22 13:12:56 +02:00
|
|
|
%python3_build
|
2019-09-04 08:40:57 +02:00
|
|
|
|
2020-01-09 23:38:28 +01:00
|
|
|
%if %{with test}
|
2021-05-22 13:12:56 +02:00
|
|
|
%check
|
2020-01-09 23:38:28 +01:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
py.test -s tests/unit
|
|
|
|
%endif
|
2019-09-04 08:40:57 +02:00
|
|
|
|
|
|
|
%install
|
2021-05-22 13:12:56 +02:00
|
|
|
%python3_install
|
2019-09-04 08:40:57 +02:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_bindir}/oci
|
|
|
|
%{_bindir}/create_backup_from_onprem
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|