- Initial build
+ Version 2.0.18 - Include patch to set python3 as the default python interpretor for the "az" command + ac_use-python3-by-default.patch OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli?expand=0&rev=1
This commit is contained in:
commit
be61e476ff
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
10
ac_use-python3-by-default.patch
Normal file
10
ac_use-python3-by-default.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff -Nru azure-cli-2.0.15.orig/az azure-cli-2.0.15/az
|
||||||
|
--- azure-cli-2.0.15.orig/az 2017-08-28 22:11:38.000000000 +0200
|
||||||
|
+++ azure-cli-2.0.15/az 2017-09-18 13:18:43.389216387 +0200
|
||||||
|
@@ -10,5 +10,5 @@
|
||||||
|
|
||||||
|
export PYTHONPATH="${DIR}/src:${PYTHONPATH}"
|
||||||
|
|
||||||
|
-python -m azure.cli "$@"
|
||||||
|
+python3 -m azure.cli "$@"
|
||||||
|
|
3
azure-cli-2.0.18.tar.gz
Normal file
3
azure-cli-2.0.18.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c9a627f877efa21f9e907d852fa5e699ef88b960c6d34cb64ff72c1962250233
|
||||||
|
size 7463
|
8
azure-cli.changes
Normal file
8
azure-cli.changes
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 27 12:07:38 UTC 2017 - adrian.glaubitz@suse.com
|
||||||
|
|
||||||
|
- Initial build
|
||||||
|
+ Version 2.0.18
|
||||||
|
- Include patch to set python3 as the default python
|
||||||
|
interpretor for the "az" command
|
||||||
|
+ ac_use-python3-by-default.patch
|
99
azure-cli.spec
Normal file
99
azure-cli.spec
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
#
|
||||||
|
# spec file for package azure-cli
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: azure-cli
|
||||||
|
Version: 2.0.18
|
||||||
|
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
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: unzip
|
||||||
|
Requires: azure-cli-nspkg
|
||||||
|
Requires: python3-azure-nspkg
|
||||||
|
Requires: azure-cli-acr
|
||||||
|
Requires: azure-cli-acs
|
||||||
|
Requires: azure-cli-appservice
|
||||||
|
Requires: azure-cli-batch
|
||||||
|
Requires: azure-cli-backup
|
||||||
|
Requires: azure-cli-billing
|
||||||
|
Requires: azure-cli-cdn
|
||||||
|
Requires: azure-cli-cloud
|
||||||
|
Requires: azure-cli-cognitiveservices
|
||||||
|
Requires: azure-cli-component
|
||||||
|
Requires: azure-cli-container
|
||||||
|
Requires: azure-cli-configure
|
||||||
|
Requires: azure-cli-consumption
|
||||||
|
Requires: azure-cli-core
|
||||||
|
Requires: azure-cli-cosmosdb
|
||||||
|
Requires: azure-cli-dla
|
||||||
|
Requires: azure-cli-dls
|
||||||
|
Requires: azure-cli-eventgrid
|
||||||
|
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
|
||||||
|
Requires: azure-cli-resource
|
||||||
|
Requires: azure-cli-role
|
||||||
|
Requires: azure-cli-sql
|
||||||
|
Requires: azure-cli-storage
|
||||||
|
Requires: azure-cli-vm
|
||||||
|
Conflicts: azure-cli < 2.0.0
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Microsoft Azure CLI 2.0
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE.txt README.rst
|
||||||
|
%exclude %{python3_sitelib}/azure/cli/__pycache__/__init__.*py*
|
||||||
|
%exclude %{python3_sitelib}/azure/__pycache__/__init__.*py*
|
||||||
|
%{_bindir}/az
|
||||||
|
%config /etc/bash_completion.d/az.completion.sh
|
||||||
|
%exclude /usr/bin/az.bat
|
||||||
|
%exclude /usr/bin/az.completion.sh
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user