From 87087d2d5d15f108269406a160d9afb6e7a7ea2d Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 5 Jan 2010 15:34:49 +0000 Subject: redhat: spec file fixes from Jonathan Billings Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5658 ce84e21b-d406-0410-9b95-82705330c041 --- misc/bcfg2.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec index 730a1b5b7..8f7d96f0d 100644 --- a/misc/bcfg2.spec +++ b/misc/bcfg2.spec @@ -1,6 +1,6 @@ %define release 1 %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} @@ -59,7 +59,7 @@ Version: %{version} Summary: Bcfg2 Server Group: System Tools Requires: bcfg2 -%if 0%{?py_ver} < 2.6 +%if "%{py_ver}" < "2.6" Requires: python-ssl %endif Requires: %{lxmldep} >= 1.2.1 -- cgit v1.2.3-1-g7c22