2017-09-27 14:08:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package azure-cli
|
|
|
|
#
|
2019-04-18 02:50:33 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
|
|
|
|
%if !%{?_test}
|
2017-09-27 14:08:06 +02:00
|
|
|
Name: azure-cli
|
2018-11-23 11:16:54 +01:00
|
|
|
%else
|
|
|
|
Name: azure-cli%{?name_ext}
|
|
|
|
%endif
|
|
|
|
%define short_name azure-cli
|
2019-04-18 02:50:33 +02:00
|
|
|
Version: 2.0.58
|
2017-09-27 14:08:06 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Microsoft Azure CLI 2.0
|
|
|
|
License: MIT
|
|
|
|
Group: System/Management
|
|
|
|
Url: https://github.com/Azure/azure-cli
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/azure-cli/azure-cli-%{version}.tar.gz
|
|
|
|
Source1: LICENSE.txt
|
|
|
|
Patch1: ac_use-python3-by-default.patch
|
2018-11-23 11:16:54 +01:00
|
|
|
%if 0%{?_test}
|
|
|
|
BuildRequires: %{short_name} = %{version}
|
|
|
|
%else
|
2019-04-18 02:50:33 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python3-azure-nspkg >= 3.0.0
|
2017-09-27 14:08:06 +02:00
|
|
|
BuildRequires: python3-setuptools
|
2019-04-18 02:50:33 +02:00
|
|
|
Requires: azure-cli-acr >= 2.2.0
|
|
|
|
Requires: azure-cli-acs >= 2.3.17
|
|
|
|
Requires: azure-cli-advisor >= 2.0.0
|
|
|
|
Requires: azure-cli-ams >= 0.4.1
|
|
|
|
Requires: azure-cli-appservice >= 0.2.13
|
|
|
|
Requires: azure-cli-backup >= 1.2.1
|
|
|
|
Requires: azure-cli-batch >= 3.4.1
|
|
|
|
Requires: azure-cli-batchai >= 0.4.7
|
|
|
|
Requires: azure-cli-billing >= 0.2.0
|
|
|
|
Requires: azure-cli-botservice >= 0.1.6
|
|
|
|
Requires: azure-cli-cdn >= 0.2.0
|
|
|
|
Requires: azure-cli-cloud >= 2.1.0
|
|
|
|
Requires: azure-cli-cognitiveservices >= 0.2.4
|
|
|
|
Requires: azure-cli-command-modules-nspkg >= 2.0.2
|
|
|
|
Requires: azure-cli-configure >= 2.0.20
|
|
|
|
Requires: azure-cli-consumption >= 0.4.2
|
|
|
|
Requires: azure-cli-container >= 0.3.13
|
|
|
|
Requires: azure-cli-core >= 2.0.58
|
|
|
|
Requires: azure-cli-cosmosdb >= 0.2.7
|
|
|
|
Requires: azure-cli-dla >= 0.2.4
|
|
|
|
Requires: azure-cli-dls >= 0.1.8
|
|
|
|
Requires: azure-cli-dms >= 0.1.2
|
|
|
|
Requires: azure-cli-eventgrid >= 0.2.1
|
|
|
|
Requires: azure-cli-eventhubs >= 0.3.3
|
|
|
|
Requires: azure-cli-extension >= 0.2.3
|
|
|
|
Requires: azure-cli-feedback >= 2.1.4
|
|
|
|
Requires: azure-cli-find >= 0.2.13
|
|
|
|
Requires: azure-cli-hdinsight >= 0.3.0
|
|
|
|
Requires: azure-cli-interactive >= 0.4.1
|
|
|
|
Requires: azure-cli-iot >= 0.3.6
|
|
|
|
Requires: azure-cli-iotcentral >= 0.1.6
|
|
|
|
Requires: azure-cli-keyvault >= 2.2.11
|
|
|
|
Requires: azure-cli-kusto >= 0.1.0
|
|
|
|
Requires: azure-cli-lab >= 0.1.5
|
|
|
|
Requires: azure-cli-maps >= 0.3.3
|
|
|
|
Requires: azure-cli-monitor >= 0.2.10
|
|
|
|
Requires: azure-cli-network >= 2.3.2
|
|
|
|
Requires: azure-cli-nspkg >= 3.0.3
|
|
|
|
Requires: azure-cli-policyinsights >= 0.1.1
|
|
|
|
Requires: azure-cli-profile >= 2.1.3
|
|
|
|
Requires: azure-cli-rdbms >= 0.3.7
|
|
|
|
Requires: azure-cli-redis >= 0.4.0
|
|
|
|
Requires: azure-cli-relay >= 0.1.3
|
|
|
|
Requires: azure-cli-reservations >= 0.4.1
|
|
|
|
Requires: azure-cli-resource >= 2.1.10
|
|
|
|
Requires: azure-cli-role >= 2.4.0
|
|
|
|
Requires: azure-cli-search >= 0.1.1
|
|
|
|
Requires: azure-cli-security >= 0.1.0
|
|
|
|
Requires: azure-cli-servicebus >= 0.3.3
|
|
|
|
Requires: azure-cli-servicefabric >= 0.1.12
|
|
|
|
Requires: azure-cli-signalr >= 1.0.0
|
|
|
|
Requires: azure-cli-sql >= 2.1.9
|
|
|
|
Requires: azure-cli-sqlvm >= 0.1.0
|
|
|
|
Requires: azure-cli-storage >= 2.3.1
|
|
|
|
Requires: azure-cli-telemetry >= 1.0.1
|
|
|
|
Requires: azure-cli-vm >= 2.2.15
|
|
|
|
Requires: python3-azure-nspkg >= 3.0.0
|
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}
|
|
|
|
az --help
|
|
|
|
%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}
|
2019-04-18 02:50:33 +02:00
|
|
|
install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az.completion.sh
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
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}
|
2017-09-27 14:08:06 +02:00
|
|
|
%defattr(-,root,root,-)
|
2018-04-23 14:58:42 +02:00
|
|
|
%doc HISTORY.rst README.rst
|
|
|
|
%license LICENSE.txt
|
2017-09-27 14:08:06 +02:00
|
|
|
%{_bindir}/az
|
2019-04-18 02:50:33 +02:00
|
|
|
%{_datadir}/bash-completion/completions/az.completion.sh
|
2017-09-27 14:08:06 +02:00
|
|
|
%exclude /usr/bin/az.bat
|
|
|
|
%exclude /usr/bin/az.completion.sh
|
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
|