15
0
2024-03-06 13:35:24 +00:00
committed by Git OBS Bridge
parent 42c96a264e
commit d9a2041376
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 6 13:32:29 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Tue Mar 5 23:02:35 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -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