1112f19
%global srcname sphinx-hoverxref
1112f19
%global sum Sphinx extension to add tooltips on cross references
1112f19
1112f19
Name:           python-%{srcname}
1112f19
Version:        0.5b1
1b8d021
Release:        7%{?dist}
1112f19
Summary:        %{sum}
1112f19
BuildArch:      noarch
1112f19
1112f19
License:        MIT
81b8147
Url:            https://%{srcname}.readthedocs.io/en/latest/
1112f19
Source0:        https://github.com/readthedocs/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
1112f19
1112f19
BuildRequires:  python3-devel
1112f19
BuildRequires:  python3-pytest
1112f19
BuildRequires:  python3-setuptools
1112f19
1112f19
%description
1112f19
Sphinx extension to show a floating window (tooltips or modal dialogues) on the
1112f19
cross references of the documentation embedding the content of the linked
1112f19
section on them. With sphinx-hoverxref, you don’t need to click a link to see
1112f19
what’s in there.
1112f19
1112f19
1112f19
%package -n python3-%{srcname}
1112f19
Requires:       python3-sphinx
1112f19
BuildRequires:  python3-sphinx
1112f19
Summary:        %{sum}
1112f19
%{?python_provide:%python_provide python3-%{srcname}}
1112f19
1112f19
%description -n python3-%{srcname}
1112f19
Sphinx extension to show a floating window (tooltips or modal dialogues) on the
1112f19
cross references of the documentation embedding the content of the linked
1112f19
section on them. With sphinx-hoverxref, you don’t need to click a link to see
1112f19
what’s in there.
1112f19
1112f19
1112f19
%prep
1112f19
%autosetup -n %{srcname}-%{version}
1112f19
1112f19
1112f19
%build
1112f19
%py3_build
1112f19
1112f19
1112f19
%install
1112f19
%py3_install
1112f19
# remove superfluous files
1112f19
rm -rf %{buildroot}%{python3_sitelib}/tests/
1112f19
1112f19
1112f19
%check
1112f19
pytest tests/
1112f19
1112f19
1112f19
%files -n python3-%{srcname}
1112f19
%license LICENSE
1112f19
%doc README.rst
1112f19
%{python3_sitelib}/hoverxref/
1112f19
%{python3_sitelib}/*egg-info/
1112f19
1112f19
1112f19
%changelog
1b8d021
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5b1-7
1b8d021
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1b8d021
372ffee
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5b1-6
372ffee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
372ffee
81b8147
* Sun Jul 11 2021 Tim Landscheidt <tim@tim-landscheidt.de> - 0.5b1-5
81b8147
- Fix mangled URL
81b8147
45c4d7b
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5b1-4
45c4d7b
- Rebuilt for Python 3.10
45c4d7b
9114ad6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5b1-3
9114ad6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9114ad6
1112f19
* Wed Aug 26 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5b1-2
1112f19
- Don't glob sitelib contents
1112f19
1112f19
* Tue Aug 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5b1-1
1112f19
- Initial package
1112f19