]>
Commit | Line | Data |
---|---|---|
0da7d417 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | # | |
ee3bcb58 JB |
6 | Summary: Sphinx extension to link to external Doxygen API documentation |
7 | Summary(pl.UTF-8): Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z Doxygena | |
8 | Name: python-sphinxcontrib-doxylink | |
e54ec876 | 9 | Version: 1.3 |
441de8b2 | 10 | Release: 11 |
ee3bcb58 JB |
11 | License: BSD |
12 | Group: Development/Languages/Python | |
d062b293 JB |
13 | #Source0Download: https://pypi.org/simple/sphinxcontrib-doxylink/ |
14 | Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-doxylink/sphinxcontrib-doxylink-%{version}.tar.gz | |
e54ec876 | 15 | # Source0-md5: f6800726c2d31bcd6b4a65d40852881f |
771c0741 | 16 | Patch0: Force-qualifier-result-to-be-a-single-string.patch |
d062b293 | 17 | URL: https://pypi.org/project/sphinxcontrib-doxylink/ |
0da7d417 JR |
18 | %if %{with python2} |
19 | BuildRequires: python-modules | |
d062b293 | 20 | BuildRequires: python-setuptools |
0da7d417 JR |
21 | %endif |
22 | %if %{with python3} | |
23 | BuildRequires: python3-modules | |
d062b293 | 24 | BuildRequires: python3-setuptools |
0da7d417 | 25 | %endif |
ee3bcb58 | 26 | BuildRequires: rpm-pythonprov |
0da7d417 | 27 | BuildRequires: rpmbuild(macros) >= 1.714 |
ee3bcb58 JB |
28 | Requires: python-Sphinx >= 0.6 |
29 | Requires: python-pyparsing | |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | Sphinx extension to link to external Doxygen API documentation. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z | |
38 | Doxygena. | |
39 | ||
850b021f | 40 | %package -n python3-sphinxcontrib-doxylink |
0da7d417 JR |
41 | Summary: Sphinx extension to link to external Doxygen API documentation |
42 | Summary(pl.UTF-8): Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z Doxygena | |
43 | Group: Libraries/Python | |
44 | Requires: python3-modules | |
45 | Requires: python3-Sphinx >= 0.6 | |
46 | Requires: python3-pyparsing | |
47 | ||
0b804ae2 | 48 | %description -n python3-sphinxcontrib-doxylink |
0da7d417 JR |
49 | Sphinx extension to link to external Doxygen API documentation. |
50 | ||
0b804ae2 | 51 | %description -n python3-sphinxcontrib-doxylink -l pl.UTF-8 |
0da7d417 JR |
52 | Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z |
53 | Doxygena. | |
54 | ||
ee3bcb58 JB |
55 | %prep |
56 | %setup -q -n sphinxcontrib-doxylink-%{version} | |
771c0741 | 57 | %patch0 -p1 |
ee3bcb58 JB |
58 | |
59 | %build | |
0da7d417 | 60 | %if %{with python2} |
ba5368fb | 61 | %py_build |
0da7d417 JR |
62 | %endif |
63 | ||
64 | %if %{with python2} | |
65 | %py3_build | |
66 | %endif | |
ee3bcb58 JB |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
0da7d417 | 70 | %if %{with python2} |
ba5368fb | 71 | %py_install |
ee3bcb58 JB |
72 | |
73 | %py_postclean | |
74 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests | |
0da7d417 JR |
75 | %endif |
76 | ||
77 | %if %{with python2} | |
78 | %py3_install | |
79 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests | |
80 | %endif | |
81 | ||
ee3bcb58 JB |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
0da7d417 | 86 | %if %{with python2} |
ee3bcb58 JB |
87 | %files |
88 | %defattr(644,root,root,755) | |
89 | %doc CHANGES.rst README.rst | |
90 | %dir %{py_sitescriptdir}/sphinxcontrib | |
91 | %{py_sitescriptdir}/sphinxcontrib/doxylink | |
92 | %{py_sitescriptdir}/sphinxcontrib_doxylink-%{version}-py*.egg-info | |
93 | %{py_sitescriptdir}/sphinxcontrib_doxylink-%{version}-py*-nspkg.pth | |
0da7d417 JR |
94 | %endif |
95 | ||
96 | %if %{with python3} | |
850b021f | 97 | %files -n python3-sphinxcontrib-doxylink |
0da7d417 JR |
98 | %defattr(644,root,root,755) |
99 | %doc CHANGES.rst README.rst | |
100 | %dir %{py3_sitescriptdir}/sphinxcontrib | |
101 | %{py3_sitescriptdir}/sphinxcontrib/doxylink | |
102 | %{py3_sitescriptdir}/sphinxcontrib_doxylink-%{version}-py*.egg-info | |
103 | %{py3_sitescriptdir}/sphinxcontrib_doxylink-%{version}-py*-nspkg.pth | |
104 | %endif |