From 3cb0a0224dee66ab2bf6219f7bb2675b76fb690037d23dec5b70ce0cc188371a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 06:37:42 +0000 Subject: [PATCH] - Inject multibuild to avoid a build cycle. (bsc#1244507) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opentelemetry-sdk?expand=0&rev=24 --- _multibuild | 3 +++ python-opentelemetry-sdk.changes | 5 +++++ python-opentelemetry-sdk.spec | 28 ++++++++++++++++++++++------ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-opentelemetry-sdk.changes b/python-opentelemetry-sdk.changes index e2cb313..5c873f8 100644 --- a/python-opentelemetry-sdk.changes +++ b/python-opentelemetry-sdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 06:37:07 UTC 2025 - Steve Kowalik + +- Inject multibuild to avoid a build cycle. (bsc#1244507) + ------------------------------------------------------------------- Mon May 26 07:38:34 UTC 2025 - Nico Krapp diff --git a/python-opentelemetry-sdk.spec b/python-opentelemetry-sdk.spec index 0d4db5f..566711f 100644 --- a/python-opentelemetry-sdk.spec +++ b/python-opentelemetry-sdk.spec @@ -16,23 +16,32 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %{?sle15_python_module_pythons} -Name: python-opentelemetry-sdk +Name: python-opentelemetry-sdk%{psuffix} Version: 1.33.1 Release: 0 Summary: OpenTelemetry Python SDK License: Apache-2.0 URL: https://github.com/open-telemetry/opentelemetry-python Source: https://files.pythonhosted.org/packages/source/o/opentelemetry-sdk/opentelemetry_sdk-%{version}.tar.gz -BuildRequires: %{python_module flaky} BuildRequires: %{python_module hatchling} -BuildRequires: %{python_module opentelemetry-api = %{version}} -BuildRequires: %{python_module opentelemetry-semantic-conventions = 0.54b1} -BuildRequires: %{python_module opentelemetry-test-utils = 0.54b1} BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +%if %{with test} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module opentelemetry-sdk = %{version}} +BuildRequires: %{python_module opentelemetry-test-utils = 0.54b1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module typing-extensions >= 3.7.4} -BuildRequires: %{python_module wheel} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-opentelemetry-api = %{version} @@ -51,17 +60,24 @@ OpenTelemetry Python SDK for the OpenTelemetry Project