Blob Blame History Raw
%global srcname sphinx-hoverxref
%global sum Sphinx extension to add tooltips on cross references

Name:           python-%{srcname}
Version:        1.3.0
Release:        %autorelease
Summary:        %{sum}
BuildArch:      noarch

License:        MIT
Url:            https://%{srcname}
# drop references to .
# drop dependency on pdbpp, it requires a lot of unpackaged modules and pyrepl is broken and inactive upstream
Patch:          sphinx-hoverxref-fix_tox_ini.diff

BuildRequires:  python3-devel
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools

%global _description %{expand:
Sphinx extension to show a floating window (tooltips or modal dialogues) on the
cross references of the documentation embedding the content of the linked
section on them. With sphinx-hoverxref, you don’t need to click a link to see
what’s in there.}

%description %_description

%package -n python3-%{srcname}
Requires:       python3-sphinx
BuildRequires:  python3-sphinx
Summary:        %{sum}

%description -n python3-%{srcname} %_description

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

%pyproject_buildrequires -t


# remove superfluous files
rm -rf %{buildroot}%{python3_sitelib}/tests/

%pyproject_save_files hoverxref

# exclude intersphinx tests, they don't work offline
%pytest -v tests/ -k "not test_intersphinx_default_configs and not test_intersphinx_python_mapping and not test_intersphinx_all_mappings"

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.rst