]> git.pld-linux.org Git - packages/python-sphinx_rtd_theme.git/blame - python-sphinx_rtd_theme.spec
- updated to 0.4.3
[packages/python-sphinx_rtd_theme.git] / python-sphinx_rtd_theme.spec
CommitLineData
8e8cef05
JK
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
6c3b921d 5%bcond_without tests # unit tests
8e8cef05
JK
6
7%define module sphinx_rtd_theme
65e13b34
JB
8Summary: ReadTheDocs.org theme for Sphinx
9Summary(pl.UTF-8): Motyw ReadTheDocs.org dla Sphinksa
8e8cef05 10Name: python-%{module}
6c3b921d 11Version: 0.4.3
65e13b34 12Release: 1
8e8cef05
JK
13License: MIT
14Group: Libraries/Python
65e13b34 15#Source0Download: https://pypi.org/simple/sphinx_rtd_theme/
9eb3cc7f 16Source0: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/%{module}-%{version}.tar.gz
6c3b921d 17# Source0-md5: 6c50f30bc39046f497d336039a0c13fa
8e8cef05
JK
18URL: https://github.com/snide/sphinx_rtd_theme/
19BuildRequires: rpm-pythonprov
65e13b34 20BuildRequires: rpmbuild(macros) >= 1.714
8e8cef05 21%if %{with python2}
168104da 22BuildRequires: python-modules >= 1:2.7
8e8cef05 23BuildRequires: python-setuptools
6c3b921d
JB
24%if %{with tests}
25BuildRequires: python-pytest
26BuildRequires: python-readthedocs-sphinx-ext
27%endif
8e8cef05
JK
28%endif
29%if %{with python3}
65e13b34 30BuildRequires: python3-modules >= 1:3.3
8e8cef05 31BuildRequires: python3-setuptools
6c3b921d
JB
32%if %{with tests}
33BuildRequires: python3-pytest
34BuildRequires: python3-readthedocs-sphinx-ext
35%endif
8e8cef05 36%endif
168104da 37Requires: python-modules >= 1:2.7
8e8cef05
JK
38BuildArch: noarch
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
759a6ef1
JB
42This is a mobile-friendly Sphinx theme made for readthedocs.org.
43
44%description -l pl.UTF-8
45Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
46wykonany przez readthedocs.org.
8e8cef05
JK
47
48%package -n python3-%{module}
65e13b34
JB
49Summary: ReadTheDocs.org theme for Sphinx
50Summary(pl.UTF-8): Motyw ReadTheDocs.org dla Sphinksa
8e8cef05 51Group: Libraries/Python
65e13b34 52Requires: python3-modules >= 1:3.3
8e8cef05
JK
53
54%description -n python3-%{module}
759a6ef1
JB
55This is a mobile-friendly Sphinx theme made for readthedocs.org.
56
57%description -n python3-%{module} -l pl.UTF-8
58Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
59wykonany przez readthedocs.org.
8e8cef05
JK
60
61%prep
62%setup -q -n %{module}-%{version}
63
64%build
65%if %{with python2}
6c3b921d
JB
66%py_build
67
68%if %{with tests}
69%{__python} -m pytest tests
70%endif
8e8cef05
JK
71%endif
72
73%if %{with python3}
6c3b921d
JB
74%py3_build
75
76%if %{with tests}
77%{__python3} -m pytest tests
78%endif
8e8cef05
JK
79%endif
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84%if %{with python2}
415c71e6 85%py_install
8e8cef05
JK
86
87%py_postclean
88%endif
89
90%if %{with python3}
415c71e6 91%py3_install
8e8cef05
JK
92%endif
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%if %{with python2}
98%files
99%defattr(644,root,root,755)
9eb3cc7f 100%doc LICENSE README.rst
8e8cef05
JK
101%{py_sitescriptdir}/%{module}
102%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
103%endif
104
105%if %{with python3}
106%files -n python3-%{module}
107%defattr(644,root,root,755)
9eb3cc7f 108%doc LICENSE README.rst
8e8cef05
JK
109%{py3_sitescriptdir}/%{module}
110%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
111%endif
This page took 0.076537 seconds and 4 git commands to generate.