## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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}.readthedocs.io/en/latest/ Source: https://github.com/readthedocs/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz # 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 %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install # remove superfluous files rm -rf %{buildroot}%{python3_sitelib}/tests/ %pyproject_save_files hoverxref %check # 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 %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Michel Lind - 1.3.0-1 - Update to 1.3.0 - Modernize spec for latest packaging guidelines - License identifier is SPDX - Resolves: rhbz#2246942 * Fri Jul 21 2023 Fedora Release Engineering - 0.5b1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.5b1-11 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5b1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5b1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5b1-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5b1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.5b1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 11 2021 Tim Landscheidt - 0.5b1-5 - Fix mangled URL * Fri Jun 04 2021 Python Maint - 0.5b1-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5b1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Aug 26 2020 Michel Alexandre Salim - 0.5b1-2 - Don't glob sitelib contents * Tue Aug 25 2020 Michel Alexandre Salim - 0.5b1-1 - Initial package ## END: Generated by rpmautospec