From 5402525c70e332492c13c112d501d1c37f30dad9 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 12 Apr 2018 15:45:39 +0200 Subject: [PATCH] Conditionalize the python2 docs dependency. --- python-mako.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-mako.spec b/python-mako.spec index c661453..7fcd339 100644 --- a/python-mako.spec +++ b/python-mako.spec @@ -74,7 +74,11 @@ Recommends: python2-beaker Summary: Documentation for the Mako template library for Python Group: Documentation License: (MIT and Python) and (BSD or GPLv2) +%if %{with python3} +Requires: python3-mako = %{version}-%{release} +%else Requires: python2-mako = %{version}-%{release} +%endif #{with python3} %description doc Mako is a template library written in Python. It provides a familiar, non-XML @@ -102,7 +106,7 @@ Recommends: python3-beaker %if %{without python2} Obsoletes: python2-mako < %{version}-%{release} -%endif +%endif #{without python2} %description -n python3-mako Mako is a template library written in Python. It provides a familiar, non-XML @@ -154,7 +158,7 @@ rm -rf doc/build %{python2_sitelib}/* %endif %{with python2} -%if 0%{with python3} +%if %{with python3} %files -n python3-mako %license LICENSE %doc CHANGES README.rst examples