2017-09-27 14:08:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package azure-cli
|
|
|
|
#
|
2018-02-09 20:15:47 +01:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
2018-10-11 12:16:31 +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
|
|
|
|
2017-09-27 14:08:06 +02:00
|
|
|
Name: azure-cli
|
2018-10-11 12:16:31 +02:00
|
|
|
Version: 2.0.45
|
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-02-09 20:15:47 +01:00
|
|
|
BuildRequires: azure-cli-nspkg
|
|
|
|
BuildRequires: python3-azure-nspkg
|
2017-09-27 14:08:06 +02:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: unzip
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-acr
|
|
|
|
Requires: azure-cli-acs
|
2018-02-09 20:15:47 +01:00
|
|
|
Requires: azure-cli-advisor
|
2018-10-11 12:16:31 +02:00
|
|
|
Requires: azure-cli-ams
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-appservice
|
|
|
|
Requires: azure-cli-backup
|
2018-02-09 20:15:47 +01:00
|
|
|
Requires: azure-cli-batch
|
|
|
|
Requires: azure-cli-batchai
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-billing
|
|
|
|
Requires: azure-cli-cdn
|
|
|
|
Requires: azure-cli-cloud
|
|
|
|
Requires: azure-cli-cognitiveservices
|
2018-11-14 15:40:54 +01:00
|
|
|
Requires: azure-cli-command-modules-nspkg
|
|
|
|
Requires: azure-cli-component
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-configure
|
|
|
|
Requires: azure-cli-consumption
|
2018-02-09 20:15:47 +01:00
|
|
|
Requires: azure-cli-container
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-core
|
|
|
|
Requires: azure-cli-cosmosdb
|
|
|
|
Requires: azure-cli-dla
|
|
|
|
Requires: azure-cli-dls
|
2018-10-11 12:16:31 +02:00
|
|
|
Requires: azure-cli-dms
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-eventgrid
|
2018-04-23 14:58:42 +02:00
|
|
|
Requires: azure-cli-eventhubs
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-extension
|
|
|
|
Requires: azure-cli-feedback
|
|
|
|
Requires: azure-cli-find
|
|
|
|
Requires: azure-cli-interactive
|
|
|
|
Requires: azure-cli-iot
|
|
|
|
Requires: azure-cli-keyvault
|
|
|
|
Requires: azure-cli-lab
|
|
|
|
Requires: azure-cli-monitor
|
|
|
|
Requires: azure-cli-network
|
|
|
|
Requires: azure-cli-nspkg
|
|
|
|
Requires: azure-cli-profile
|
|
|
|
Requires: azure-cli-rdbms
|
|
|
|
Requires: azure-cli-redis
|
2018-02-09 20:15:47 +01:00
|
|
|
Requires: azure-cli-reservations
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-resource
|
|
|
|
Requires: azure-cli-role
|
2018-10-11 12:16:31 +02:00
|
|
|
Requires: azure-cli-search
|
2018-04-23 14:58:42 +02:00
|
|
|
Requires: azure-cli-servicebus
|
|
|
|
Requires: azure-cli-servicefabric
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-sql
|
|
|
|
Requires: azure-cli-storage
|
2018-11-14 15:40:54 +01:00
|
|
|
Requires: azure-cli-taskhelp
|
|
|
|
Requires: azure-cli-telemetry
|
2017-10-02 15:03:37 +02:00
|
|
|
Requires: azure-cli-vm
|
2018-02-09 20:15:47 +01:00
|
|
|
Requires: python3-azure-nspkg
|
2017-09-27 14:08:06 +02:00
|
|
|
Conflicts: azure-cli < 2.0.0
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q -n azure-cli-%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
install -m 644 %{SOURCE1} %{_builddir}/azure-cli-%{version}
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib}
|
|
|
|
install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}/etc/bash_completion.d/az.completion.sh
|
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__
|
2017-09-27 14:08:06 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
|
|
|
%config /etc/bash_completion.d/az.completion.sh
|
|
|
|
%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-02-09 20:15:47 +01:00
|
|
|
|
2017-09-27 14:08:06 +02:00
|
|
|
%changelog
|