15
0

Accepting request 1155523 from home:glaubitz:branches:devel:languages:python

- Switch package to modern Python Stack on SLE-15
  + Add %{?sle15_python_module_pythons}
  + Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}}
  + Drop build support for Python 2.x

OBS-URL: https://build.opensuse.org/request/show/1155523
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-ext-azure?expand=0&rev=8
This commit is contained in:
2024-03-06 11:44:14 +00:00
committed by Git OBS Bridge
parent 894537c322
commit cb860379a8
2 changed files with 11 additions and 13 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 5 23:04:08 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch package to modern Python Stack on SLE-15
+ Add %{?sle15_python_module_pythons}
+ Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+ Drop build support for Python 2.x
-------------------------------------------------------------------
Tue Oct 18 11:45:21 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-opencensus-ext-azure
#
# Copyright (c) 2022 SUSE LLC
# 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
@@ -17,14 +17,8 @@
%define repo_version 0.11.0
%if 0%{?suse_version} >= 1500
# mirror python-azure-core
%define skip_python2 1
%bcond_with python2
%else
%bcond_with python2
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-opencensus-ext-azure
Version: 1.1.6
Release: 0
@@ -42,10 +36,6 @@ BuildRequires: %{python_module requests >= 2.19.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with python2}
BuildRequires: python-mock
BuildRequires: python-unittest2
%endif
BuildArch: noarch
Requires: python-azure-core >= 1.12.0
Requires: python-azure-identity >= 1.5.0