]> git.pld-linux.org Git - packages/python-sphinxcontrib-doxylink.git/blame - python-sphinxcontrib-doxylink.spec
rebuild with python 3.10
[packages/python-sphinxcontrib-doxylink.git] / python-sphinxcontrib-doxylink.spec
CommitLineData
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
6Summary: Sphinx extension to link to external Doxygen API documentation
7Summary(pl.UTF-8): Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z Doxygena
8Name: python-sphinxcontrib-doxylink
e54ec876 9Version: 1.3
441de8b2 10Release: 11
ee3bcb58
JB
11License: BSD
12Group: Development/Languages/Python
d062b293
JB
13#Source0Download: https://pypi.org/simple/sphinxcontrib-doxylink/
14Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-doxylink/sphinxcontrib-doxylink-%{version}.tar.gz
e54ec876 15# Source0-md5: f6800726c2d31bcd6b4a65d40852881f
771c0741 16Patch0: Force-qualifier-result-to-be-a-single-string.patch
d062b293 17URL: https://pypi.org/project/sphinxcontrib-doxylink/
0da7d417
JR
18%if %{with python2}
19BuildRequires: python-modules
d062b293 20BuildRequires: python-setuptools
0da7d417
JR
21%endif
22%if %{with python3}
23BuildRequires: python3-modules
d062b293 24BuildRequires: python3-setuptools
0da7d417 25%endif
ee3bcb58 26BuildRequires: rpm-pythonprov
0da7d417 27BuildRequires: rpmbuild(macros) >= 1.714
ee3bcb58
JB
28Requires: python-Sphinx >= 0.6
29Requires: python-pyparsing
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34Sphinx extension to link to external Doxygen API documentation.
35
36%description -l pl.UTF-8
37Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z
38Doxygena.
39
850b021f 40%package -n python3-sphinxcontrib-doxylink
0da7d417
JR
41Summary: Sphinx extension to link to external Doxygen API documentation
42Summary(pl.UTF-8): Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z Doxygena
43Group: Libraries/Python
44Requires: python3-modules
45Requires: python3-Sphinx >= 0.6
46Requires: python3-pyparsing
47
0b804ae2 48%description -n python3-sphinxcontrib-doxylink
0da7d417
JR
49Sphinx extension to link to external Doxygen API documentation.
50
0b804ae2 51%description -n python3-sphinxcontrib-doxylink -l pl.UTF-8
0da7d417
JR
52Rozszerzenie Sphinksa do łączenia z zewnętrzną dokumentacją API z
53Doxygena.
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
69rm -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
84rm -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
This page took 0.069223 seconds and 4 git commands to generate.