diff options
Diffstat (limited to 'redhat/bcfg2.spec.in')
-rw-r--r-- | redhat/bcfg2.spec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redhat/bcfg2.spec.in b/redhat/bcfg2.spec.in index 5610c1035..76caedaf2 100644 --- a/redhat/bcfg2.spec.in +++ b/redhat/bcfg2.spec.in @@ -5,7 +5,7 @@ Version: @VERSION@ Release: @RELEASE@ %define __python python -%{!?py_ver: %define py_ver %(python -c 'import sys;print(sys.version[0:3])')} +%{!?py_ver: %define py_ver %(%{__python} -c 'import sys;print(sys.version[0:3])')} %define pythonversion %{py_ver} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?_initrddir: %define _initrddir %{_sysconfdir}/rc.d/init.d} @@ -70,7 +70,7 @@ deployment strategies. Summary: Configuration management server Group: System Environment/Daemons Requires: bcfg2 = %{version}-%{release} -%if 0%{?py_ver} < 2.6 +%if "%{py_ver}" < "2.6" Requires: python-ssl %endif Requires: /usr/bin/openssl |