From a9fa12e08cbce0540a1819118da130a698fa62b0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 15 May 2015 21:47:02 -0400 Subject: [PATCH] Don't build docs on epel7. --- python-wrapt.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python-wrapt.spec b/python-wrapt.spec index 8c2a42c..27f0782 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -3,13 +3,14 @@ %if 0%{?fedora} %global with_python3 1 +%global with_docs 1 %endif %{!?_licensedir: %global license %%doc} Name: python-%{sname} Version: 1.10.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A Python module for decorators, wrappers and monkey patching 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 function wrappers and decorator functions. +%if 0%{?with_docs} %package doc Summary: Documentation for the wrapt module @@ -35,6 +37,7 @@ BuildRequires: python-sphinx_rtd_theme %description doc Documentation for the wrapt module +%endif %if 0%{?with_python3} %package -n python3-wrapt @@ -64,10 +67,12 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build popd %endif +%if 0%{?with_docs} # for docs pushd docs sphinx-build -b html -d build/doctrees . build/html popd +%endif %install %if 0%{?with_python3} @@ -83,8 +88,10 @@ popd %{python2_sitearch}/%{sname} %{python2_sitearch}/%{sname}-%{version}-py?.?.egg-info +%if 0%{?with_docs} %files doc %doc docs/build/html +%endif %if 0%{?with_python3} %files -n python3-wrapt @@ -95,6 +102,9 @@ popd %endif %changelog +* Fri May 15 2015 Ralph Bean - 1.10.4-6 +- Don't build docs on epel7 (the rtd theme is problematic). + * Sat Apr 11 2015 Ralph Bean - 1.10.4-5 - Add python3 subpackage