commit 70e6f7703a0861e12e8254edd5d98909b641fd3299bed338f8ee45567494f48b Author: Dirk Mueller Date: Thu Oct 11 10:20:41 2018 +0000 Accepting request 641059 from home:glaubitz:branches:Cloud:Tools - Update Azure CLI to 2.0.45 OBS-URL: https://build.opensuse.org/request/show/641059 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli-telemetry?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..f9e87f7 --- /dev/null +++ b/LICENSE.txt @@ -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. diff --git a/act_relax-requires-versions.patch b/act_relax-requires-versions.patch new file mode 100644 index 0000000..9889956 --- /dev/null +++ b/act_relax-requires-versions.patch @@ -0,0 +1,12 @@ +diff -Nru azure-cli-telemetry-1.0.0.orig/setup.py azure-cli-telemetry-1.0.0/setup.py +--- azure-cli-telemetry-1.0.0.orig/setup.py 2018-08-09 08:34:43.000000000 +0200 ++++ azure-cli-telemetry-1.0.0/setup.py 2018-10-01 13:01:24.018731189 +0200 +@@ -50,7 +50,7 @@ + classifiers=CLASSIFIERS, + install_requires=[ + 'applicationinsights>=0.11.1', +- 'portalocker==1.2.1', ++ 'portalocker>=1.2.1', + ], + packages=[ + 'azure', diff --git a/azure-cli-telemetry-1.0.0.tar.gz b/azure-cli-telemetry-1.0.0.tar.gz new file mode 100644 index 0000000..0892d62 --- /dev/null +++ b/azure-cli-telemetry-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49c62df960da607727a8ec973d7db395eb26122c1fac9388220eed7ad550fb71 +size 7786 diff --git a/azure-cli-telemetry.changes b/azure-cli-telemetry.changes new file mode 100644 index 0000000..fed3143 --- /dev/null +++ b/azure-cli-telemetry.changes @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Mon Oct 1 11:04:08 UTC 2018 - John Paul Adrian Glaubitz + +- Initial build + + Version 1.0.0 +- Add patch to relax version numbers in install_requires + + act_relax-requires-versions.patch diff --git a/azure-cli-telemetry.spec b/azure-cli-telemetry.spec new file mode 100644 index 0000000..47d97da --- /dev/null +++ b/azure-cli-telemetry.spec @@ -0,0 +1,71 @@ +# +# spec file for package azure-cli-telemetry +# +# 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 http://bugs.opensuse.org/ +# + +Name: azure-cli-telemetry +Version: 1.0.0 +Release: 0 +Summary: Microsoft Azure CLI Telemetry Package +License: MIT +Group: System/Management +Url: https://github.com/Azure/azure-cli +Source: https://files.pythonhosted.org/packages/source/a/azure-cli-telemetry/azure-cli-telemetry-%{version}.tar.gz +Source1: LICENSE.txt +Patch0: act_relax-requires-versions.patch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: unzip +BuildRequires: azure-cli-nspkg +BuildRequires: python3-azure-nspkg +Requires: azure-cli-nspkg +Requires: python3-azure-nspkg +Requires: python3-applicationinsights >= 0.11.1 +Requires: python3-portalocker >= 1.2.1 +Conflicts: azure-cli < 2.0.0 + +BuildArch: noarch + +%description +Microsoft Azure CLI Telemetry Package + +This is the Microsoft Azure CLI Telemetry package. It is not intended to be installed directly by the end user. + +This package includes: +1. Support API for Azure CLI to gather telemetry. +2. Telemetry upload process. + +%prep +%setup -q -n azure-cli-telemetry-%{version} +%patch0 -p1 + +%build +install -m 644 %{SOURCE1} %{_builddir}/azure-cli-telemetry-%{version} +python3 setup.py build + +%install +python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib} +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__ + +%files +%defattr(-,root,root,-) +%doc HISTORY.rst README.rst +%license LICENSE.txt +%{python3_sitelib}/azure/cli/telemetry +%{python3_sitelib}/azure_cli_telemetry-*.egg-info +%changelog