]>
Commit | Line | Data |
---|---|---|
1268e1c4 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # unit tests (failing?) | |
4 | ||
5 | Summary: Sphinx extension which outputs "serialized" HTML files | |
6 | Summary(pl.UTF-8): Rozszerzenie Sphinksa zapisujÄ…ce "zserializowane" pliki HTML | |
7 | Name: python3-sphinxcontrib-serializinghtml | |
673a92f2 JB |
8 | Version: 1.1.5 |
9 | Release: 1 | |
1268e1c4 JB |
10 | License: BSD |
11 | Group: Libraries/Python | |
12 | #Source0Download: https://pypi.org/simple/sphinxcontrib-serializinghtml/ | |
13 | Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml-%{version}.tar.gz | |
673a92f2 | 14 | # Source0-md5: d99d2edc7b26988dc5fa92163857bfbf |
1268e1c4 JB |
15 | URL: https://pypi.org/project/sphinxcontrib-serializinghtml/ |
16 | BuildRequires: python3-modules >= 1:3.5 | |
17 | BuildRequires: python3-setuptools | |
18 | %if %{with tests} | |
19 | BuildRequires: python3-Sphinx | |
20 | BuildRequires: python3-pytest | |
21 | %endif | |
22 | BuildRequires: rpm-pythonprov | |
23 | BuildRequires: rpmbuild(macros) >= 1.714 | |
24 | Requires: python3-modules >= 1:3.5 | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | sphinxcontrib-serializinghtml is a sphinx extension which outputs | |
30 | "serialized" HTML files (json and pickle). | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | sphinxcontrib-serializinghtml to rozszerzenie Sphinksa, zapisujÄ…ce | |
34 | "zserializowane" pliki HTML (w oparciu o json i pickle). | |
35 | ||
36 | %prep | |
37 | %setup -q -n sphinxcontrib-serializinghtml-%{version} | |
38 | ||
39 | %build | |
40 | %py3_build | |
41 | ||
42 | %if %{with tests} | |
673a92f2 | 43 | PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ |
1268e1c4 JB |
44 | %{__python3} -m pytest tests |
45 | %endif | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %py3_install | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc CHANGES LICENSE README.rst | |
58 | %{py3_sitescriptdir}/sphinxcontrib/serializinghtml | |
59 | %{py3_sitescriptdir}/sphinxcontrib_serializinghtml-%{version}-py*.egg-info | |
60 | %{py3_sitescriptdir}/sphinxcontrib_serializinghtml-%{version}-py*-nspkg.pth |