From 42cc1672882db1bd5707bb02a86f49fc01f2ef83 Mon Sep 17 00:00:00 2001 From: Alan Pevec Date: Dec 11 2015 12:53:53 +0000 Subject: Fix python3 conditional for EL7 build in CBS --- diff --git a/python-zake.spec b/python-zake.spec index 95a6aa6..2b7f60f 100644 --- a/python-zake.spec +++ b/python-zake.spec @@ -42,7 +42,7 @@ It includes the following functionality: * Kazoo *mostly* compatible client API. * Sync/transaction/create/get/delete... ... -%if 0%{with_python3} +%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: Testing utilities for the kazoo library %{?python_provide:%python_provide python3-%{pypi_name}} @@ -70,14 +70,14 @@ cp -p %{SOURCE1} . %build %py2_build -%if 0%{with_python3} +%if 0%{?with_python3} %py3_build %endif %install %py2_install -%if 0%{with_python3} +%if 0%{?with_python3} %py3_install %endif @@ -87,7 +87,7 @@ cp -p %{SOURCE1} . %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%if 0%{with_python3} +%if 0%{?with_python3} %files -n python3-%{pypi_name} %doc README.rst %license LICENSE