2024-03-06 13:29:49 +00:00
committed by Git OBS Bridge
parent 027871340f
commit e313026d34
2 changed files with 1138 additions and 1210 deletions

View File

@@ -17,7 +17,6 @@
%define repo_version 0.7.12
%{?sle15_python_module_pythons}
Name: python-opencensus-ext-threading
Version: 0.1.2
@@ -29,7 +28,9 @@ Source: https://github.com/census-instrumentation/opencensus-python/arch
# PATCH-FIX-UPSTREAM remove-mock.patch gh#census-instrumentation/opencensus-python#1002
Patch0: remove-mock.patch
BuildRequires: %{python_module opencensus}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-opencensus
@@ -48,10 +49,10 @@ popd
touch tests/__init__.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand # delete common files
rm -rf %{buildroot}%{$python_sitelib}/opencensus/__init__.*
@@ -68,6 +69,7 @@ rm -rf %{buildroot}%{$python_sitelib}/opencensus/ext/__pycache__
%files %{python_files}
%doc CHANGELOG.md README.rst
%license ../../LICENSE
%{python_sitelib}/*
%{python_sitelib}/opencensus/ext/threading
%{python_sitelib}/opencensus_ext_threading-%{version}*-info
%changelog

File diff suppressed because it is too large Load Diff