2017-09-27 13:57:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package azure-cli-core
|
|
|
|
#
|
2024-01-08 13:42:10 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-27 13:57:55 +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 11:54:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-27 13:57:55 +02:00
|
|
|
#
|
|
|
|
|
2018-02-09 20:21:06 +01:00
|
|
|
|
2024-04-04 23:16:07 +02:00
|
|
|
%if 0%{?suse_version} >= 1600
|
|
|
|
%define pythons %{primary_python}
|
|
|
|
%else
|
|
|
|
%define pythons python311
|
|
|
|
%endif
|
|
|
|
%global _sitelibdir %{%{pythons}_sitelib}
|
|
|
|
|
2017-09-27 13:57:55 +02:00
|
|
|
Name: azure-cli-core
|
2024-03-11 12:37:32 +01:00
|
|
|
Version: 2.58.0
|
2017-09-27 13:57:55 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Microsoft Azure CLI Core Module
|
|
|
|
License: MIT
|
|
|
|
Group: System/Management
|
2019-11-28 16:37:54 +01:00
|
|
|
URL: https://github.com/Azure/azure-cli
|
2017-09-27 13:57:55 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/azure-cli-core/azure-cli-core-%{version}.tar.gz
|
|
|
|
Source1: LICENSE.txt
|
2020-09-30 15:23:11 +02:00
|
|
|
Patch0: acc_disable-update-check.patch
|
2024-04-04 23:16:07 +02:00
|
|
|
BuildRequires: %{pythons}-azure-nspkg >= 3.0.0
|
|
|
|
BuildRequires: %{pythons}-pip
|
|
|
|
BuildRequires: %{pythons}-setuptools
|
|
|
|
BuildRequires: %{pythons}-wheel
|
2018-02-09 20:21:06 +01:00
|
|
|
BuildRequires: azure-cli-nspkg
|
2019-04-18 03:07:05 +02:00
|
|
|
BuildRequires: fdupes
|
2019-06-04 14:25:55 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-04-04 23:16:07 +02:00
|
|
|
Requires: %{pythons}-PyJWT >= 2.1.0
|
|
|
|
Requires: %{pythons}-argcomplete < 4.0
|
|
|
|
Requires: %{pythons}-argcomplete >= 3.1.1
|
|
|
|
Requires: %{pythons}-azure-mgmt-core < 2.0.0
|
|
|
|
Requires: %{pythons}-azure-mgmt-core >= 1.2.0
|
|
|
|
Requires: %{pythons}-azure-nspkg >= 3.0.0
|
|
|
|
Requires: %{pythons}-cryptography
|
|
|
|
Requires: %{pythons}-humanfriendly < 11.0
|
|
|
|
Requires: %{pythons}-humanfriendly >= 10.0
|
|
|
|
Requires: %{pythons}-jmespath
|
|
|
|
Requires: %{pythons}-knack < 1.0.0
|
|
|
|
Requires: %{pythons}-knack >= 0.11.0
|
|
|
|
Requires: %{pythons}-msal < 2.0.0
|
|
|
|
Requires: %{pythons}-msal >= 1.26.0
|
|
|
|
Requires: %{pythons}-msal-extensions < 2.0.0
|
|
|
|
Requires: %{pythons}-msal-extensions >= 1.0.0
|
|
|
|
Requires: %{pythons}-msrestazure < 0.7.0
|
|
|
|
Requires: %{pythons}-msrestazure >= 0.6.4
|
|
|
|
Requires: %{pythons}-packaging >= 20.9
|
|
|
|
Requires: %{pythons}-paramiko < 4.0.0
|
|
|
|
Requires: %{pythons}-paramiko >= 2.0.8
|
|
|
|
Requires: %{pythons}-pip
|
|
|
|
Requires: %{pythons}-pkginfo >= 1.5.0.1
|
|
|
|
Requires: %{pythons}-psutil < 6.0
|
|
|
|
Requires: %{pythons}-psutil >= 5.9
|
|
|
|
Requires: %{pythons}-pyOpenSSL >= 17.1.0
|
|
|
|
Requires: %{pythons}-requests < 3.0.0
|
|
|
|
Requires: %{pythons}-requests >= 2.25.1
|
|
|
|
Requires: %{pythons}-wheel >= 0.30.0
|
2017-09-27 13:57:55 +02:00
|
|
|
Requires: azure-cli-nspkg
|
2023-08-16 12:21:01 +02:00
|
|
|
Requires: azure-cli-telemetry >= 1.1.0
|
2017-09-27 13:57:55 +02:00
|
|
|
Conflicts: azure-cli < 2.0.0
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Microsoft Azure CLI Core Module
|
|
|
|
|
|
|
|
%prep
|
2024-02-21 22:18:07 +01:00
|
|
|
%autosetup -p1 -n azure-cli-core-%{version}
|
2017-09-27 13:57:55 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
install -m 644 %{SOURCE1} %{_builddir}/azure-cli-core-%{version}
|
2024-04-04 23:16:07 +02:00
|
|
|
%pyproject_wheel
|
2017-09-27 13:57:55 +02:00
|
|
|
|
|
|
|
%install
|
2024-04-04 23:16:07 +02:00
|
|
|
%pyproject_install
|
|
|
|
%fdupes %{buildroot}%{_sitelibdir}
|
|
|
|
rm -rf %{buildroot}%{_sitelibdir}/azure/cli/__init__.*
|
|
|
|
rm -rf %{buildroot}%{_sitelibdir}/azure/cli/__pycache__
|
|
|
|
rm -rf %{buildroot}%{_sitelibdir}/azure/__init__.*
|
|
|
|
rm -rf %{buildroot}%{_sitelibdir}/azure/__pycache__
|
2017-09-27 13:57:55 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2018-04-23 15:05:14 +02:00
|
|
|
%doc HISTORY.rst README.rst
|
|
|
|
%license LICENSE.txt
|
2024-04-04 23:16:07 +02:00
|
|
|
%{_sitelibdir}/azure/cli/core
|
|
|
|
%{_sitelibdir}/azure_cli_core-*.dist-info
|
2018-02-09 20:21:06 +01:00
|
|
|
|
2017-09-27 13:57:55 +02:00
|
|
|
%changelog
|