From d9a204137602122ff97d0b19edaa67e73787836a11a2e80fc1da8f8aa6a16d46 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 13:35:24 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-context?expand=0&rev=10 --- python-opencensus-context.changes | 5 +++++ python-opencensus-context.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-opencensus-context.changes b/python-opencensus-context.changes index a6e931f..7ecf942 100644 --- a/python-opencensus-context.changes +++ b/python-opencensus-context.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 6 13:32:29 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Tue Mar 5 23:02:35 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-opencensus-context.spec b/python-opencensus-context.spec index faec54b..440f16f 100644 --- a/python-opencensus-context.spec +++ b/python-opencensus-context.spec @@ -17,7 +17,6 @@ %define repo_version 0.11.0 - %{?sle15_python_module_pythons} Name: python-opencensus-context Version: 0.1.3 @@ -26,14 +25,16 @@ Summary: Python in-process context propogation License: Apache-2.0 URL: https://github.com/census-instrumentation/opencensus-python Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{repo_version}.tar.gz#/opencensus-%{repo_version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module contextvars if (%python-base >= 3.6 and %python-base < 3.7)} +BuildRequires: %{python_module contextvars if (%{python}-base >= 3.6 and %{python}-base < 3.7)} +BuildArch: noarch %if 0%{python_version_nodots} == 36 Requires: python-contextvars %endif -BuildArch: noarch %python_subpackages %description @@ -42,7 +43,7 @@ By default, thread local storage is used for Python 2.7, 3.4 and 3.5; contextvars is used for Python >= 3.6, which provides asyncio support. %prep -%setup -q -n opencensus-python-%{repo_version}/context/opencensus-context +%autosetup -p1 -n opencensus-python-%{repo_version}/context/opencensus-context # for discovery to work touch tests/__init__.py