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
1112f19
Release:        2%{?dist}
1112f19
Summary:        %{sum}
1112f19
BuildArch:      noarch
1112f19
1112f19
License:        MIT
1112f19
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
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