14
0

Accepting request 1226338 from home:glaubitz:branches:Cloud:Tools

- Add patch to relax python-portalocker version dependency in setup.py
  + me_relax-portalocker.patch
- Add %{_sitelibdir}/azure/cli directory in %files section
- Drop superflouos azure-cli-core from BuildDepends
- Drop extra LICENSE.txt as upstream now ships its own
- Relax python-portalocker version dependency in Requires

OBS-URL: https://build.opensuse.org/request/show/1226338
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli-telemetry?expand=0&rev=23
This commit is contained in:
2024-11-25 20:27:35 +00:00
committed by Git OBS Bridge
commit 3ef6190ba0
7 changed files with 245 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

21
LICENSE.txt Normal file
View 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.

View File

@@ -0,0 +1,12 @@
diff -Nru azure-cli-telemetry-1.1.0.orig/setup.py azure-cli-telemetry-1.1.0/setup.py
--- azure-cli-telemetry-1.1.0.orig/setup.py 2023-07-27 09:10:05.000000000 +0200
+++ azure-cli-telemetry-1.1.0/setup.py 2024-11-25 08:39:21.976623236 +0100
@@ -40,7 +40,7 @@
classifiers=CLASSIFIERS,
install_requires=[
'applicationinsights>=0.11.1,<0.12',
- 'portalocker>=1.6,<3',
+ 'portalocker>=1.6,<4',
],
packages=[
'azure.cli.telemetry',

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d922379cda1b48952be75fb3bd2ac5e7ceecf569492a6088bab77894c624a278
size 9233

106
azure-cli-telemetry.changes Normal file
View File

@@ -0,0 +1,106 @@
-------------------------------------------------------------------
Mon Nov 25 12:47:21 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Add patch to relax python-portalocker version dependency in setup.py
+ me_relax-portalocker.patch
- Add %{_sitelibdir}/azure/cli directory in %files section
- Drop superflouos azure-cli-core from BuildDepends
- Drop extra LICENSE.txt as upstream now ships its own
- Relax python-portalocker version dependency in Requires
-------------------------------------------------------------------
Wed May 22 10:09:11 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Add azure-cli-core to BuildRequires and Requires
- Remove azure-cli-nspkg from BuildRequires and Requires
- Remove deletion of azure-cli namespace files
-------------------------------------------------------------------
Thu Apr 4 13:16:55 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch package to modern Python Stack on SLE-15
+ Use Python 3.11 on SLE-15 by default
+ Use primary Python version on Tumbleweed
- Switch build system from setuptools to pyproject.toml
+ Add python-pip and python-wheel to BuildRequires
+ Replace %python_build with %pyproject_wheel
+ Replace %python_install with %pyproject_install
+ Update name for dist directory in %files section
-------------------------------------------------------------------
Mon Aug 14 13:13:14 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.1.0
+ For detailed information about changes see the
HISTORY.rst file provided with this package
-------------------------------------------------------------------
Fri Sep 16 09:38:00 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.0.8
+ For detailed information about changes see the
HISTORY.rst file provided with this package
-------------------------------------------------------------------
Thu Aug 4 11:18:35 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.0.7
+ For detailed information about changes see the
HISTORY.rst file provided with this package
- Update Requires from setup.py
-------------------------------------------------------------------
Mon Jun 27 11:05:06 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Add missing python-rpm-macros package to BuildRequires
-------------------------------------------------------------------
Wed Sep 2 12:35:06 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.0.6
+ For detailed information about changes see the
HISTORY.rst file provided with this package
-------------------------------------------------------------------
Thu Oct 24 12:12:41 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.0.4
+ For detailed information about changes see the
HISTORY.rst file provided with this package
- Drop patch to relax version requires in setup.py, it's
not required as the dependencies are managed by RPM
+ act_relax-requires-versions.patch
- Update Requires from setup.py
-------------------------------------------------------------------
Tue Jun 4 09:58:59 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Remove unneccesary %python_expand prefix from %fdupes call
-------------------------------------------------------------------
Tue Apr 16 19:01:40 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- New upstream release
+ Version 1.0.1
+ For detailed information about changes see the
HISTORY.rst file provided with this package
- Bump minimum version for Python Azure SDK namespace
packages to 3.0.0 in BuildRequires and Requires
- Remove python3-devel package from BuildRequires
- Remove unzip package from BuildRequires
- Run fdupes to hardlink duplicate files
+ Add fdupes to BuildRequires
+ Add %fdupes invocation to %install
-------------------------------------------------------------------
Mon Oct 1 11:04:08 UTC 2018 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
+ Version 1.0.0
- Add patch to relax version numbers in install_requires
+ act_relax-requires-versions.patch

79
azure-cli-telemetry.spec Normal file
View File

@@ -0,0 +1,79 @@
#
# spec file for package azure-cli-telemetry
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%if 0%{?suse_version} >= 1600
%define pythons %{primary_python}
%else
%define pythons python311
%endif
%global _sitelibdir %{%{pythons}_sitelib}
Name: azure-cli-telemetry
Version: 1.1.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
Patch: act_relax-portalocker.patch
BuildRequires: %{pythons}-azure-nspkg >= 3.0.0
BuildRequires: %{pythons}-pip
BuildRequires: %{pythons}-setuptools
BuildRequires: %{pythons}-wheel
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: %{pythons}-applicationinsights < 0.12
Requires: %{pythons}-applicationinsights >= 0.11.1
Requires: %{pythons}-azure-nspkg >= 3.0.0
Requires: %{pythons}-portalocker < 4.0
Requires: %{pythons}-portalocker >= 1.6
Requires: azure-cli-core
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}
%patch -P0 -p1
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{_sitelibdir}
%files
%defattr(-,root,root,-)
%doc HISTORY.rst README.rst
%license LICENSE.txt
%dir %{_sitelibdir}/azure/cli
%{_sitelibdir}/azure/cli/telemetry
%{_sitelibdir}/azure_cli_telemetry-*.dist-info
%changelog