File azure-cli-interactive.spec of Package azure-cli-interactive.14495

# spec file for package azure-cli-interactive
# Copyright (c) 2018 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

Name:           azure-cli-interactive
Version:        0.3.28
Release:        0
Summary:        Microsoft Azure CLI Interactive Shell
License:        MIT
Group:          System/Management
Source1:        LICENSE.txt
Patch1:         aci_drop-compatible-releases-operator.patch
BuildRequires:  azure-cli-command-modules-nspkg
BuildRequires:  azure-cli-nspkg
BuildRequires:  python3-azure-nspkg
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  unzip
Requires:       azure-cli-command-modules-nspkg
Requires:       azure-cli-core
Requires:       azure-cli-nspkg
#not actually said in
#Requires:       python3-PyYAML < 4.0.0
Requires:       python3-PyYAML >= 3.13
Requires:       python3-applicationinsights < 1.0.0
Requires:       python3-applicationinsights >= 0.11.4
Requires:       python3-azure-nspkg
Requires:       python3-jmespath < 1.0.0
Requires:       python3-jmespath >= 0.9.3
Requires:       python3-six < 2.0.0
Requires:       python3-six >= 1.11.0
Conflicts:      azure-cli < 2.0.0

BuildArch:      noarch

Microsoft Azure CLI Interactive Shell

This package is for the 'shell' module.
i.e. 'az shell'

%setup -q -n azure-cli-interactive-%{version}
%patch1 -p1

install -m 644 %{SOURCE1} %{_builddir}/azure-cli-interactive-%{version}
python3 build

python3 install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib}
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__init__.*
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__pycache__
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__

%doc HISTORY.rst README.rst
%license LICENSE.txt

openSUSE Build Service is sponsored by