]>
Commit | Line | Data |
---|---|---|
fa7d9b2a JB |
1 | # |
2 | # Conditional build: | |
1f2bc9cf | 3 | %bcond_with tests # unit tests (require already installed package???) |
fa7d9b2a JB |
4 | |
5 | Summary: Sphinx API for Web Apps | |
6 | Summary(pl.UTF-8): API Sphinksa dla aplikacji WWW | |
7 | Name: python3-sphinxcontrib-websupport | |
dc3e0d39 | 8 | Version: 1.2.4 |
ef04a284 | 9 | Release: 2 |
fa7d9b2a JB |
10 | License: BSD |
11 | Group: Libraries/Python | |
12 | #Source0Download: https://pypi.org/simple/sphinxcontrib-websupport/ | |
13 | Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz | |
dc3e0d39 | 14 | # Source0-md5: eecfd8dc4933bd28c07ffb5e64fa2444 |
fa7d9b2a JB |
15 | URL: https://pypi.org/project/sphinxcontrib-websupport/ |
16 | BuildRequires: python3-modules >= 1:3.5 | |
17 | BuildRequires: python3-setuptools | |
18 | %if %{with tests} | |
19 | BuildRequires: python3-Sphinx >= 1.8 | |
20 | BuildRequires: python3-pytest | |
21 | BuildRequires: python3-six | |
dc3e0d39 | 22 | BuildRequires: python3-spinxcontrib-serializinghtml |
1f2bc9cf JB |
23 | # don't know why, test use already installed package |
24 | BuildRequires: python3-spinxcontrib-websupport >= 1.1.2 | |
fa7d9b2a JB |
25 | BuildRequires: python3-sqlalchemy |
26 | BuildRequires: python3-whoosh | |
27 | %endif | |
28 | BuildRequires: rpm-pythonprov | |
29 | BuildRequires: rpmbuild(macros) >= 1.714 | |
30 | Requires: python3-modules >= 1:3.5 | |
31 | Requires: python3-sphinxcontrib | |
32 | BuildArch: noarch | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | sphinxcontrib-websupport provides a Python API to easily integrate | |
37 | Sphinx documentation into your Web application. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | sphinxcontrib-websupport dostarcza pythonowe API do łatwej integracji | |
41 | dokumentacji tworzonej z użyciem Sphinksa w aplikacji WWW. | |
42 | ||
43 | %prep | |
44 | %setup -q -n sphinxcontrib-websupport-%{version} | |
45 | ||
46 | %build | |
47 | %py3_build | |
48 | ||
49 | %if %{with tests} | |
50 | PYTHONPATH=$(pwd) \ | |
51 | %{__python3} -m pytest tests | |
52 | %endif | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %py3_install | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc CHANGES LICENSE README.rst | |
65 | %{py3_sitescriptdir}/sphinxcontrib/websupport | |
66 | %{py3_sitescriptdir}/sphinxcontrib_websupport-%{version}-py*.egg-info | |
67 | %{py3_sitescriptdir}/sphinxcontrib_websupport-%{version}-py*-nspkg.pth |