Don't build docs on epel7.

i10ce
Ralph Bean 10 years ago
parent 9ef5a7d1c4
commit a9fa12e08c

@ -3,13 +3,14 @@
%if 0%{?fedora} %if 0%{?fedora}
%global with_python3 1 %global with_python3 1
%global with_docs 1
%endif %endif
%{!?_licensedir: %global license %%doc} %{!?_licensedir: %global license %%doc}
Name: python-%{sname} Name: python-%{sname}
Version: 1.10.4 Version: 1.10.4
Release: 5%{?dist} Release: 6%{?dist}
Summary: A Python module for decorators, wrappers and monkey patching Summary: A Python module for decorators, wrappers and monkey patching
License: BSD License: BSD
@ -27,6 +28,7 @@ The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of for Python, which can be used as the basis for the construction of
function wrappers and decorator functions. function wrappers and decorator functions.
%if 0%{?with_docs}
%package doc %package doc
Summary: Documentation for the wrapt module Summary: Documentation for the wrapt module
@ -35,6 +37,7 @@ BuildRequires: python-sphinx_rtd_theme
%description doc %description doc
Documentation for the wrapt module Documentation for the wrapt module
%endif
%if 0%{?with_python3} %if 0%{?with_python3}
%package -n python3-wrapt %package -n python3-wrapt
@ -64,10 +67,12 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd popd
%endif %endif
%if 0%{?with_docs}
# for docs # for docs
pushd docs pushd docs
sphinx-build -b html -d build/doctrees . build/html sphinx-build -b html -d build/doctrees . build/html
popd popd
%endif
%install %install
%if 0%{?with_python3} %if 0%{?with_python3}
@ -83,8 +88,10 @@ popd
%{python2_sitearch}/%{sname} %{python2_sitearch}/%{sname}
%{python2_sitearch}/%{sname}-%{version}-py?.?.egg-info %{python2_sitearch}/%{sname}-%{version}-py?.?.egg-info
%if 0%{?with_docs}
%files doc %files doc
%doc docs/build/html %doc docs/build/html
%endif
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-wrapt %files -n python3-wrapt
@ -95,6 +102,9 @@ popd
%endif %endif
%changelog %changelog
* Fri May 15 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-6
- Don't build docs on epel7 (the rtd theme is problematic).
* Sat Apr 11 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-5 * Sat Apr 11 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-5
- Add python3 subpackage - Add python3 subpackage

Loading…
Cancel
Save