]>
Commit | Line | Data |
---|---|---|
b83b4b0b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | ||
6 | Summary: Link to GitHub issues, pull requests, commits and users from Sphinx docs | |
7 | Summary(pl.UTF-8): Odnośniki z dokumentacji Sphinksa do zgłoszeń, pull requestów, commitów i użytkowników na GitHubie | |
8 | Name: python-sphinxcontrib_github_alt | |
9 | Version: 1.1 | |
51d2c545 | 10 | Release: 4 |
b83b4b0b JB |
11 | License: BSD |
12 | Group: Libraries/Python | |
13 | #Source0Download: https://pypi.org/simple/sphinxcontrib_github_alt/ | |
14 | Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib_github_alt/sphinxcontrib_github_alt-%{version}.tar.gz | |
15 | # Source0-md5: 6e8b239b13ee076c518446a101aa2f43 | |
16 | URL: https://pypi.org/project/sphinxcontrib_github_alt/ | |
17 | %if %{with python2} | |
18 | BuildRequires: python-modules >= 1:2.5 | |
19 | BuildRequires: python-setuptools | |
20 | %endif | |
21 | %if %{with python3} | |
22 | BuildRequires: python3-modules >= 1:3.2 | |
23 | BuildRequires: python3-setuptools | |
24 | %endif | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.714 | |
27 | Requires: python-docutils | |
28 | Requires: python-modules >= 1:2.5 | |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Link to GitHub issues, pull requests, commits and users for a | |
34 | particular project. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Odnośniki z dokumentacji Sphinksa do zgłoszeń, pull requestów, | |
38 | commitów i użytkowników na GitHubie. | |
39 | ||
40 | %package -n python3-sphinxcontrib_github_alt | |
41 | Summary: Link to GitHub issues, pull requests, commits and users from Sphinx docs | |
42 | Summary(pl.UTF-8): Odnośniki z dokumentacji Sphinksa do zgłoszeń, pull requestów, commitów i użytkowników na GitHubie | |
43 | Group: Libraries/Python | |
44 | Requires: python3-docutils | |
45 | Requires: python3-modules >= 1:3.2 | |
46 | ||
47 | %description -n python3-sphinxcontrib_github_alt | |
48 | Link to GitHub issues, pull requests, commits and users for a | |
49 | particular project. | |
50 | ||
51 | %description -n python3-sphinxcontrib_github_alt -l pl.UTF-8 | |
52 | Odnośniki z dokumentacji Sphinksa do zgłoszeń, pull requestów, | |
53 | commitów i użytkowników na GitHubie. | |
54 | ||
55 | %prep | |
56 | %setup -q -n sphinxcontrib_github_alt-%{version} | |
57 | ||
58 | %build | |
59 | %if %{with python2} | |
60 | %py_build | |
61 | %endif | |
62 | ||
63 | %if %{with python3} | |
64 | %py3_build | |
65 | %endif | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %if %{with python2} | |
71 | %py_install | |
72 | ||
73 | %py_postclean | |
74 | %endif | |
75 | ||
76 | %if %{with python3} | |
77 | %py3_install | |
78 | %endif | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %if %{with python2} | |
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc COPYING.md README.rst | |
87 | %{py_sitescriptdir}/sphinxcontrib_github_alt.py[co] | |
88 | %{py_sitescriptdir}/sphinxcontrib_github_alt-%{version}-py*.egg-info | |
89 | %endif | |
90 | ||
91 | %if %{with python3} | |
92 | %files -n python3-sphinxcontrib_github_alt | |
93 | %defattr(644,root,root,755) | |
94 | %doc COPYING.md README.rst | |
95 | %{py3_sitescriptdir}/sphinxcontrib_github_alt.py | |
96 | %{py3_sitescriptdir}/__pycache__/sphinxcontrib_github_alt.cpython-*.py[co] | |
97 | %{py3_sitescriptdir}/sphinxcontrib_github_alt-%{version}-py*.egg-info | |
98 | %endif |