summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-16 20:44:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-16 20:44:39 +0000
commit16ccc78c4264e60fad98d14b8393eb57210c55d2 (patch)
treeb2c7de840c7f7ca4ab7b7c1a6eb94a1e18085bf6 /misc
parent2dc979ff1d27862ce02ecfe9e5b9da09b955c9a6 (diff)
downloadbcfg2-16ccc78c4264e60fad98d14b8393eb57210c55d2.tar.gz
bcfg2-16ccc78c4264e60fad98d14b8393eb57210c55d2.tar.bz2
bcfg2-16ccc78c4264e60fad98d14b8393eb57210c55d2.zip
Spec fixes for SLES
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2828 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'misc')
-rw-r--r--misc/bcfg2.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec
index e561f50c3..238f882f9 100644
--- a/misc/bcfg2.spec
+++ b/misc/bcfg2.spec
@@ -1,7 +1,8 @@
%define release 0.0rc5
%define __python python
-%define pythonversion 2.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}
Name: bcfg2
Version: 0.9.2
@@ -65,7 +66,7 @@ Bcfg2 client
%{__python}%{pythonversion} setup.py build
%install
-%{__python}%{pythonversion} setup.py install --root=%{buildroot} --record=INSTALLED_FILES
+%{__python}%{pythonversion} setup.py install --root=%{buildroot} --record=INSTALLED_FILES --prefix=/usr
%{__install} -d %{buildroot}%{_bindir}
%{__install} -d %{buildroot}%{_sbindir}
%{__install} -d %{buildroot}%{_initrddir}