2017-09-27 14:08:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package azure-cli
|
|
|
|
#
|
2023-01-10 15:31:55 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-09-27 14:08:06 +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.
|
|
|
|
|
2019-04-18 02:50:33 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-27 14:08:06 +02:00
|
|
|
#
|
|
|
|
|
2018-02-09 20:15:47 +01:00
|
|
|
|
2018-11-23 11:16:54 +01:00
|
|
|
# Define just "test" as a package in _multibuild file to distinguish test
|
|
|
|
# instructions here
|
|
|
|
%if "@BUILD_FLAVOR@" == ""
|
|
|
|
%define _test 0
|
|
|
|
%define name_ext %nil
|
|
|
|
%else
|
|
|
|
%define _test 1
|
|
|
|
%define name_ext -test
|
|
|
|
%endif
|
|
|
|
|
2021-06-07 11:05:03 +02:00
|
|
|
%if !%{?_test}
|
|
|
|
Name: azure-cli
|
|
|
|
%else
|
2021-06-07 08:59:57 +02:00
|
|
|
Name: azure-cli%{?name_ext}
|
2021-06-07 11:05:03 +02:00
|
|
|
%endif
|
|
|
|
%define short_name azure-cli
|
2023-04-05 09:58:51 +02:00
|
|
|
Version: 2.47.0
|
2017-09-27 14:08:06 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Microsoft Azure CLI 2.0
|
|
|
|
License: MIT
|
|
|
|
Group: System/Management
|
2019-11-28 16:44:56 +01:00
|
|
|
URL: https://github.com/Azure/azure-cli
|
2017-09-27 14:08:06 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/azure-cli/azure-cli-%{version}.tar.gz
|
2021-06-07 11:05:03 +02:00
|
|
|
Source1: LICENSE.txt
|
2017-09-27 14:08:06 +02:00
|
|
|
Patch1: ac_use-python3-by-default.patch
|
2018-11-23 11:16:54 +01:00
|
|
|
%if 0%{?_test}
|
|
|
|
BuildRequires: %{short_name} = %{version}
|
|
|
|
%else
|
2019-11-28 16:44:56 +01:00
|
|
|
BuildRequires: azure-cli-command-modules-nspkg >= 2.0
|
2020-10-13 14:33:12 +02:00
|
|
|
BuildRequires: azure-cli-core = %{version}
|
2020-03-11 09:50:02 +01:00
|
|
|
BuildRequires: azure-cli-nspkg >= 3.0.3
|
2019-04-18 02:50:33 +02:00
|
|
|
BuildRequires: fdupes
|
2022-02-14 12:05:03 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: azure-cli-command-modules-nspkg >= 2.0
|
2020-10-13 14:33:12 +02:00
|
|
|
Requires: azure-cli-core = %{version}
|
2020-03-11 09:50:02 +01:00
|
|
|
Requires: azure-cli-nspkg >= 3.0.3
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-Fabric >= 2.4
|
2021-06-14 12:08:59 +02:00
|
|
|
Requires: python3-PyGithub >= 1.38
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-PyNaCl >= 1.5.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-PyYAML >= 5.1
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-antlr4-python3-runtime >= 4.9.3
|
2020-10-13 14:33:12 +02:00
|
|
|
Requires: python3-azure-appconfiguration >= 1.1.1
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-batch >= 13.0.0
|
2020-03-11 09:50:02 +01:00
|
|
|
Requires: python3-azure-cosmos >= 3.0.2
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-azure-data-tables >= 12.4.0
|
2020-09-01 23:00:00 +02:00
|
|
|
Requires: python3-azure-datalake-store >= 0.0.49
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-graphrbac >= 0.60.0
|
2020-09-28 13:18:16 +02:00
|
|
|
Requires: python3-azure-keyvault >= 1.1.0
|
2021-04-01 13:18:48 +02:00
|
|
|
Requires: python3-azure-keyvault-administration >= 4.0.0b3
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-keyvault-keys >= 4.8.0~b2
|
2020-05-08 14:51:09 +02:00
|
|
|
Requires: python3-azure-loganalytics >= 0.1.0
|
2021-07-21 11:35:28 +02:00
|
|
|
Requires: python3-azure-mgmt-advisor >= 9.0.0
|
2022-03-09 08:48:28 +01:00
|
|
|
Requires: python3-azure-mgmt-apimanagement >= 3.0.0
|
2023-04-05 09:58:51 +02:00
|
|
|
Requires: python3-azure-mgmt-appconfiguration >= 3.0.0
|
|
|
|
Requires: python3-azure-mgmt-appcontainers >= 2.0.0
|
2021-07-02 10:54:58 +02:00
|
|
|
Requires: python3-azure-mgmt-applicationinsights >= 1.0.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-authorization >= 3.0.0
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-mgmt-batch >= 17.0.0
|
2021-08-13 16:40:01 +02:00
|
|
|
Requires: python3-azure-mgmt-batchai >= 7.0.0b1
|
2021-07-21 11:35:28 +02:00
|
|
|
Requires: python3-azure-mgmt-billing >= 6.0.0
|
2022-07-06 19:50:12 +02:00
|
|
|
Requires: python3-azure-mgmt-botservice >= 2.0.0b3
|
2022-04-13 14:32:25 +02:00
|
|
|
Requires: python3-azure-mgmt-cdn >= 12.0.0
|
2022-11-09 10:24:54 +01:00
|
|
|
Requires: python3-azure-mgmt-cognitiveservices >= 13.3.0
|
2023-02-10 17:35:23 +01:00
|
|
|
Requires: python3-azure-mgmt-compute >= 29.1.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-consumption >= 2.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-containerinstance >= 10.1.0~b1
|
|
|
|
Requires: python3-azure-mgmt-containerregistry >= 10.1.0
|
2023-04-05 09:58:51 +02:00
|
|
|
Requires: python3-azure-mgmt-containerservice >= 22.0.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-cosmosdb >= 9.0.0
|
2021-08-13 16:40:01 +02:00
|
|
|
Requires: python3-azure-mgmt-databoxedge >= 1.0.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-datalake-analytics >= 0.2.1
|
|
|
|
Requires: python3-azure-mgmt-datalake-store >= 0.5.0
|
2021-11-09 08:36:20 +01:00
|
|
|
Requires: python3-azure-mgmt-datamigration >= 10.0.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-devtestlabs >= 2.2
|
2021-05-12 09:14:30 +02:00
|
|
|
Requires: python3-azure-mgmt-dns >= 8.0.0
|
2022-08-05 08:12:56 +02:00
|
|
|
Requires: python3-azure-mgmt-eventgrid >= 10.2.0
|
2022-07-06 19:50:12 +02:00
|
|
|
Requires: python3-azure-mgmt-eventhub >= 10.1.0
|
2021-07-02 10:54:58 +02:00
|
|
|
Requires: python3-azure-mgmt-extendedlocation >= 1.0.0b2
|
2021-11-09 08:36:20 +01:00
|
|
|
Requires: python3-azure-mgmt-hdinsight >= 9.0.0
|
2022-08-05 08:12:56 +02:00
|
|
|
Requires: python3-azure-mgmt-imagebuilder >= 1.1.0
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-azure-mgmt-iotcentral >= 10.0.0b1
|
2022-12-06 17:01:42 +01:00
|
|
|
Requires: python3-azure-mgmt-iothub >= 2.3.0
|
2022-03-09 08:48:28 +01:00
|
|
|
Requires: python3-azure-mgmt-iothubprovisioningservices >= 1.1.0
|
2023-04-05 09:58:51 +02:00
|
|
|
Requires: python3-azure-mgmt-keyvault >= 10.2.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-kusto >= 0.3.0
|
2022-03-09 08:48:28 +01:00
|
|
|
Requires: python3-azure-mgmt-loganalytics >= 13.0.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-managedservices >= 1.0
|
2022-03-09 08:48:28 +01:00
|
|
|
Requires: python3-azure-mgmt-managementgroups >= 1.0.0
|
2021-08-13 16:40:01 +02:00
|
|
|
Requires: python3-azure-mgmt-maps >= 2.0.0
|
2021-05-12 09:14:30 +02:00
|
|
|
Requires: python3-azure-mgmt-marketplaceordering >= 1.1.0
|
2022-04-28 21:38:31 +02:00
|
|
|
Requires: python3-azure-mgmt-media >= 9.0
|
2022-10-14 08:42:01 +02:00
|
|
|
Requires: python3-azure-mgmt-monitor >= 5.0.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-msi >= 7.0.0
|
2022-11-09 10:24:54 +01:00
|
|
|
Requires: python3-azure-mgmt-netapp >= 9.0.1
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-azure-mgmt-policyinsights >= 1.1.0b2
|
2021-06-14 12:08:59 +02:00
|
|
|
Requires: python3-azure-mgmt-privatedns >= 1.0.0
|
2023-02-10 17:35:23 +01:00
|
|
|
Requires: python3-azure-mgmt-rdbms >= 10.2.0b6
|
|
|
|
Requires: python3-azure-mgmt-recoveryservices >= 2.2.0
|
|
|
|
Requires: python3-azure-mgmt-recoveryservicesbackup >= 5.1.0
|
|
|
|
Requires: python3-azure-mgmt-redhatopenshift >= 1.2.0
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-mgmt-redis >= 14.1.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-azure-mgmt-relay >= 0.1.0
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-azure-mgmt-reservations >= 2.0.0
|
2023-04-05 09:58:51 +02:00
|
|
|
Requires: python3-azure-mgmt-resource >= 22.0.0
|
|
|
|
Requires: python3-azure-mgmt-search >= 9.0
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-mgmt-security >= 3.0.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-servicebus >= 8.2.0
|
2021-09-13 14:39:09 +02:00
|
|
|
Requires: python3-azure-mgmt-servicefabric >= 1.0.0
|
2021-05-12 09:14:30 +02:00
|
|
|
Requires: python3-azure-mgmt-servicefabricmanagedclusters >= 1.0.0
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-mgmt-servicelinker >= 1.2.0~b1
|
2022-09-16 14:55:10 +02:00
|
|
|
Requires: python3-azure-mgmt-signalr >= 1.1.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-mgmt-sql >= 4.0.0b8
|
|
|
|
Requires: python3-azure-mgmt-sqlvirtualmachine >= 1.0.0b5
|
2022-12-06 17:01:42 +01:00
|
|
|
Requires: python3-azure-mgmt-storage >= 21.0.0
|
2022-11-09 10:24:54 +01:00
|
|
|
Requires: python3-azure-mgmt-synapse >= 2.1.0b5
|
2022-02-14 12:05:03 +01:00
|
|
|
Requires: python3-azure-mgmt-trafficmanager >= 1.0.0
|
2022-08-05 08:12:56 +02:00
|
|
|
Requires: python3-azure-mgmt-web >= 7.0.0
|
2023-01-10 15:31:55 +01:00
|
|
|
Requires: python3-azure-multiapi-storage >= 1.0.0
|
2020-07-20 17:38:11 +02:00
|
|
|
Requires: python3-azure-storage-common >= 1.4
|
2021-05-12 09:14:30 +02:00
|
|
|
Requires: python3-azure-synapse-accesscontrol >= 0.5.0
|
2023-03-07 20:03:18 +01:00
|
|
|
Requires: python3-azure-synapse-artifacts >= 0.15.0
|
|
|
|
Requires: python3-azure-synapse-managedprivateendpoints >= 0.4.0
|
2020-09-01 23:00:00 +02:00
|
|
|
Requires: python3-azure-synapse-spark >= 0.2.0
|
2021-10-15 18:36:12 +02:00
|
|
|
Requires: python3-chardet >= 3.0.4
|
2021-12-07 17:02:51 +01:00
|
|
|
Requires: python3-colorama >= 0.4.4
|
2022-04-13 14:32:25 +02:00
|
|
|
Requires: python3-distro
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-javaproperties >= 0.5.1
|
2022-05-24 21:46:04 +02:00
|
|
|
Requires: python3-jsondiff >= 2.0.0
|
2021-05-12 09:14:30 +02:00
|
|
|
Requires: python3-packaging >= 20.9
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-pydocumentdb >= 2.0.1
|
|
|
|
Requires: python3-pygments >= 2.4
|
|
|
|
Requires: python3-scp >= 0.13.2
|
2021-04-01 13:18:48 +02:00
|
|
|
Requires: python3-semver >= 2.13.0
|
2021-11-09 08:36:20 +01:00
|
|
|
Requires: python3-six >= 1.10.0
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-sshtunnel >= 0.1.4
|
2021-12-07 17:02:51 +01:00
|
|
|
Requires: python3-urllib3
|
2022-04-13 14:32:25 +02:00
|
|
|
Requires: python3-websocket-client >= 1.3.1
|
2019-11-28 16:44:56 +01:00
|
|
|
Requires: python3-xmltodict >= 0.12
|
|
|
|
Provides: azure-cli-acr = 2.2.9
|
|
|
|
Obsoletes: azure-cli-acr < 2.2.9
|
|
|
|
Provides: azure-cli-acs = 2.4.4
|
|
|
|
Obsoletes: azure-cli-acs < 2.4.4
|
|
|
|
Provides: azure-cli-advisor = 2.0.1
|
|
|
|
Obsoletes: azure-cli-advisor < 2.0.1
|
|
|
|
Provides: azure-cli-ams = 0.4.7
|
|
|
|
Obsoletes: azure-cli-ams < 0.4.7
|
|
|
|
Provides: azure-cli-appservice = 0.2.21
|
|
|
|
Obsoletes: azure-cli-appservice < 0.2.21
|
|
|
|
Provides: azure-cli-backup = 1.2.5
|
|
|
|
Obsoletes: azure-cli-backup < 1.2.5
|
|
|
|
Provides: azure-cli-batch = 4.0.3
|
|
|
|
Obsoletes: azure-cli-batch < 4.0.3
|
|
|
|
Provides: azure-cli-batchai = 0.4.10
|
|
|
|
Obsoletes: azure-cli-batchai < 0.4.10
|
|
|
|
Provides: azure-cli-billing = 0.2.2
|
|
|
|
Obsoletes: azure-cli-billing < 0.2.2
|
|
|
|
Provides: azure-cli-botservice = 0.2.2
|
|
|
|
Obsoletes: azure-cli-botservice < 0.2.2
|
|
|
|
Provides: azure-cli-cdn = 0.2.4
|
|
|
|
Obsoletes: azure-cli-cdn < 0.2.4
|
|
|
|
Provides: azure-cli-cloud = 2.1.1
|
|
|
|
Obsoletes: azure-cli-cloud < 2.1.1
|
|
|
|
Provides: azure-cli-cognitiveservices = 0.2.6
|
|
|
|
Obsoletes: azure-cli-cognitiveservices < 0.2.6
|
|
|
|
Provides: azure-cli-component = 2.0.8
|
|
|
|
Obsoletes: azure-cli-component < 2.0.8
|
|
|
|
Provides: azure-cli-configure = 2.0.24
|
|
|
|
Obsoletes: azure-cli-configure < 2.0.24
|
|
|
|
Provides: azure-cli-consumption = 0.4.4
|
|
|
|
Obsoletes: azure-cli-consumption < 0.4.4
|
|
|
|
Provides: azure-cli-container = 0.3.18
|
|
|
|
Obsoletes: azure-cli-container < 0.3.18
|
|
|
|
Provides: azure-cli-cosmosdb = 0.2.11
|
|
|
|
Obsoletes: azure-cli-cosmosdb < 0.2.11
|
|
|
|
Provides: azure-cli-deploymentmanager = 0.1.1
|
|
|
|
Obsoletes: azure-cli-deploymentmanager < 0.1.1
|
|
|
|
Provides: azure-cli-dla = 0.2.6
|
|
|
|
Obsoletes: azure-cli-dla < 0.2.6
|
|
|
|
Provides: azure-cli-dls = 0.1.10
|
|
|
|
Obsoletes: azure-cli-dls < 0.1.10
|
|
|
|
Provides: azure-cli-dms = 0.1.4
|
|
|
|
Obsoletes: azure-cli-dms < 0.1.4
|
|
|
|
Provides: azure-cli-eventgrid = 0.2.4
|
|
|
|
Obsoletes: azure-cli-eventgrid < 0.2.4
|
|
|
|
Provides: azure-cli-eventhubs = 0.3.7
|
|
|
|
Obsoletes: azure-cli-eventhubs < 0.3.7
|
|
|
|
Provides: azure-cli-extension = 0.2.5
|
|
|
|
Obsoletes: azure-cli-extension < 0.2.5
|
|
|
|
Provides: azure-cli-feedback = 2.2.1
|
|
|
|
Obsoletes: azure-cli-feedback < 2.2.1
|
|
|
|
Provides: azure-cli-find = 0.3.4
|
|
|
|
Obsoletes: azure-cli-find < 0.3.4
|
|
|
|
Provides: azure-cli-hdinsight = 0.3.5
|
|
|
|
Obsoletes: azure-cli-hdinsight < 0.3.5
|
|
|
|
Provides: azure-cli-interactive = 0.4.5
|
|
|
|
Obsoletes: azure-cli-interactive < 0.4.5
|
|
|
|
Provides: azure-cli-iot = 0.3.11
|
|
|
|
Obsoletes: azure-cli-iot < 0.3.11
|
|
|
|
Provides: azure-cli-iotcentral = 0.1.7
|
|
|
|
Obsoletes: azure-cli-iotcentral < 0.1.7
|
|
|
|
Provides: azure-cli-keyvault = 2.2.16
|
|
|
|
Obsoletes: azure-cli-keyvault < 2.2.16
|
|
|
|
Provides: azure-cli-kusto = 0.2.3
|
|
|
|
Obsoletes: azure-cli-kusto < 0.2.3
|
|
|
|
Provides: azure-cli-lab = 0.1.8
|
|
|
|
Obsoletes: azure-cli-lab < 0.1.8
|
|
|
|
Provides: azure-cli-maps = 0.3.5
|
|
|
|
Obsoletes: azure-cli-maps < 0.3.5
|
|
|
|
Provides: azure-cli-monitor = 0.2.15
|
|
|
|
Obsoletes: azure-cli-monitor < 0.2.15
|
|
|
|
Provides: azure-cli-natgateway = 0.1.1
|
|
|
|
Obsoletes: azure-cli-natgateway < 0.1.1
|
|
|
|
Provides: azure-cli-network = 2.5.2
|
|
|
|
Obsoletes: azure-cli-network < 2.5.2
|
|
|
|
Provides: azure-cli-policyinsights = 0.1.4
|
|
|
|
Obsoletes: azure-cli-policyinsights < 0.1.4
|
|
|
|
Provides: azure-cli-privatedns = 1.0.2
|
|
|
|
Obsoletes: azure-cli-privatedns < 1.0.2
|
|
|
|
Provides: azure-cli-profile = 2.1.5
|
|
|
|
Obsoletes: azure-cli-profile < 2.1.5
|
|
|
|
Provides: azure-cli-rdbms = 0.3.12
|
|
|
|
Obsoletes: azure-cli-rdbms < 0.3.12
|
|
|
|
Provides: azure-cli-redis = 0.4.4
|
|
|
|
Obsoletes: azure-cli-redis < 0.4.4
|
|
|
|
Provides: azure-cli-relay = 0.1.5
|
|
|
|
Obsoletes: azure-cli-relay < 0.1.5
|
|
|
|
Provides: azure-cli-reservations = 0.4.3
|
|
|
|
Obsoletes: azure-cli-reservations < 0.4.3
|
|
|
|
Provides: azure-cli-resource = 2.1.16
|
|
|
|
Obsoletes: azure-cli-resource < 2.1.16
|
|
|
|
Provides: azure-cli-role = 2.6.4
|
|
|
|
Obsoletes: azure-cli-role < 2.6.4
|
|
|
|
Provides: azure-cli-search = 0.1.2
|
|
|
|
Obsoletes: azure-cli-search < 0.1.2
|
|
|
|
Provides: azure-cli-security = 0.1.2
|
|
|
|
Obsoletes: azure-cli-security < 0.1.2
|
|
|
|
Provides: azure-cli-servicebus = 0.3.6
|
|
|
|
Obsoletes: azure-cli-servicebus < 0.3.6
|
|
|
|
Provides: azure-cli-servicefabric = 0.1.20
|
|
|
|
Obsoletes: azure-cli-servicefabric < 0.1.20
|
|
|
|
Provides: azure-cli-signalr = 1.0.1
|
|
|
|
Obsoletes: azure-cli-signalr < 1.0.1
|
|
|
|
Provides: azure-cli-sql = 2.2.5
|
|
|
|
Obsoletes: azure-cli-sql < 2.2.5
|
|
|
|
Provides: azure-cli-sqlvm = 0.2.0
|
|
|
|
Obsoletes: azure-cli-sqlvm < 0.2.0
|
|
|
|
Provides: azure-cli-storage = 2.4.3
|
|
|
|
Obsoletes: azure-cli-storage < 2.4.3
|
|
|
|
Provides: azure-cli-vm = 2.2.23
|
|
|
|
Obsoletes: azure-cli-vm < 2.2.23
|
2017-09-27 14:08:06 +02:00
|
|
|
Conflicts: azure-cli < 2.0.0
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2018-11-23 11:16:54 +01:00
|
|
|
%endif
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%description
|
2017-10-04 14:02:32 +02:00
|
|
|
Microsoft Azure CLI 2.0 Command Line Utilities
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%prep
|
2018-11-23 11:16:54 +01:00
|
|
|
%if 0%{?_test}
|
|
|
|
# workaround to prevent post/install failing assuming this file for whatever
|
|
|
|
# reason
|
|
|
|
touch %{_sourcedir}/%{short_name}
|
|
|
|
%else
|
2017-09-27 14:08:06 +02:00
|
|
|
%setup -q -n azure-cli-%{version}
|
|
|
|
%patch1 -p1
|
2018-11-23 11:16:54 +01:00
|
|
|
%endif
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-23 11:16:54 +01:00
|
|
|
%if 0%{?_test}
|
2021-11-09 08:36:20 +01:00
|
|
|
set +x
|
|
|
|
for i in $(az | sed -n 's/\s*\([a-z,-]*\)\s\+\:.*/\1/p') ; do
|
|
|
|
echo -n "Testing $i command .. "
|
|
|
|
if az $i --help > /dev/null 2>&1 ; then
|
|
|
|
echo "OK"
|
|
|
|
else
|
|
|
|
echo "FAIL"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
set -x
|
2018-11-23 11:16:54 +01:00
|
|
|
%else
|
2017-09-27 14:08:06 +02:00
|
|
|
install -m 644 %{SOURCE1} %{_builddir}/azure-cli-%{version}
|
|
|
|
python3 setup.py build
|
2018-11-23 11:16:54 +01:00
|
|
|
%endif
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%install
|
2018-11-23 11:16:54 +01:00
|
|
|
%if 0%{?_test}
|
|
|
|
# disable debug packages in package test to prevent error about missing files
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%else
|
2017-09-27 14:08:06 +02:00
|
|
|
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib}
|
2020-11-02 19:51:00 +01:00
|
|
|
install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az
|
2019-06-04 14:19:43 +02:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2019-12-03 11:42:23 +01:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__init__.*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__pycache__
|
2017-10-04 14:02:32 +02:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/__init__.*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/__pycache__
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/__init__.*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/azure/__pycache__
|
2018-11-23 11:16:54 +01:00
|
|
|
%endif
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%files
|
2018-11-23 11:16:54 +01:00
|
|
|
%if !%{?_test}
|
2021-06-07 11:05:03 +02:00
|
|
|
%defattr(-,root,root,-)
|
2018-04-23 14:58:42 +02:00
|
|
|
%doc HISTORY.rst README.rst
|
2021-06-07 11:05:03 +02:00
|
|
|
%license LICENSE.txt
|
2017-09-27 14:08:06 +02:00
|
|
|
%{_bindir}/az
|
2020-11-02 19:51:00 +01:00
|
|
|
%{_datadir}/bash-completion/completions/az
|
2017-09-27 14:08:06 +02:00
|
|
|
%exclude /usr/bin/az.bat
|
|
|
|
%exclude /usr/bin/az.completion.sh
|
2022-10-14 08:42:01 +02:00
|
|
|
%exclude /usr/bin/azps.ps1
|
2017-10-04 14:02:32 +02:00
|
|
|
%{python3_sitelib}/azure/cli
|
|
|
|
%{python3_sitelib}/azure_cli-*.egg-info
|
2018-11-23 11:16:54 +01:00
|
|
|
%endif
|
2018-02-09 20:15:47 +01:00
|
|
|
|
2017-09-27 14:08:06 +02:00
|
|
|
%changelog
|