summaryrefslogtreecommitdiffstats
path: root/python/python-sphinx-hoverxref.spec
blob: 90a3bc9f7507660c266e31d81d4ad37b4c3a18a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 <salimma@fedoraproject.org> - 0.5b1-2
- Don't glob sitelib contents

* Tue Aug 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5b1-1
- Initial package