Blob Blame History Raw
# Older versions of subpackages that are disabled in these conditionals are
# Obsoleted in python3-opentelemetry-contrib-instrumentations; if changing or
# removing a conditional, be sure that those are updated as needed.

# A subpackage needs aio_pika >= 7.2.0, < 10.0.0; python-aio-pika is not
# packaged
%bcond aio_pika 0

# A subpackage needs cassandra-driver >= 3.25, < 4.0, and scylla-driver >=
# 3.24, < 4.0; both are not packaged
%bcond cassandra 0

# A subpackage needs confluent-kafka >= 1.8.2, < 2.3.0; F40 has 1.6.1
# https://bugzilla.redhat.com/show_bug.cgi?id=1697392
%bcond confluent_kafka 0

# Some tests need elasticsearch-dsl; python-elasticsearch-dsl is not packaged
%bcond elasticsearch_dsl 0

# A subpackage needs falcon >= 1.4.1, < 3.1.2; F40 has 4.0.0
%bcond falcon 0

# It seems like we need a newer version of grpc, which would require protobuf4.
# There are several test failures similar to:
#
#   ERROR    grpc._server:_server.py:453 Exception calling application: not
#            enough values to unpack (expected 2, got 1)
%bcond grpc 0

# Some tests need moto ~= 2.0; but python-moto is not packaged
%bcond moto 0

# A subpackage needs protobuf ~= 4.21; F40 has 3.19.6
%bcond protobuf4 0

# A subpackage needs remoulade >= 0.50; python-remoulade is not packaged
%bcond remoulade 0

# A subpackage needs scikit-learn ~= 0.24.0; F40 has 1.3.0
%bcond sklearn 0

# A subpackage needs starlette ~= 0.13.0; F40 has 0.35.1
%bcond starlette 0

# A subpackage needs tortoise-orm >= 0.17.0; python-tortoise-orm is not
# packaged
%bcond tortoise_orm 0

# Some tests need werkzeug == 0.16.1, or at least < 2.2.0; F40 has 3.0.1
#
# We unpinned the werkzeug version in the pyramid instrumentation test
# dependencies (it was pinned to == 0.16.1), but it’s not immediately obvious
# how to update the tests to work with current versions of werkzeug.
#
# The class werkzeug.wrappers.BaseResponse was deprecated in 2.1.0
# (https://github.com/pallets/werkzeug/issues/1963) and removed in 2.2.0
# (https://github.com/pallets/werkzeug/pull/2276).
%bcond werkzeug 0

# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond doc_pdf 1

# See eachdist.ini. Note that this package must have the same version as the
# ”prerel_version” (pre-release version) and “stable_version” in the
# python-opentelemetry package, and the two packages must be updated together.
%global stable_version 1.23.0
%global prerel_version 0.44~b0

Name:           python-opentelemetry-contrib
Version:        %{stable_version}
Epoch:          2
Release:        %autorelease
Summary:        OpenTelemetry instrumentation for Python modules

# Until we get clarification from upstream,
#   Applicability of BSD-3-Clause license?
#   https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1531
# we assume that any of the files in the repository may contain code under
# LICENSE.BSD3, which is BSD-3-Clause, except for packages that carry their own
# LICENSE files.
License:        Apache-2.0 AND BSD-3-Clause
URL:            https://github.com/open-telemetry/opentelemetry-python-contrib
%global srcversion %(echo '%{prerel_version}' | tr -d '~')
Source0:        %{url}/archive/v%{srcversion}/opentelemetry-python-contrib-%{srcversion}.tar.gz

# Man pages hand-written for Fedora in groff_man(7) format based on --help
Source10:       opentelemetry-bootstrap.1
Source11:       opentelemetry-instrument.1

# Support SQLAlchemy 2 (in tests and doc strings)
# https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2160
Patch:          %{url}/pull/2160.patch

# Add missing test dep. on requests for xray propagator
# https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2167
Patch:          %{url}/pull/2167.patch

BuildArch:      noarch

BuildRequires:  python3-devel

# The requirements files pin exact dependency versions and contain many
# unwanted dependencies (linters, coverage analysis tools, etc.), which  makes
# them not very useful. Rather than massively patching or filtering these files
# to generate BuildRequires, it’s easier to maintain a manual list. Besides,
# almost everything that *is* wanted from dev-requirements.txt is brought in by
# the test extras of the subpackages that require it.
#
# See also:
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

# dev-requirements.txt
# Also required via tox.ini
BuildRequires:  %{py3_dist pytest}
# Also required via tox.ini; easier to BR than to patch it out
BuildRequires:  %{py3_dist pytest-benchmark}

%global stable_distinfo %(echo '%{stable_version}' | tr -d '~^').dist-info
%global prerel_distinfo %(echo '%{prerel_version}' | tr -d '~^').dist-info
# See eachdist.ini:
%global prerel_pkgdirs %{shrink:
    %{?with_protobuf4:exporter/opentelemetry-exporter-prometheus-remote-write}
    exporter/opentelemetry-exporter-richconsole
    opentelemetry-instrumentation
    opentelemetry-distro
    propagator/opentelemetry-propagator-ot-trace
    util/opentelemetry-util-http
    instrumentation/opentelemetry-instrumentation-aiohttp-client
    instrumentation/opentelemetry-instrumentation-aiohttp-server
    instrumentation/opentelemetry-instrumentation-aiopg
    %{?with_aio_pika:instrumentation/opentelemetry-instrumentation-aio-pika}
    %{?with_cassandra:instrumentation/opentelemetry-instrumentation-cassandra}
    instrumentation/opentelemetry-instrumentation-asgi
    instrumentation/opentelemetry-instrumentation-asyncio
    instrumentation/opentelemetry-instrumentation-asyncpg
    instrumentation/opentelemetry-instrumentation-aws-lambda
    instrumentation/opentelemetry-instrumentation-boto
    instrumentation/opentelemetry-instrumentation-boto3sqs
    instrumentation/opentelemetry-instrumentation-botocore
    instrumentation/opentelemetry-instrumentation-celery
    %{?with_confluent_kafka:instrumentation/opentelemetry-instrumentation-confluent-kafka}
    instrumentation/opentelemetry-instrumentation-dbapi
    instrumentation/opentelemetry-instrumentation-django
    instrumentation/opentelemetry-instrumentation-elasticsearch
    %{?with_falcon:instrumentation/opentelemetry-instrumentation-falcon}
    instrumentation/opentelemetry-instrumentation-fastapi
    instrumentation/opentelemetry-instrumentation-flask
    %{?with_grpc:instrumentation/opentelemetry-instrumentation-grpc}
    instrumentation/opentelemetry-instrumentation-httpx
    instrumentation/opentelemetry-instrumentation-jinja2
    instrumentation/opentelemetry-instrumentation-kafka-python
    instrumentation/opentelemetry-instrumentation-logging
    instrumentation/opentelemetry-instrumentation-mysql
    instrumentation/opentelemetry-instrumentation-mysqlclient
    instrumentation/opentelemetry-instrumentation-pika
    instrumentation/opentelemetry-instrumentation-psycopg2
    instrumentation/opentelemetry-instrumentation-pymemcache
    instrumentation/opentelemetry-instrumentation-pymongo
    instrumentation/opentelemetry-instrumentation-pymysql
    instrumentation/opentelemetry-instrumentation-pyramid
    instrumentation/opentelemetry-instrumentation-redis
    %{?with_remoulade:instrumentation/opentelemetry-instrumentation-remoulade}
    instrumentation/opentelemetry-instrumentation-requests
    %{?with_sklearn:instrumentation/opentelemetry-instrumentation-sklearn}
    instrumentation/opentelemetry-instrumentation-sqlalchemy
    instrumentation/opentelemetry-instrumentation-sqlite3
    %{?with_starlette:instrumentation/opentelemetry-instrumentation-starlette}
    instrumentation/opentelemetry-instrumentation-system-metrics
    instrumentation/opentelemetry-instrumentation-tornado
    %{?with_tortoise_orm:instrumentation/opentelemetry-instrumentation-tortoiseorm}
    instrumentation/opentelemetry-instrumentation-urllib
    instrumentation/opentelemetry-instrumentation-urllib3
    instrumentation/opentelemetry-instrumentation-wsgi
    opentelemetry-contrib-instrumentations
    %{nil}}

%description
OpenTelemetry instrumentation for Python modules.


%package doc
Summary:        Documentation for OpenTelemetry Python Contrib packages
Version:        %{stable_version}

%if %{with doc_pdf}
BuildRequires:  make
BuildRequires:  python3-sphinx-latex
BuildRequires:  latexmk

# docs-requirements.txt
BuildRequires:  %{py3_dist sphinx}
# No need for sphinx-rtd-theme since we don’t build HTML
BuildRequires:  %{py3_dist sphinx-autodoc-typehints}
%endif

%description doc
This package provides documentation for OpenTelemetry Python Contrib packages.


%if %{with protobuf4}
%package -n python3-opentelemetry-exporter-prometheus-remote-write
Summary:        Prometheus Remote Write Metrics Exporter for OpenTelemetry
Version:        %{prerel_version}

%description -n python3-opentelemetry-exporter-prometheus-remote-write
This package contains an exporter to send metrics from the OpenTelemetry Python
SDK directly to a Prometheus Remote Write integrated backend (such as Cortex or
Thanos) without having to run an instance of the Prometheus server.
%endif


%package -n python3-opentelemetry-exporter-richconsole
Summary:        Rich Console Exporter for OpenTelemetry
Version:        %{prerel_version}

%description -n python3-opentelemetry-exporter-richconsole
This library is a console exporter using the Rich tree view. When used with a
batch span processor, the rich console exporter will show the trace as a tree
and all related spans as children within the tree, including properties.


%package -n python3-opentelemetry-instrumentation
Summary:        Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python
Version:        %{prerel_version}
License:        Apache-2.0

# From python-opentelemetry:
BuildRequires:  %{py3_dist opentelemetry-test-utils}
# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Recommends:     python3-opentelemetry-distro = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation
This package provides a couple of commands that help automatically instruments
a program.


%package -n python3-opentelemetry-distro
Summary:        OpenTelemetry Python Distro
Version:        %{prerel_version}

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-distro
This package provides entrypoints to configure OpenTelemetry.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-distro -i %%{python3_sitelib}/opentelemetry_distro-%%{prerel_distinfo} otlp
%package -n python3-opentelemetry-distro+otlp
Summary:        Metapackage for OpenTelemetry otlp extras
Version:        %{prerel_version}

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-distro = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-distro+otlp
This is a metapackage bringing in “otlp” extras requires for
python3-opentelemetry-distro. It makes sure the dependencies are installed.

%files -n python3-opentelemetry-distro+otlp
%ghost %{python3_sitelib}/opentelemetry_distro-%{prerel_distinfo}


%package -n python3-opentelemetry-propagator-ot-trace
Summary:        OT Trace Propagator for OpenTelemetry
Version:        %{prerel_version}

%description -n python3-opentelemetry-propagator-ot-trace
OpenTelemetry OT Trace Propagator.


%package -n python3-opentelemetry-util-http
Summary:        Web util for OpenTelemetry
Version:        %{prerel_version}

%description -n python3-opentelemetry-util-http
This library provides ASGI, WSGI middleware and other HTTP-related
functionality that is common to instrumented web frameworks (such as Django,
Starlette, FastAPI, etc.) to track requests timing through OpenTelemetry.


%package -n python3-opentelemetry-instrumentation-aiohttp-client
Summary:        OpenTelemetry aiohttp client instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiohttp-client
This library allows tracing HTTP requests made by the aiohttp client library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-aiohttp-client -i %%{python3_sitelib}/opentelemetry_instrumentation_aiohttp_client-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-aiohttp-client+instruments
Summary:        Metapackage for OpenTelemetry aiohttp client instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-aiohttp-client = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiohttp-client+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-aiohttp-client. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-aiohttp-client+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_aiohttp_client-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-aiohttp-server
Summary:        OpenTelemetry aiohttp server instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiohttp-server
This library allows tracing HTTP requests made by the aiohttp server library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-aiohttp-server -i %%{python3_sitelib}/opentelemetry_instrumentation_aiohttp_server-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-aiohttp-server+instruments
Summary:        Metapackage for OpenTelemetry aiohttp server instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-aiohttp-server = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiohttp-server+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-aiohttp-server. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-aiohttp-server+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_aiohttp_server-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-aiopg
Summary:        OpenTelemetry aiopg instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiopg
OpenTelemetry aiopg instrumentation.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-aiopg -i %%{python3_sitelib}/opentelemetry_instrumentation_aiopg-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-aiopg+instruments
Summary:        Metapackage for OpenTelemetry aiopg instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-aiopg = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-aiopg+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-aiopg. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-aiopg+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_aiopg-%{prerel_distinfo}


%if %{with aio_pika}
%package -n python3-opentelemetry-instrumentation-aio-pika
Summary:        OpenTelemetry Aio-pika instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-aio-pika
This library allows tracing requests made by the Aio-pika library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-aio-pika -i %%{python3_sitelib}/opentelemetry_instrumentation_aio_pika-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-aio-pika+instruments
Summary:        Metapackage for OpenTelemetry Aio-pika instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-aio-pika = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-aio-pika+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-aio-pika. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-aio-pika+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_aio_pika-%{prerel_distinfo}
%endif


%if %{with cassandra}
%package -n python3-opentelemetry-instrumentation-cassandra
Summary:        OpenTelemetry Cassandra instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-cassandra
Instrumentation for Cassandra (cassandra-driver and scylla-driver libraries).

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-cassandra -i %%{python3_sitelib}/opentelemetry_instrumentation_cassandra-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-cassandra+instruments
Summary:        Metapackage for OpenTelemetry Cassandra Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-cassandra = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-cassandra+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-cassandra. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-cassandra+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_cassandra-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-asgi
Summary:        ASGI instrumentation for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-asgi
This library provides a ASGI middleware that can be used on any ASGI framework
(such as Django, Starlette, FastAPI or Quart) to track requests timing through
OpenTelemetry.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-asgi -i %%{python3_sitelib}/opentelemetry_instrumentation_asgi-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-asgi+instruments
Summary:        Metapackage for OpenTelemetry ASGI instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-asgi = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-asgi+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-asgi. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-asgi+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_asgi-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-asyncio
Summary:        OpenTelemetry instrumentation for asyncio
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-asyncio
AsyncioInstrumentor: Tracing Requests Made by the Asyncio Library

The opentelemetry-instrumentation-asyncio package allows tracing asyncio
applications. It also includes metrics for duration and counts of coroutines
and futures. Metrics are generated even if coroutines are not traced.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-asyncio -i %%{python3_sitelib}/opentelemetry_instrumentation_asyncio-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-asyncio+instruments
Summary:        Metapackage for OpenTelemetry asyncio instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-asyncio = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-asyncio+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-asyncio. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-asyncio+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_asyncio-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-asyncpg
Summary:        OpenTelemetry instrumentation for AsyncPG
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-asyncpg
This library allows tracing PostgreSQL queries made by the asyncpg library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-asyncpg -i %%{python3_sitelib}/opentelemetry_instrumentation_asyncpg-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-asyncpg+instruments
Summary:        Metapackage for OpenTelemetry AsyncPG instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-asyncpg = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-asyncpg+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-asyncpg. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-asyncpg+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_asyncpg-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-aws-lambda
Summary:        OpenTelemetry AWS Lambda instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-aws-lambda
This library provides an Instrumentor used to trace requests made by the Lambda
functions on the AWS Lambda service.

It also provides scripts used by AWS Lambda Layers to automatically initialize
the OpenTelemetry SDK. Learn more on the AWS Distro for OpenTelemetry (ADOT)
documentation for the Python Lambda Layer.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-aws-lambda -i %%{python3_sitelib}/opentelemetry_instrumentation_aws_lambda-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-aws-lambda+instruments
Summary:        Metapackage for OpenTelemetry AWS Lambda instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-aws-lambda = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-aws-lambda+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-aws-lambda. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-aws-lambda+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_aws_lambda-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-boto
Summary:        OpenTelemetry Boto instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-boto
This library allows tracing requests made by the Boto library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-boto -i %%{python3_sitelib}/opentelemetry_instrumentation_boto-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-boto+instruments
Summary:        Metapackage for OpenTelemetry Boto instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-boto = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-boto+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-boto. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-boto+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_boto-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-boto3sqs
Summary:        Boto3 SQS service tracing for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-boto3sqs
This library allows tracing requests made by the Boto3 library to the SQS
service.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-boto3sqs -i %%{python3_sitelib}/opentelemetry_instrumentation_boto3sqs-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-boto3sqs+instruments
Summary:        Metapackage for OpenTelemetry Boto3 SQS instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-boto3sqs = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-boto3sqs+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-boto3sqs. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-boto3sqs+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_boto3sqs-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-botocore
Summary:        OpenTelemetry Botocore instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-botocore
This library allows tracing requests made by the Botocore library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-botocore -i %%{python3_sitelib}/opentelemetry_instrumentation_botocore-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-botocore+instruments
Summary:        Metapackage for OpenTelemetry Botocore instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-botocore = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-botocore+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-botocore. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-botocore+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_botocore-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-celery
Summary:        OpenTelemetry Celery Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-celery
Instrumentation for Celery.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-celery -i %%{python3_sitelib}/opentelemetry_instrumentation_celery-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-celery+instruments
Summary:        Metapackage for OpenTelemetry Celery instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-celery = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-celery+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-celery. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-celery+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_celery-%{prerel_distinfo}


%if %{with confluent_kafka}
%package -n python3-opentelemetry-instrumentation-confluent-kafka
Summary:        OpenTelemetry Confluent Kafka instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-confluent-kafka
This library allows tracing requests made by the confluent-kafka library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-confluent-kafka -i %%{python3_sitelib}/opentelemetry_instrumentation_confluent_kafka-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-confluent-kafka+instruments
Summary:        Metapackage for OpenTelemetry Confluent Kafka instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-confluent-kafka = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-confluent-kafka+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-confluent-kafka. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-confluent-kafka+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_confluent_kafka-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-dbapi
Summary:        OpenTelemetry Database API instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-dbapi
OpenTelemetry Database API instrumentation.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-dbapi -i %%{python3_sitelib}/opentelemetry_instrumentation_dbapi-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-dbapi+instruments
Summary:        Metapackage for OpenTelemetry Database API instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-dbapi+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-dbapi. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-dbapi+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_dbapi-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-django
Summary:        OpenTelemetry Instrumentation for Django
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-django
This library allows tracing requests for Django applications.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-django -i %%{python3_sitelib}/opentelemetry_instrumentation_django-%%{prerel_distinfo} instruments asgi
%package -n python3-opentelemetry-instrumentation-django+instruments
Summary:        Metapackage for OpenTelemetry Django instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-django = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-django+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-django. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-django+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_django-%{prerel_distinfo}

%package -n python3-opentelemetry-instrumentation-django+asgi
Summary:        Metapackage for OpenTelemetry Django ASGI extras
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-django = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-django+asgi
This is a metapackage bringing in “asgi” extras requires for
python3-opentelemetry-instrumentation-django. It makes sure the dependencies
are installed.

%files -n python3-opentelemetry-instrumentation-django+asgi
%ghost %{python3_sitelib}/opentelemetry_instrumentation_django-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-elasticsearch
Summary:        OpenTelemetry elasticsearch instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-elasticsearch
This library allows tracing elasticsearch made by the elasticsearch library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-elasticsearch -i %%{python3_sitelib}/opentelemetry_instrumentation_elasticsearch-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-elasticsearch+instruments
Summary:        Metapackage for OpenTelemetry elasticsearch instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-elasticsearch = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-elasticsearch+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-elasticsearch. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-elasticsearch+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_elasticsearch-%{prerel_distinfo}


%if %{with falcon}
%package -n python3-opentelemetry-instrumentation-falcon
Summary:        Falcon instrumentation for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-falcon
This library builds on the OpenTelemetry WSGI middleware to track web requests
in Falcon applications.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-falcon -i %%{python3_sitelib}/opentelemetry_instrumentation_falcon-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-falcon+instruments
Summary:        Metapackage for OpenTelemetry Falcon instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-falcon = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-falcon+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-falcon. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-falcon+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_falcon-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-fastapi
Summary:        OpenTelemetry FastAPI Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-asgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-fastapi
This library provides automatic and manual instrumentation of FastAPI web
frameworks, instrumenting http requests served by applications utilizing the
framework.

auto-instrumentation using the opentelemetry-instrumentation package is also
supported.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-fastapi -i %%{python3_sitelib}/opentelemetry_instrumentation_fastapi-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-fastapi+instruments
Summary:        Metapackage for OpenTelemetry FastAPI instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-fastapi = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-fastapi+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-fastapi. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-fastapi+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_fastapi-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-flask
Summary:        Flask instrumentation for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-flask
This library builds on the OpenTelemetry WSGI middleware to track web requests
in Flask applications.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-flask -i %%{python3_sitelib}/opentelemetry_instrumentation_flask-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-flask+instruments
Summary:        Metapackage for OpenTelemetry Flask instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-flask = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-flask+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-flask. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-flask+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_flask-%{prerel_distinfo}


%if %{with grpc}
%package -n python3-opentelemetry-instrumentation-grpc
Summary:        OpenTelemetry gRPC instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-grpc
Client and server interceptors for gRPC Python.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-grpc -i %%{python3_sitelib}/opentelemetry_instrumentation_grpc-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-grpc+instruments
Summary:        Metapackage for OpenTelemetry gRPC instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-grpc = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-grpc+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-grpc. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-grpc+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_grpc-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-httpx
Summary:        OpenTelemetry HTTPX Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# This is in the top-level tox.ini, but only for an environment specific to a
# version of httpx that we don’t have.
BuildRequires:  %{py3_dist respx}

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-httpx
This library allows tracing HTTP requests made by the httpx library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-httpx -i %%{python3_sitelib}/opentelemetry_instrumentation_httpx-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-httpx+instruments
Summary:        Metapackage for OpenTelemetry HTTPX instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-httpx = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-httpx+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-httpx. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-httpx+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_httpx-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-jinja2
Summary:        OpenTelemetry jinja2 instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-jinja2
OpenTelemetry jinja2 integration.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-jinja2 -i %%{python3_sitelib}/opentelemetry_instrumentation_jinja2-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-jinja2+instruments
Summary:        Metapackage for OpenTelemetry jinja2 instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-jinja2 = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-jinja2+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-jinja2. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-jinja2+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_jinja2-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-kafka-python
Summary:        OpenTelemetry Kafka-Python instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-kafka-python
OpenTelemetry kafka-python integration

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-kafka-python -i %%{python3_sitelib}/opentelemetry_instrumentation_kafka_python-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-kafka-python+instruments
Summary:        Metapackage for OpenTelemetry Kafka-Python instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-kafka-python = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-kafka-python+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-kafka-python. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-kafka-python+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_kafka_python-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-logging
Summary:        OpenTelemetry Logging instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-logging
OpenTelemetry logging integration.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-logging -i %%{python3_sitelib}/opentelemetry_instrumentation_logging-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-logging+instruments
Summary:        Metapackage for OpenTelemetry Logging instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-logging = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-logging+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-logging. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-logging+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_logging-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-mysql
Summary:        OpenTelemetry MySQL instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-mysql
Instrumentation with MySQL that supports the mysql-connector library and is
specified to trace_integration using ‘MySQL’.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-mysql -i %%{python3_sitelib}/opentelemetry_instrumentation_mysql-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-mysql+instruments
Summary:        Metapackage for OpenTelemetry MySQL instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-mysql = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-mysql+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-mysql. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-mysql+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_mysql-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-mysqlclient
Summary:        OpenTelemetry mysqlclient instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-mysqlclient
OpenTelemetry mysqlclient instrumentation.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-mysqlclient -i %%{python3_sitelib}/opentelemetry_instrumentation_mysqlclient-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-mysqlclient+instruments
Summary:        Metapackage for OpenTelemetry mysqlclient instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-mysqlclient = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-mysqlclient+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-mysqlclient. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-mysqlclient+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_mysqlclient-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-pika
Summary:        OpenTelemetry pika instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

%description -n python3-opentelemetry-instrumentation-pika
This library allows tracing requests made by the pika library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-pika -i %%{python3_sitelib}/opentelemetry_instrumentation_pika-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-pika+instruments
Summary:        Metapackage for OpenTelemetry pika instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-pika = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-pika+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-pika. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-pika+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_pika-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-psycopg2
Summary:        OpenTelemetry psycopg2 instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-psycopg2
OpenTelemetry Psycopg Instrumentation.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-psycopg2 -i %%{python3_sitelib}/opentelemetry_instrumentation_psycopg2-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-psycopg2+instruments
Summary:        Metapackage for OpenTelemetry psycopg2 instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-psycopg2 = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-psycopg2+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-psycopg2. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-psycopg2+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_psycopg2-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-pymemcache
Summary:        OpenTelemetry pymemcache instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymemcache
OpenTelemetry pymemcache Instrumentation

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-pymemcache -i %%{python3_sitelib}/opentelemetry_instrumentation_pymemcache-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-pymemcache+instruments
Summary:        Metapackage for OpenTelemetry pymemcache instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-pymemcache = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymemcache+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-pymemcache. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-pymemcache+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_pymemcache-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-pymongo
Summary:        OpenTelemetry pymongo instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymongo
OpenTelemetry pymongo Instrumentation

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-pymongo -i %%{python3_sitelib}/opentelemetry_instrumentation_pymongo-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-pymongo+instruments
Summary:        Metapackage for OpenTelemetry pymongo instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-pymongo = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymongo+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-pymongo. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-pymongo+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_pymongo-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-pymysql
Summary:        OpenTelemetry PyMySQL instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymysql
OpenTelemetry PyMySQL Instrumentation

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-pymysql -i %%{python3_sitelib}/opentelemetry_instrumentation_pymysql-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-pymysql+instruments
Summary:        Metapackage for OpenTelemetry PyMySQL instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-pymysql = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-pymysql+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-pymysql. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-pymysql+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_pymysql-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-pyramid
Summary:        OpenTelemetry Pyramid instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-pyramid
OpenTelemetry Pyramid Instrumentation

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-pyramid -i %%{python3_sitelib}/opentelemetry_instrumentation_pyramid-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-pyramid+instruments
Summary:        Metapackage for OpenTelemetry Pyramid instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-pyramid = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-pyramid+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-pyramid. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-pyramid+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_pyramid-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-redis
Summary:        OpenTelemetry Redis instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-redis
This library allows tracing requests made by the Redis library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-redis -i %%{python3_sitelib}/opentelemetry_instrumentation_redis-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-redis+instruments
Summary:        Metapackage for OpenTelemetry Redis instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-redis = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-redis+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-redis. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-redis+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_redis-%{prerel_distinfo}


%if %{with remoulade}
%package -n python3-opentelemetry-instrumentation-remoulade
Summary:        OpenTelemetry Remoulade instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-remoulade
This library allows tracing requests made by the Remoulade library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-remoulade -i %%{python3_sitelib}/opentelemetry_instrumentation_remoulade-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-remoulade+instruments
Summary:        Metapackage for OpenTelemetry Remoulade instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-remoulade = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-remoulade+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-remoulade. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-remoulade+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_remoulade-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-requests
Summary:        OpenTelemetry requests instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-requests
This library allows tracing HTTP requests made by the requests library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-requests -i %%{python3_sitelib}/opentelemetry_instrumentation_requests-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-requests+instruments
Summary:        Metapackage for OpenTelemetry requests instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-requests = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-requests+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-requests. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-requests+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_requests-%{prerel_distinfo}


%if %{with sklearn}
%package -n python3-opentelemetry-instrumentation-sklearn
Summary:        OpenTelemetry sklearn instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-sklearn
This library allows tracing HTTP requests made by the scikit-learn library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-sklearn -i %%{python3_sitelib}/opentelemetry_instrumentation_sklearn-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-sklearn+instruments
Summary:        Metapackage for OpenTelemetry sklearn instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-sklearn = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-sklearn+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-sklearn. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-sklearn+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_sklearn-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-sqlalchemy
Summary:        OpenTelemetry SQLAlchemy instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# This is needed on s390x only, but it doesn’t hurt to have it on the other
# architectures.
BuildRequires:  %{py3_dist greenlet}
# tox.ini (sqlachemy14 environment):
BuildRequires:  %{py3_dist aiosqlite}

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-sqlalchemy
This library allows tracing requests made by the SQLAlchemy library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-sqlalchemy -i %%{python3_sitelib}/opentelemetry_instrumentation_sqlalchemy-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-sqlalchemy+instruments
Summary:        Metapackage for OpenTelemetry SQLAlchemy instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-sqlalchemy = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-sqlalchemy+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-sqlalchemy. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-sqlalchemy+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_sqlalchemy-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-sqlite3
Summary:        OpenTelemetry SQLite3 instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-sqlite3
OpenTelemetry SQLite3 Instrumentation.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-sqlite3 -i %%{python3_sitelib}/opentelemetry_instrumentation_sqlite3-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-sqlite3+instruments
Summary:        Metapackage for OpenTelemetry SQLite3 instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-sqlite3 = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-sqlite3+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-sqlite3. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-sqlite3+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_sqlite3-%{prerel_distinfo}


%if %{with starlette}
%package -n python3-opentelemetry-instrumentation-starlette
Summary:        OpenTelemetry Starlette Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-asgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-starlette
This library provides automatic and manual instrumentation of Starlette web
frameworks, instrumenting http requests served by applications utilizing the
framework.

Auto-instrumentation using the opentelemetry-instrumentation package is also
supported.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-starlette -i %%{python3_sitelib}/opentelemetry_instrumentation_starlette-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-starlette+instruments
Summary:        Metapackage for OpenTelemetry Starlette instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-starlette = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-starlette+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-starlette. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-starlette+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_starlette-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-system-metrics
Summary:        OpenTelemetry System Metrics Instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

%description -n python3-opentelemetry-instrumentation-system-metrics
Instrumentation to collect system performance metrics.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-system-metrics -i %%{python3_sitelib}/opentelemetry_instrumentation_system_metrics-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-system-metrics+instruments
Summary:        Metapackage for OpenTelemetry System Metrics instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-system-metrics = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-system-metrics+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-system-metrics. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-system-metrics+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_system_metrics-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-tornado
Summary:        Tornado instrumentation for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-tornado
This library builds on the OpenTelemetry WSGI middleware to track web requests
in Tornado applications.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-tornado -i %%{python3_sitelib}/opentelemetry_instrumentation_tornado-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-tornado+instruments
Summary:        Metapackage for OpenTelemetry Tornado instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-tornado = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-tornado+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-tornado. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-tornado+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_tornado-%{prerel_distinfo}


%if %{with tortoise_orm}
%package -n python3-opentelemetry-instrumentation-tortoiseorm
Summary:        OpenTelemetry Instrumentation for Tortoise ORM
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-tortoiseorm
This library allows tracing queries made by tortoise ORM backends, mysql,
postgres and sqlite.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-tortoiseorm -i %%{python3_sitelib}/opentelemetry_instrumentation_tortoiseorm-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-tortoiseorm+instruments
Summary:        Metapackage for OpenTelemetry Tortoise ORM instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-tortoiseorm = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-tortoiseorm+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-tortoiseorm. It makes sure the
dependencies (the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-tortoiseorm+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_tortoiseorm-%{prerel_distinfo}
%endif


%package -n python3-opentelemetry-instrumentation-urllib
Summary:        OpenTelemetry urllib instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-urllib
This library allows tracing HTTP requests made by the urllib library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-urllib -i %%{python3_sitelib}/opentelemetry_instrumentation_urllib-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-urllib+instruments
Summary:        Metapackage for OpenTelemetry urllib instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-urllib = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-urllib+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-urllib. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-urllib+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_urllib-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-urllib3
Summary:        OpenTelemetry urllib3 instrumentation
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-urllib3
This library allows tracing HTTP requests made by the urllib3 library.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-urllib3 -i %%{python3_sitelib}/opentelemetry_instrumentation_urllib3-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-urllib3+instruments
Summary:        Metapackage for OpenTelemetry urllib3 instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-urllib3 = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-urllib3+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-urllib3. It makes sure the dependencies
(the packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-urllib3+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_urllib3-%{prerel_distinfo}


%package -n python3-opentelemetry-instrumentation-wsgi
Summary:        WSGI Middleware for OpenTelemetry
Version:        %{prerel_version}
License:        Apache-2.0

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
Requires:       python3-opentelemetry-instrumentation = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-util-http = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-instrumentation-wsgi
This library provides a WSGI middleware that can be used on any WSGI framework
(such as Django / Flask) to track requests timing through OpenTelemetry.

# This is based on:
#   %%pyproject_extras_subpkg -n python3-opentelemetry-instrumentation-wsgi -i %%{python3_sitelib}/opentelemetry_instrumentation_wsgi-%%{prerel_distinfo} instruments
%package -n python3-opentelemetry-instrumentation-wsgi+instruments
Summary:        Metapackage for OpenTelemetry WSGI instrumented packages
Version:        %{prerel_version}
License:        Apache-2.0

Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n python3-opentelemetry-instrumentation-wsgi+instruments
This is a metapackage bringing in “instruments” extras requires for
python3-opentelemetry-instrumentation-wsgi. It makes sure the dependencies (the
packages that are instrumented) are installed.

%files -n python3-opentelemetry-instrumentation-wsgi+instruments
%ghost %{python3_sitelib}/opentelemetry_instrumentation_wsgi-%{prerel_distinfo}


%package -n python3-opentelemetry-contrib-instrumentations
Summary:        OpenTelemetry Contrib Instrumentation Packages
Version:        %{prerel_version}
License:        Apache-2.0

# Removed upstream:
# https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1366
Obsoletes:      python3-opentelemetry-exporter-datadog < 0.36~b0-1
Obsoletes:      python3-opentelemetry-exporter-datadog+instruments < 0.36~b0-1
# Removed upstream:
# https://github.com/open-telemetry/opentelemetry-python-contrib/commit/c60e46d1d4f43a9172b48505eceab299291b80e1
Obsoletes:      python3-opentelemetry-resource-detector-container < 0.42~b0-33

# Ensure we have fully-versioned dependencies (to release) across subpackages
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
%if %{with aio_pika}
Requires:       python3-opentelemetry-instrumentation-aio-pika = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-aio-pika < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-aio-pika+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-aiohttp-client = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-aiohttp-server = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-aiopg = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-asgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-asyncio = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-asyncpg = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-aws-lambda = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-boto = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-boto3sqs = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-botocore = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with cassandra}
Requires:       python3-opentelemetry-instrumentation-cassandra = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-cassandra < 0.41~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-cassandra+instruments < 0.41~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-celery = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with confluent_kafka}
Requires:       python3-opentelemetry-instrumentation-confluent-kafka = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-confluent-kafka < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-confluent-kafka+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-dbapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-django = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-elasticsearch = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with falcon}
Requires:       python3-opentelemetry-instrumentation-falcon = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-falcon < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-falcon+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-fastapi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-flask = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with grpc}
Requires:       python3-opentelemetry-instrumentation-grpc = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-grpc < 0.41~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-grpc+instruments < 0.41~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-httpx = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-jinja2 = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-kafka-python = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-logging = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-mysql = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-mysqlclient = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-pika = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-psycopg2 = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-pymemcache = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-pymongo = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-pymysql = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-pyramid = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-redis = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with remoulade}
Requires:       python3-opentelemetry-instrumentation-remoulade = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-remoulade < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-remoulade+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-requests = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with sklearn}
Requires:       python3-opentelemetry-instrumentation-sklearn = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-sklearn < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-sklearn+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-sqlalchemy = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-sqlite3 = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with starlette}
Requires:       python3-opentelemetry-instrumentation-starlette = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-starlette < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-starlette+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-system-metrics = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-tornado = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%if %{with tortoise_orm}
Requires:       python3-opentelemetry-instrumentation-tortoiseorm = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
%else
Obsoletes:      python3-opentelemetry-instrumentation-tortoiseorm < 0.36~b0-1
Obsoletes:      python3-opentelemetry-instrumentation-tortoiseorm+instruments < 0.36~b0-1
%endif
Requires:       python3-opentelemetry-instrumentation-urllib = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-urllib3 = %{?epoch:%{epoch}:}%{prerel_version}-%{release}
Requires:       python3-opentelemetry-instrumentation-wsgi = %{?epoch:%{epoch}:}%{prerel_version}-%{release}

%description -n python3-opentelemetry-contrib-instrumentations
This package installs all instrumentation packages hosted by the OpenTelemetry
Python Contrib repository, except those with dependency version requirements
that could not be satisfied.


%prep
%autosetup -n opentelemetry-python-contrib-%{srcversion} -p1

# Un-pin test dependencies that were pinned to exact versions but perhaps
# habitually rather than for some concrete reason.
#
# https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1291
# Unpinning is not good enough; see the werkzeug build conditonal
sed -r -i 's/("werkzeug)[[:blank:]]*==[^"]+/\1/' \
    instrumentation/opentelemetry-instrumentation-pyramid/pyproject.toml

# Some tests (and docs-requirements.txt) pin markupsafe==2.0.1. See:
#
#   Fixing build failures
#   https://github.com/open-telemetry/opentelemetry-python-contrib/pull/928
#     temporary fix. we should update the jinja, flask deps
#     See https://github.com/pallets/markupsafe/issues/282
#     breaking change introduced in markupsafe causes jinja, flask to break
#
# We can’t respect this, but we also don’t need to because we have
# appropriately updated versions of jinja and flask too.
#
# The find-then-modify pattern keeps us from discarding mtimes on any sources
# that do not need modification.
find . -type f \( -name '*.txt' -o -name '*.toml' \) -exec \
    gawk '/markupsafe[[:blank:]]*==/ { print FILENAME }' '{}' '+' |
  xargs -r -t sed -r -i 's/(markupsafe[[:blank:]]*)==/\1>=/'

# FastAPI is pinned to <= 0.90.1 in commit
# bb41b4600afd56abeb084af2adfc3d6628311f5b (PR#1664) in order to fix CI
# failures (upstream bug #1663). We can’t respect this, of course, so we un-pin
# it and deal with the consequences.
#
# The find-then-modify pattern keeps us from discarding mtimes on any sources
# that do not need modification.
find . -type f \( -name '*.txt' -o -name '*.toml' -o -name '*.py' \) -exec \
    gawk '/fastapi[[:blank:]]*</ { print FILENAME }' '{}' '+' |
  xargs -r -t sed -r -i \
      's/(fastapi)[[:blank:]]*<=?[[:blank:]]*[[:digit:].]+/\1/'

# The python3-opentelemetry-contrib-instrumentations subpackage will depend on
# *all* instrumentation subpackages; patch out the dependencies on those that
# we were not able to build due to dependency issues.
for omit in \
    %{?!with_aio_pika:aio-pika} \
    %{?!with_cassandra:cassandra} \
    %{?!with_confluent_kafka:confluent-kafka} \
    %{?!with_falcon:falcon} \
    %{?!with_grpc:grpc} \
    %{?!with_remoulade:remoulade} \
    %{?!with_sklearn:sklearn} \
    %{?!with_starlette:starlette} \
    %{?!with_tortoise_orm:tortoiseorm} \
    %{nil}
do
  sed -r -i \
      "s/^([[:blank:]]*)(\"opentelemetry-instrumentation-${omit}==)/\1# \2/" \
      opentelemetry-contrib-instrumentations/pyproject.toml
done

# Drop intersphinx mappings, since we can’t download remote inventories and
# can’t easily produce working hyperlinks from inventories in local
# documentation packages.
echo 'intersphinx_mapping.clear()' >> docs/conf.py


%generate_buildrequires
# We filter generated BR’s to avoid listing those that are provided by packages
# built in this spec file. For easier inspection, we also reorder and
# de-duplicate them.
(
  for pkgdir in %{prerel_pkgdirs}
  do
    pushd "${pkgdir}" >/dev/null
    extras='test'
    if echo "${pkgdir}" | grep -E '^instrumentation/' >/dev/null
    then
      extras="${extras},instruments"
    fi
    case "${pkgdir}" in
%if %{without elasticsearch_dsl}
    instrumentation/opentelemetry-instrumentation-elasticsearch)
      # Can’t run the tests
      extras='instruments'
      ;;
%endif
%if %{without moto}
    instrumentation/opentelemetry-instrumentation-boto|instrumentation/opentelemetry-instrumentation-botocore)
      # Can’t run the tests
      extras='instruments'
      ;;
    instrumentation/opentelemetry-instrumentation-django)
      extras="${extras},asgi"
      ;;
%endif
%if %{without werkzeug}
    instrumentation/opentelemetry-instrumentation-pyramid)
      # Can’t run the tests
      extras='instruments'
      ;;
%endif
    esac
    %pyproject_buildrequires -x "${extras}"
    popd >/dev/null
  done
) | sed -r \
    -e '/\bopentelemetry-instrumentation\b/d' \
    -e '/\bopentelemetry-util-http\b/d' \
  | sort -u


%build
for pkgdir in %{prerel_pkgdirs}
do
  pushd "${pkgdir}"
  %pyproject_wheel
  popd
done

%if %{with doc_pdf}
# As docs-requirements.txt notes:
#   Need to install the api/sdk in the venv for autodoc. Modifying sys.path
#   doesn't work for pkg_resources.
# The problem is that the opentelemetry namespace package is found both in the
# local paths (added to sys.path by docs/conf.py) and in the build
# environment’s global site-packages; modifying PYTHONPATH allows one or the
# other to be found, but does not ”overlay” them. For example, if an
# ”opentelemetry“ without “opentelemetry.instrumentation” is found first, then
# “opentelemetry.instrumentation” will not be found, even if it exists
# elsewhere in the Python path.
#
# Our workaround is to shove everything into one directory as it would be in
# the installed system.
OVERLAYDIR="${PWD}/docs/_overlay"
rm -vrf "${OVERLAYDIR}"
mkdir -p "${OVERLAYDIR}"
cp -rvp %{python3_sitelib}/opentelemetry* "${OVERLAYDIR}/"
# Actually installing the wheels would be more “proper,” but these packages
# don’t have generated code or compiled extensions, so simply copying the
# sources will work here.
for pkgdir in %{prerel_pkgdirs}
do
  cp -rvp "${pkgdir}/src/opentelemetry" "${OVERLAYDIR}/"
done

PYTHONPATH="${OVERLAYDIR}" \
    %make_build -C docs latex SPHINXOPTS='-j%{?_smp_build_ncpus}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install

install -t '%{buildroot}%{_mandir}/man1' -p -m 0644 -D \
    '%{SOURCE10}' '%{SOURCE11}'


%check
for pkgdir in %{prerel_pkgdirs}
do
  unset k
  unset ignore

  ignore="${ignore-} --ignore-glob=*benchmark*"

  case "${pkgdir}" in
  instrumentation/opentelemetry-instrumentation-aiohttp-client)
    # These tests require network access.
    k="${k-}${k+ and }not (TestAioHttpIntegration and test_credential_removal)"
    # This is some kind of metadata issue with
    # pkg_resources.iter_entry_points(). It is probably specific to the RPM
    # build environment. See also the similar test skips in
    # python-opentelemetry.
    k="${k-}${k+ and }not (TestLoadingAioHttpInstrumentor and test_loading_instrumentor)"
    ;;
  instrumentation/opentelemetry-instrumentation-fastapi)
    # These seem to be timing-dependent...?
    k="${k-}${k+ and }not (TestAutoInstrumentation and test_basic_post_request_metric_success)"
    k="${k-}${k+ and }not (TestAutoInstrumentationHooks and test_basic_metric_success)"
    k="${k-}${k+ and }not (TestFastAPIManualInstrumentation and test_basic_metric_success)"
    k="${k-}${k+ and }not (TestFastAPIManualInstrumentationHooks and test_basic_post_request_metric_success)"
    k="${k-}${k+ and }not (TestFastAPIManualInstrumentationHooks and test_basic_post_request_metric_success)"
    ;;
%if %{without elasticsearch_dsl}
  # Can’t run the tests; do an import-only “smoke test” instead.
  instrumentation/opentelemetry-instrumentation-elasticsearch)
    %{py3_check_import opentelemetry.instrumentation.elasticsearch
      opentelemetry.instrumentation.elasticsearch.package
      opentelemetry.instrumentation.elasticsearch.version}
    continue
    ;;
%endif
%if %{without moto}
  # Can’t run the tests; do an import-only “smoke test” instead.
  instrumentation/opentelemetry-instrumentation-boto)
    %{py3_check_import opentelemetry.instrumentation.boto
      opentelemetry.instrumentation.boto.package
      opentelemetry.instrumentation.boto.version}
    continue
    ;;
  instrumentation/opentelemetry-instrumentation-botocore)
    %{py3_check_import opentelemetry.instrumentation.botocore
      opentelemetry.instrumentation.botocore.package
      opentelemetry.instrumentation.botocore.version
      opentelemetry.instrumentation.botocore.extensions
      opentelemetry.instrumentation.botocore.extensions.dynamodb
      opentelemetry.instrumentation.botocore.extensions.lmbd
      opentelemetry.instrumentation.botocore.extensions.sns
      opentelemetry.instrumentation.botocore.extensions.sqs
      opentelemetry.instrumentation.botocore.extensions.types}
    continue
    ;;
%endif
%if %{without werkzeug}
  # Can’t run the tests; do an import-only “smoke test” instead.
  instrumentation/opentelemetry-instrumentation-pyramid)
    %{py3_check_import opentelemetry.instrumentation.pyramid
      opentelemetry.instrumentation.pyramid.callbacks
      opentelemetry.instrumentation.pyramid.package
      opentelemetry.instrumentation.pyramid.version}
    continue
    ;;
%endif
  instrumentation/opentelemetry-instrumentation-tornado)
    # These tests require network access.
    k="${k-}${k+ and }not (TestTornadoInstrumentation and test_credential_removal)"
    ;;
  instrumentation/opentelemetry-instrumentation-urllib)
    # Flaky failure, especially (exclusively?) on ppc64le/s390x.
    # https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2033#issuecomment-1836278182
    k="${k-}${k+ and }not (TestUrllibMetricsInstrumentation and test_metric_uninstrument)"
    ;;
  opentelemetry-contrib-instrumentations)
    # This package has no tests; it is effectively a metapackage, and it is not
    # importable due to a hyphen in the ”package“ directory name.
    continue
    ;;
  util/opentelemetry-util-http)
    # New test failures in Fedora with 1.20.0/0.41b0
    # https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
    k="${k-}${k+ and }not (TestSanitizeMethod and test_nonstandard_method)"
    k="${k-}${k+ and }not (TestSanitizeMethod and test_nonstandard_method_allowed)"
  esac

  %pytest "${pkgdir}" ${ignore-} -k "${k-}"
done


%files doc
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc CHANGELOG.md
%doc CONTRIBUTING.md
%doc README.md
%if %{with doc_pdf}
%doc docs/_build/latex/opentelemetrypythoncontrib.pdf
%endif


%if %{with protobuf4}
%files -n python3-opentelemetry-exporter-prometheus-remote-write
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc exporter/opentelemetry-exporter-prometheus-remote-write/README.rst
%doc exporter/opentelemetry-exporter-prometheus-remote-write/example/

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,exporter/}

%{python3_sitelib}/opentelemetry/exporter/prometheus_remote_write/
%{python3_sitelib}/opentelemetry_exporter_prometheus_remote_write-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-exporter-richconsole
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc exporter/opentelemetry-exporter-richconsole/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,exporter/}

%{python3_sitelib}/opentelemetry/exporter/richconsole/
%{python3_sitelib}/opentelemetry_exporter_richconsole-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation
%license opentelemetry-instrumentation/LICENSE
%doc opentelemetry-instrumentation/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/py.typed
%dir %{python3_sitelib}/opentelemetry/instrumentation/__pycache__/
%pycached %{python3_sitelib}/opentelemetry/instrumentation/*.py
%{python3_sitelib}/opentelemetry/instrumentation/auto_instrumentation/
%{python3_sitelib}/opentelemetry_instrumentation-%{prerel_distinfo}/

%{_bindir}/opentelemetry-bootstrap
%{_bindir}/opentelemetry-instrument

%{_mandir}/man1/opentelemetry-bootstrap.1*
%{_mandir}/man1/opentelemetry-instrument.1*


%files -n python3-opentelemetry-distro
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc opentelemetry-distro/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/

%{python3_sitelib}/opentelemetry/distro/
%{python3_sitelib}/opentelemetry_distro-%{prerel_distinfo}/


%files -n python3-opentelemetry-propagator-ot-trace
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc propagator/opentelemetry-propagator-ot-trace/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,propagators/}

%{python3_sitelib}/opentelemetry/propagators/ot_trace/
%{python3_sitelib}/opentelemetry_propagator_ot_trace-%{prerel_distinfo}/


%files -n python3-opentelemetry-util-http
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc util/opentelemetry-util-http/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,util/}

%{python3_sitelib}/opentelemetry/util/http/
%{python3_sitelib}/opentelemetry_util_http-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-aiohttp-client
%license instrumentation/opentelemetry-instrumentation-aiohttp-client/LICENSE
%doc instrumentation/opentelemetry-instrumentation-aiohttp-client/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/aiohttp_client/
%{python3_sitelib}/opentelemetry_instrumentation_aiohttp_client-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-aiohttp-server
%license LICENSE LICENSE.Apache LICENSE.BSD3
%doc instrumentation/opentelemetry-instrumentation-aiohttp-server/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/aiohttp_server/
%{python3_sitelib}/opentelemetry_instrumentation_aiohttp_server-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-aiopg
%license instrumentation/opentelemetry-instrumentation-aiopg/LICENSE
%doc instrumentation/opentelemetry-instrumentation-aiopg/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/aiopg/
%{python3_sitelib}/opentelemetry_instrumentation_aiopg-%{prerel_distinfo}/


%if %{with aio_pika}
%files -n python3-opentelemetry-instrumentation-aio-pika
%license instrumentation/opentelemetry-instrumentation-aio-pika/LICENSE
%doc instrumentation/opentelemetry-instrumentation-aio-pika/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/aio_pika/
%{python3_sitelib}/opentelemetry_instrumentation_aio_pika-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-asgi
%license instrumentation/opentelemetry-instrumentation-asgi/LICENSE
%doc instrumentation/opentelemetry-instrumentation-asgi/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/asgi/
%{python3_sitelib}/opentelemetry_instrumentation_asgi-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-asyncio
%license instrumentation/opentelemetry-instrumentation-asyncio/LICENSE
%doc instrumentation/opentelemetry-instrumentation-asyncio/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/asyncio/
%{python3_sitelib}/opentelemetry_instrumentation_asyncio-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-asyncpg
%license instrumentation/opentelemetry-instrumentation-asyncpg/LICENSE
%doc instrumentation/opentelemetry-instrumentation-asyncpg/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/asyncpg/
%{python3_sitelib}/opentelemetry_instrumentation_asyncpg-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-aws-lambda
%license instrumentation/opentelemetry-instrumentation-aws-lambda/LICENSE
%doc instrumentation/opentelemetry-instrumentation-aws-lambda/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/aws_lambda/
%{python3_sitelib}/opentelemetry_instrumentation_aws_lambda-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-boto
%license instrumentation/opentelemetry-instrumentation-boto/LICENSE
%doc instrumentation/opentelemetry-instrumentation-boto/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/boto/
%{python3_sitelib}/opentelemetry_instrumentation_boto-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-boto3sqs
%license instrumentation/opentelemetry-instrumentation-boto3sqs/LICENSE
%doc instrumentation/opentelemetry-instrumentation-boto3sqs/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/boto3sqs/
%{python3_sitelib}/opentelemetry_instrumentation_boto3sqs-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-botocore
%license instrumentation/opentelemetry-instrumentation-botocore/LICENSE
%doc instrumentation/opentelemetry-instrumentation-botocore/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/botocore/
%{python3_sitelib}/opentelemetry_instrumentation_botocore-%{prerel_distinfo}/


%if %{with cassandra}
%files -n python3-opentelemetry-instrumentation-cassandra
%license instrumentation/opentelemetry-instrumentation-cassandra/LICENSE
%doc instrumentation/opentelemetry-instrumentation-cassandra/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/cassandra/
%{python3_sitelib}/opentelemetry_instrumentation_cassandra-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-celery
%license instrumentation/opentelemetry-instrumentation-celery/LICENSE
%doc instrumentation/opentelemetry-instrumentation-celery/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/celery/
%{python3_sitelib}/opentelemetry_instrumentation_celery-%{prerel_distinfo}/


%if %{with confluent_kafka}
%files -n python3-opentelemetry-instrumentation-confluent-kafka
%license instrumentation/opentelemetry-instrumentation-confluent-kafka/LICENSE
%doc instrumentation/opentelemetry-instrumentation-confluent-kafka/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/confluent_kafka/
%{python3_sitelib}/opentelemetry_instrumentation_confluent_kafka-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-dbapi
%license instrumentation/opentelemetry-instrumentation-dbapi/LICENSE
%doc instrumentation/opentelemetry-instrumentation-dbapi/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/dbapi/
%{python3_sitelib}/opentelemetry_instrumentation_dbapi-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-django
%license instrumentation/opentelemetry-instrumentation-django/LICENSE
%doc instrumentation/opentelemetry-instrumentation-django/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/django/
%{python3_sitelib}/opentelemetry_instrumentation_django-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-elasticsearch
%license instrumentation/opentelemetry-instrumentation-elasticsearch/LICENSE
%doc instrumentation/opentelemetry-instrumentation-elasticsearch/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}


%{python3_sitelib}/opentelemetry/instrumentation/elasticsearch/
%{python3_sitelib}/opentelemetry_instrumentation_elasticsearch-%{prerel_distinfo}/


%if %{with falcon}
%files -n python3-opentelemetry-instrumentation-falcon
%license instrumentation/opentelemetry-instrumentation-falcon/LICENSE
%doc instrumentation/opentelemetry-instrumentation-falcon/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/falcon/
%{python3_sitelib}/opentelemetry_instrumentation_falcon-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-fastapi
%license instrumentation/opentelemetry-instrumentation-fastapi/LICENSE
%doc instrumentation/opentelemetry-instrumentation-fastapi/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/fastapi/
%{python3_sitelib}/opentelemetry_instrumentation_fastapi-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-flask
%license instrumentation/opentelemetry-instrumentation-flask/LICENSE
%doc instrumentation/opentelemetry-instrumentation-flask/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/flask/
%{python3_sitelib}/opentelemetry_instrumentation_flask-%{prerel_distinfo}/


%if %{with grpc}
%files -n python3-opentelemetry-instrumentation-grpc
%license instrumentation/opentelemetry-instrumentation-grpc/LICENSE
%doc instrumentation/opentelemetry-instrumentation-grpc/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/grpc/
%{python3_sitelib}/opentelemetry_instrumentation_grpc-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-httpx
%license instrumentation/opentelemetry-instrumentation-httpx/LICENSE
%doc instrumentation/opentelemetry-instrumentation-httpx/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/httpx/
%{python3_sitelib}/opentelemetry_instrumentation_httpx-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-jinja2
%license instrumentation/opentelemetry-instrumentation-jinja2/LICENSE
%doc instrumentation/opentelemetry-instrumentation-jinja2/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/jinja2/
%{python3_sitelib}/opentelemetry_instrumentation_jinja2-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-kafka-python
%license instrumentation/opentelemetry-instrumentation-kafka-python/LICENSE
%doc instrumentation/opentelemetry-instrumentation-kafka-python/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/kafka/
%{python3_sitelib}/opentelemetry_instrumentation_kafka_python-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-logging
%license instrumentation/opentelemetry-instrumentation-logging/LICENSE
%doc instrumentation/opentelemetry-instrumentation-logging/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/logging/
%{python3_sitelib}/opentelemetry_instrumentation_logging-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-mysql
%license instrumentation/opentelemetry-instrumentation-mysql/LICENSE
%doc instrumentation/opentelemetry-instrumentation-mysql/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/mysql/
%{python3_sitelib}/opentelemetry_instrumentation_mysql-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-mysqlclient
%license instrumentation/opentelemetry-instrumentation-mysqlclient/LICENSE
%doc instrumentation/opentelemetry-instrumentation-mysqlclient/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/mysqlclient/
%{python3_sitelib}/opentelemetry_instrumentation_mysqlclient-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-pika
%license instrumentation/opentelemetry-instrumentation-pika/LICENSE
%doc instrumentation/opentelemetry-instrumentation-pika/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/pika/
%{python3_sitelib}/opentelemetry_instrumentation_pika-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-psycopg2
%license instrumentation/opentelemetry-instrumentation-psycopg2/LICENSE
%doc instrumentation/opentelemetry-instrumentation-psycopg2/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/psycopg2/
%{python3_sitelib}/opentelemetry_instrumentation_psycopg2-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-pymemcache
%license instrumentation/opentelemetry-instrumentation-pymemcache/LICENSE
%doc instrumentation/opentelemetry-instrumentation-pymemcache/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/pymemcache/
%{python3_sitelib}/opentelemetry_instrumentation_pymemcache-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-pymongo
%license instrumentation/opentelemetry-instrumentation-pymongo/LICENSE
%doc instrumentation/opentelemetry-instrumentation-pymongo/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/pymongo/
%{python3_sitelib}/opentelemetry_instrumentation_pymongo-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-pymysql
%license instrumentation/opentelemetry-instrumentation-pymysql/LICENSE
%doc instrumentation/opentelemetry-instrumentation-pymysql/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/pymysql/
%{python3_sitelib}/opentelemetry_instrumentation_pymysql-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-pyramid
%license instrumentation/opentelemetry-instrumentation-pyramid/LICENSE
%doc instrumentation/opentelemetry-instrumentation-pyramid/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/pyramid/
%{python3_sitelib}/opentelemetry_instrumentation_pyramid-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-redis
%license instrumentation/opentelemetry-instrumentation-redis/LICENSE
%doc instrumentation/opentelemetry-instrumentation-redis/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/redis/
%{python3_sitelib}/opentelemetry_instrumentation_redis-%{prerel_distinfo}/


%if %{with remoulade}
%files -n python3-opentelemetry-instrumentation-remoulade
%license instrumentation/opentelemetry-instrumentation-remoulade/LICENSE
%doc instrumentation/opentelemetry-instrumentation-remoulade/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/remoulade/
%{python3_sitelib}/opentelemetry_instrumentation_remoulade-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-requests
%license instrumentation/opentelemetry-instrumentation-requests/LICENSE
%doc instrumentation/opentelemetry-instrumentation-requests/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/requests/
%{python3_sitelib}/opentelemetry_instrumentation_requests-%{prerel_distinfo}/


%if %{with sklearn}
%files -n python3-opentelemetry-instrumentation-sklearn
%license instrumentation/opentelemetry-instrumentation-sklearn/LICENSE
%doc instrumentation/opentelemetry-instrumentation-sklearn/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/sklearn/
%{python3_sitelib}/opentelemetry_instrumentation_sklearn-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-sqlalchemy
%license instrumentation/opentelemetry-instrumentation-sqlalchemy/LICENSE
%doc instrumentation/opentelemetry-instrumentation-sqlalchemy/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/sqlalchemy/
%{python3_sitelib}/opentelemetry_instrumentation_sqlalchemy-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-sqlite3
%license instrumentation/opentelemetry-instrumentation-sqlite3/LICENSE
%doc instrumentation/opentelemetry-instrumentation-sqlite3/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/sqlite3/
%{python3_sitelib}/opentelemetry_instrumentation_sqlite3-%{prerel_distinfo}/


%if %{with starlette}
%files -n python3-opentelemetry-instrumentation-starlette
%license instrumentation/opentelemetry-instrumentation-starlette/LICENSE
%doc instrumentation/opentelemetry-instrumentation-starlette/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/starlette/
%{python3_sitelib}/opentelemetry_instrumentation_starlette-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-system-metrics
%license instrumentation/opentelemetry-instrumentation-system-metrics/LICENSE
%doc instrumentation/opentelemetry-instrumentation-system-metrics/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/system_metrics/
%{python3_sitelib}/opentelemetry_instrumentation_system_metrics-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-tornado
%license instrumentation/opentelemetry-instrumentation-tornado/LICENSE
%doc instrumentation/opentelemetry-instrumentation-tornado/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/tornado/
%{python3_sitelib}/opentelemetry_instrumentation_tornado-%{prerel_distinfo}/


%if %{with tortoise_orm}
%files -n python3-opentelemetry-instrumentation-tortoiseorm
%license instrumentation/opentelemetry-instrumentation-tortoiseorm/LICENSE
%doc instrumentation/opentelemetry-instrumentation-tortoiseorm/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/tortoiseorm/
%{python3_sitelib}/opentelemetry_instrumentation_tortoiseorm-%{prerel_distinfo}/
%endif


%files -n python3-opentelemetry-instrumentation-urllib
%license instrumentation/opentelemetry-instrumentation-urllib/LICENSE
%doc instrumentation/opentelemetry-instrumentation-urllib/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/urllib/
%{python3_sitelib}/opentelemetry_instrumentation_urllib-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-urllib3
%license instrumentation/opentelemetry-instrumentation-urllib3/LICENSE
%doc instrumentation/opentelemetry-instrumentation-urllib3/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/urllib3/
%{python3_sitelib}/opentelemetry_instrumentation_urllib3-%{prerel_distinfo}/


%files -n python3-opentelemetry-instrumentation-wsgi
%license instrumentation/opentelemetry-instrumentation-wsgi/LICENSE
%doc instrumentation/opentelemetry-instrumentation-wsgi/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/{,instrumentation/}

%{python3_sitelib}/opentelemetry/instrumentation/wsgi/
%{python3_sitelib}/opentelemetry_instrumentation_wsgi-%{prerel_distinfo}/


%files -n python3-opentelemetry-contrib-instrumentations
%license opentelemetry-contrib-instrumentations/LICENSE
%doc opentelemetry-contrib-instrumentations/README.rst

# Shared namespace directories
%dir %{python3_sitelib}/opentelemetry/

%{python3_sitelib}/opentelemetry/contrib-instrumentations/
%{python3_sitelib}/opentelemetry_contrib_instrumentations-%{prerel_distinfo}/


%changelog
%autochangelog