]>
Commit | Line | Data |
---|---|---|
7e920f0f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # HTML documentation build | |
4 | # | |
5 | Summary: Sphinx extension to reference issues in issue trackers | |
6 | Summary(pl.UTF-8): Rozszerzenie Sphinksa do tworzenia odnośników do systemów śledzenia zgłoszeń | |
7 | Name: python-sphinxcontrib-issuetracker | |
4be26aef | 8 | Version: 0.11 |
dcbcaa3b | 9 | Release: 3 |
7e920f0f JB |
10 | License: BSD |
11 | Group: Development/Languages/Python | |
12 | Source0: http://pypi.python.org/packages/source/s/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-%{version}.tar.gz | |
4be26aef | 13 | # Source0-md5: 69c2f0e5770c5d7bad73f60f8d764e28 |
650b8445 JR |
14 | Source1: http://docs.python.org/objects.inv?/python-objects.inv |
15 | # Source1-md5: 173c3f7fb1ad2162f1f194a5267700db | |
16 | Source2: http://sphinx.pocoo.org/objects.inv?/sphinx-objects.inv | |
17 | # Source2-md5: 5f30379fe116fbace2636d5284df8622 | |
b6e3b830 | 18 | Patch0: %{name}-offline.patch |
7e920f0f JB |
19 | URL: http://pypi.python.org/pypi/sphinxcontrib-issuetracker |
20 | BuildRequires: python-devel >= 1:2.6 | |
21 | BuildRequires: rpm-pythonprov | |
5a1afafb | 22 | BuildRequires: rpmbuild(macros) >= 1.710 |
7e920f0f JB |
23 | %if %{with doc} |
24 | BuildRequires: python-requests >= 0.13 | |
25 | BuildRequires: sphinx-pdg >= 1.1 | |
26 | %endif | |
27 | Requires: python-Sphinx >= 1.1 | |
28 | Requires: python-requests >= 0.13 | |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | A Sphinx extension to reference issues in issue trackers, either | |
34 | explicitly with an "issue" role or optionally implicitly by issue ids | |
35 | like "#10" in plaintext. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Rozszerzenie Sphinksa do umieszczania odnośników do systemów śledzenia | |
39 | zgłoszeń - wprost poprzez regułę "issue" lub opcjonalnie poprzez numer | |
40 | zgłoszenia zapisany tekstowo (np. "#10"). | |
41 | ||
42 | %prep | |
43 | %setup -q -n sphinxcontrib-issuetracker-%{version} | |
b6e3b830 JB |
44 | %patch0 -p1 |
45 | ||
46 | cp -p %{SOURCE1} %{SOURCE2} doc | |
7e920f0f JB |
47 | |
48 | %build | |
672915b5 | 49 | %py_build |
7e920f0f JB |
50 | |
51 | %if %{with doc} | |
52 | PYTHONPATH=$(pwd)/build/lib \ | |
53 | %{__make} -C doc html | |
54 | %endif | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
672915b5 | 58 | %py_install |
7e920f0f JB |
59 | |
60 | %py_postclean | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc CHANGES.rst CREDITS LICENSE README.rst %{?with_doc:doc/_build/html} | |
68 | # top dir should belong to python-Sphinx? | |
69 | %dir %{py_sitescriptdir}/sphinxcontrib | |
70 | %dir %{py_sitescriptdir}/sphinxcontrib/issuetracker | |
71 | %{py_sitescriptdir}/sphinxcontrib/issuetracker/*.py[co] | |
72 | %{py_sitescriptdir}/sphinxcontrib/issuetracker/issuetracker.css | |
73 | %{py_sitescriptdir}/sphinxcontrib_issuetracker-%{version}-py*.egg-info | |
74 | %{py_sitescriptdir}/sphinxcontrib_issuetracker-%{version}-py*-nspkg.pth |