oci-cli/oci-cli.spec
Robert Schweikert f9e71a1ce1 Accepting request 762190 from home:glaubitz:branches:Cloud:Tools
- Update to version 2.7.0
  + Support for Oracle Cloud Infrastructure API Gateway service
    * ``oci apigateway``
  + Boot volumes support for cross-region backups in Block Volume Service
    * ``oci bv boot-volume-backup copy``
    * ``oci bv boot-volume-backup list --source-boot-volume-backup-id``
  + Support for managing TSIG Key resources in the DNS service.
    * ``oci dns tsig-key``
  + Support for referencing TSIG Key resources by OCID within Zone resources in the DNS service.
    * ``oci dns zone create --external-masters``
    * ``oci dns zone update --external-masters``
  + Removed Identity Cloud service(idcs) access token requirement for Container Engine delete
    operation. Also, support secondary idcs stripe for Container Engine creation.
    * ``oci oce oce-instance delete``
    * ``oci oce oce-instance create --identity-stripe``
  + Support to resize compute virtual machine instance to a different shape in Compute Service.
    * ``oci compute instance update --id <id> [--shape <shape>]``
  + Support for OS Management Service.
    * ``oci os-management``
  + Improve nodepool creation, specify the image of the nodes by the
    image OCID in the Container Engine Service.
    * ``oci ce node-pool create --node-image-id``
  + Add management configuration for oracle-cloud-agent in Compute Service
    * ``oci compute instance launch --agent-config``
  + Support for Marketplace Service.
    * ``oci marketplace``
  + Allow customers to bring their own keys to Key Management Service.
    * ``oci kms management get-wrapping-key``
    * ``oci kms management import-key``
    * ``oci kms management import-key-version``

OBS-URL: https://build.opensuse.org/request/show/762190
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/oci-cli?expand=0&rev=3
2020-01-09 22:38:28 +00:00

137 lines
5.1 KiB
RPMSpec

#
# spec file for package python-oci-cli
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: oci-cli
Version: 2.7.0
Release: 0
License: Apache-2.0
Summary: Oracle Cloud Infrastructure CLI
Url: https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/cli.htm
Group: Development/Languages/Python
Source: https://github.com/oracle/oci-cli/archive/v%{version}.tar.gz
Patch0: oc_relax-python-depends.patch
Patch1: oc_name-defaults_file-parameter.patch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-arrow >= 0.10.0
BuildRequires: python3-certifi
BuildRequires: python3-click >= 6.7
BuildRequires: python3-configparser >= 3.5.0
BuildRequires: python3-cryptography >= 2.4.2
BuildRequires: python3-jmespath >= 0.9.3
BuildRequires: python3-python-dateutil >= 2.7.3
BuildRequires: python3-pytz >= 2016.10
BuildRequires: python3-retrying >= 1.3.3
BuildRequires: python3-six >= 1.11.0
BuildRequires: python3-terminaltables >= 3.1.0
BuildRequires: python3-idna >= 2.5
BuildRequires: python3-PyJWT
BuildRequires: python3-pyOpenSSL >= 18.0.0
BuildRequires: python3-PyYAML >= 5.1.2
BuildRequires: python3-oci-sdk >= 2.8.0
%if %{with test}
BuildRequires: python3-appdirs >= 1.4.3
BuildRequires: python3-cffi >= 1.9.1
BuildRequires: python3-coverage >= 4.5.1
BuildRequires: python3-httpsig_cffi >= 15.0.0
BuildRequires: python3-Jinja2 >= 2.10.1
BuildRequires: python3-mock >= 2.0.0
BuildRequires: python3-ndg-httpsclient >= 0.4.2
BuildRequires: python3-Sphinx >= 1.6.4
BuildRequires: python3-sphinx_rtd_theme >= 0.2.5
BuildRequires: python3-packaging >= 16.8
BuildRequires: python3-pluggy >= 0.4.0
BuildRequires: python3-py >= 1.4.33
BuildRequires: python3-pyasn1 >= 0.2.3
BuildRequires: python3-pycparser >= 2.17
BuildRequires: python3-pyparsing >= 2.2.0
BuildRequires: python3-pytest >= 3.2.3
BuildRequires: python3-pytest-cov >= 2.5.1
BuildRequires: python3-pytest-forked >= 1.0.2
BuildRequires: python3-pytest-xdist >= 1.22.2
BuildRequires: python3-requests >= 2.21.0
BuildRequires: python3-tox >= 2.9.1
BuildRequires: python3-vcrpy >= 1.13.0
BuildRequires: python3-virtualenv >= 15.1.0
%endif
BuildRequires: fdupes
Requires: python3-arrow >= 0.10.0
Requires: python3-certifi
Requires: python3-click >= 6.7
Requires: python3-configparser >= 3.5.0
Requires: python3-cryptography >= 2.4.2
Requires: python3-httpsig_cffi >= 15.0.0
Requires: python3-idna >= 2.5
Requires: python3-jmespath >= 0.9.3
Requires: python3-oci-sdk >= 2.8.0
Requires: python3-pyOpenSSL >= 18.0.0
Requires: python3-python-dateutil >= 2.7.3
Requires: python3-pytz >= 2016.10
Requires: python3-retrying >= 1.3.3
Requires: python3-six >= 1.11.0
Requires: python3-terminaltables >= 3.1.0
Requires: python3-PyYAML >= 5.1.2
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
%setup -q -n oci-cli-%{version}
%patch0 -p1
%patch1 -p1
# Fix includes
sed -i 's/from oci._vendor //' src/oci_cli/*.py services/container_engine/src/oci_cli_container_engine/*.py services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/*.py services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/*.py services/dts/src/oci_cli_dts/*.py tests/*.py
sed -i 's/oci\._vendor\.//' src/oci_cli/*.py services/dts/src/oci_cli_dts/*.py services/container_engine/src/oci_cli_container_engine/*.py tests/*.py tests/vcr_mods/*.py
%build
python3 setup.py build
# The testsuite currently requires an OCI account
# https://github.com/oracle/oci-cli/issues/187
%check
%if %{with test}
export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{python3_sitelib}
py.test -s tests/unit
%endif
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
%fdupes %{buildroot}%{python3_sitelib}
%files
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%{_bindir}/oci
%{_bindir}/create_backup_from_onprem
%{python3_sitelib}/*
%changelog