From 1112f1994dfe234cb08ff3c364f92ee58879fb24 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Aug 27 2020 22:20:29 +0000 Subject: Initial import Signed-off-by: Michel Alexandre Salim --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ffd9cb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sphinx-hoverxref-0.5b1.tar.gz diff --git a/python-sphinx-hoverxref.spec b/python-sphinx-hoverxref.spec new file mode 100644 index 0000000..90a3bc9 --- /dev/null +++ b/python-sphinx-hoverxref.spec @@ -0,0 +1,69 @@ +%global srcname sphinx-hoverxref +%global sum Sphinx extension to add tooltips on cross references + +Name: python-%{srcname} +Version: 0.5b1 +Release: 2%{?dist} +Summary: %{sum} +BuildArch: noarch + +License: MIT +Url: https//%{srcname}.readthedocs.io/en/latest/ +Source0: https://github.com/readthedocs/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-setuptools + +%description +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. + + +%package -n python3-%{srcname} +Requires: python3-sphinx +BuildRequires: python3-sphinx +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +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. + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%py3_build + + +%install +%py3_install +# remove superfluous files +rm -rf %{buildroot}%{python3_sitelib}/tests/ + + +%check +pytest tests/ + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/hoverxref/ +%{python3_sitelib}/*egg-info/ + + +%changelog +* 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 + diff --git a/sources b/sources new file mode 100644 index 0000000..cc91521 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sphinx-hoverxref-0.5b1.tar.gz) = 58fd24bafa59ecdc8c5d497b77a1ed5150ddfc8ce784244d608a4f9f66749807b8c73594f3112870629d68b7bf3fa951ac09b2113c4d9980056710d5b28c3a30