From 253a1e10aaeaab1d4329d9b99f954c47728a7f84 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 9 Aug 2015 11:52:13 -0600 Subject: [PATCH] Add conditional for python-sphinx buildrequires when with_docs is not set. - Fixes bug #1251700 --- python-nose.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-nose.spec b/python-nose.spec index ed454fa..d0b198f 100644 --- a/python-nose.spec +++ b/python-nose.spec @@ -17,7 +17,7 @@ Name: python-nose Version: 1.3.7 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Discovery-based unittest extension for Python Group: Development/Languages @@ -58,7 +58,9 @@ output capture and more. %package docs Summary: Nose Documentation Group: Documentation +%if 0%{?with_docs} BuildRequires: python-sphinx +%endif Requires: python-nose %description docs @@ -181,6 +183,10 @@ rm -rf %{buildroot} %endif # with_docs %changelog +* Sun Aug 09 2015 Kevin Fenzi 1.3.7-5 +- Add conditional for python-sphinx buildrequires when with_docs is not set. +- Fixes bug #1251700 + * Fri Jul 24 2015 Kevin Fenzi 1.3.7-4 - Version provides correctly for python2-nose.