From 441f360036fb6376fe46d199906b69de089b8301 Mon Sep 17 00:00:00 2001
From: Frederic Lepied <frederic.lepied@redhat.com>
Date: Wed, 13 Jan 2016 09:50:31 +0100
Subject: [PATCH] fix typos in conditions preventing build

Change-Id: I67838d1f8bdc9d7bca38206fd25f372e5e247266
---
 python-magnumclient.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python-magnumclient.spec b/python-magnumclient.spec
index d3ca12d..ff573f1 100644
--- a/python-magnumclient.spec
+++ b/python-magnumclient.spec
@@ -155,7 +155,7 @@ rm -rf html/.{doctrees,buildinfo}
 
 %install
 
-%if 0%{with_python3}
+%if 0%{?with_python3}
 %py3_install
 %if %{default_python} >= 3
 mv %{buildroot}%{_bindir}/magnum ./magnum.py3
@@ -164,7 +164,7 @@ mv %{buildroot}%{_bindir}/magnum ./magnum.py3
 
 %py2_install
 
-%if %{default_python} >= 3
+%if 0%{?default_python} >= 3
 mv magnum.py3 %{buildroot}%{_bindir}/magnum
 %endif
 
@@ -180,7 +180,7 @@ mv magnum.py3 %{buildroot}%{_bindir}/magnum
 %doc README.rst
 %license LICENSE
 %{python2_sitelib}/%{pname}
-%if %{default_python} <= 2
+%if 0%{?default_python} <= 2
 %{_bindir}/magnum
 %endif
 %{python2_sitelib}/*.egg-info
@@ -190,7 +190,7 @@ mv magnum.py3 %{buildroot}%{_bindir}/magnum
 %files -n python3-%{pname}
 %doc README.rst
 %license LICENSE
-%if %{default_python} >= 3
+%if 0%{?default_python} >= 3
 %{_bindir}/magnum
 %endif
 %{python3_sitelib}/magnumclient
-- 
GitLab