]> git.pld-linux.org Git - packages/python-sphinx_py3doc_enhanced_theme.git/blame - python-sphinx_py3doc_enhanced_theme.spec
- release 2 (by relup.sh)
[packages/python-sphinx_py3doc_enhanced_theme.git] / python-sphinx_py3doc_enhanced_theme.spec
CommitLineData
b3a61f4a
JB
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5
6Summary: Enhanced Sphinx theme (based on Python 3 docs)
7Summary(pl.UTF-8): Rozszerzony motyw dla Sphinksa (oparty na dokumentacji Pythona 3)
8Name: python-sphinx_py3doc_enhanced_theme
9Version: 2.4.0
c60be9ef 10Release: 2
b3a61f4a
JB
11License: BSD
12Group: Libraries/Python
13#Source0Download: https://pypi.python.org/simple/sphinx_py3doc_enhanced_theme
14Source0: https://files.pythonhosted.org/packages/source/s/sphinx_py3doc_enhanced_theme/sphinx-py3doc-enhanced-theme-%{version}.tar.gz
15# Source0-md5: 38af7b770835cca10a6034abdcc58989
16URL: https://github.com/ionelmc/sphinx-py3doc-enhanced-theme
17%if %{with python2}
18BuildRequires: python-modules >= 1:2.6
19BuildRequires: python-setuptools
20%endif
21%if %{with python3}
22BuildRequires: python3-modules >= 1:3.3
23BuildRequires: python3-setuptools
24%endif
25BuildRequires: rpm-pythonprov
26BuildRequires: rpmbuild(macros) >= 1.714
27Requires: python-modules >= 1:2.6
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32A theme based on the theme of https://docs.python.org/3/ with some
33responsive enhancements.
34
35%description -l pl.UTF-8
36Motyw oparty na motywie https://docs.python.org/3/ z pewnymi
37reagującymi rozszerzeniami.
38
39%package -n python3-sphinx_py3doc_enhanced_theme
40Summary: Enhanced Sphinx theme (based on Python 3 docs)
41Summary(pl.UTF-8): Rozszerzony motyw dla Sphinksa (oparty na dokumentacji Pythona 3)
42Group: Libraries/Python
43Requires: python3-modules >= 1:3.3
44
45%description -n python3-sphinx_py3doc_enhanced_theme
46A theme based on the theme of https://docs.python.org/3/ with some
47responsive enhancements.
48
49%description -n python3-sphinx_py3doc_enhanced_theme -l pl.UTF-8
50Motyw oparty na motywie https://docs.python.org/3/ z pewnymi
51reagującymi rozszerzeniami.
52
53%prep
54%setup -q -n sphinx-py3doc-enhanced-theme-%{version}
55
56%build
57%if %{with python2}
58%py_build
59%endif
60
61%if %{with python3}
62%py3_build
63%endif
64
65%install
66rm -rf $RPM_BUILD_ROOT
67
68%if %{with python2}
69%py_install
70
71%py_postclean
72%endif
73
74%if %{with python3}
75%py3_install
76%endif
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%if %{with python2}
82%files
83%defattr(644,root,root,755)
84%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
85%{py_sitescriptdir}/sphinx_py3doc_enhanced_theme
86%{py_sitescriptdir}/sphinx_py3doc_enhanced_theme-%{version}-py*.egg-info
87%endif
88
89%if %{with python3}
90%files -n python3-sphinx_py3doc_enhanced_theme
91%defattr(644,root,root,755)
92%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
93%{py3_sitescriptdir}/sphinx_py3doc_enhanced_theme
94%{py3_sitescriptdir}/sphinx_py3doc_enhanced_theme-%{version}-py*.egg-info
95%endif
This page took 0.104437 seconds and 4 git commands to generate.