Blob Blame History Raw
%global pypi_name opentracing-python

Summary:        OpenTracing interface for Python
Name:           python-opentracing
Version:        2.4.0
Release:        2%{?dist}
# The files are under the Apache License 2.0,
# except for:
# - mocktracer-related files
# - scope-related files
# - tests/
# which are under the Expat License (classified as MIT by the Open
# Source Initiative).
License:        ASL 2.0 and MIT
URL:  {pypi_name}

# Issue filed upstream as
# Upstream has merged the change on master as
Patch0:         0001-Do-not-use-mock-the-PyPI-backport-library-when-possi.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  texinfo
BuildRequires:  make
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-cov
BuildRequires:  python3-gevent
BuildRequires:  python3-tornado
# Required to provide its intersphinx inventory
BuildRequires:  python3-docs

%global _description %{expand:
This library is a Python platform API for OpenTracing.

It allows Python programs to interact with an OpenTracing server.}


%autosetup -n %{pypi_name}-%{version} -p1


# Reconfigure intersphinx to use the local inventory.
sed -e '/^ \+.python.:/s,None,"%{_docdir}/python3-docs/html/objects.inv",' -i docs/
# Generate the documentation.
%__make -O V=1 VERBOSE=1 -C docs info html PYTHONPATH=..
# Remove non-documentation
rm -rf docs/_build/html/{.buildinfo,_sources}

mkdir -p %{buildroot}%{_infodir}
cp -p docs/_build/texinfo/%{pypi_name}.info %{buildroot}%{_infodir}/

%__make test

%package -n python3-opentracing
Summary: %{summary}

%description -n python3-opentracing

%files -n python3-opentracing
%license LICENSE
%doc README.rst
%doc CHANGELOG.rst

%package doc
Summary: %{summary} - HTML documentation

%description doc

This package contains the documentation in HTML.

%files doc
%doc docs/_build/html/
%license LICENSE

* Fri Jul 23 2021 Fedora Release Engineering <> - 2.4.0-2
- Rebuilt for

* Thu Dec 10 2020 Fabrice BAUZAC <> 2.4.0-1
- Initial version.