summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-06-15 12:31:46 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-06-15 12:31:46 +0000
commitef5ffe465fc50425f6ecd3e0695241ed4d1eacbb (patch)
tree6964f86d9c86c9cda46292fafe1a8c366eb8cbd1
parent3b1fc3033d03a2e9278bc7888327886ed5e97232 (diff)
downloadbcfg2-ef5ffe465fc50425f6ecd3e0695241ed4d1eacbb.tar.gz
bcfg2-ef5ffe465fc50425f6ecd3e0695241ed4d1eacbb.tar.bz2
bcfg2-ef5ffe465fc50425f6ecd3e0695241ed4d1eacbb.zip
spec fix from mbrady
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3312 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--misc/bcfg2.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec
index 1812a3d4c..fface7de8 100644
--- a/misc/bcfg2.spec
+++ b/misc/bcfg2.spec
@@ -1,6 +1,6 @@
%define release 0.0pre3
%define __python python
-%{!?py_ver: %define py_ver 2.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}