From 16ccc78c4264e60fad98d14b8393eb57210c55d2 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 16 Feb 2007 20:44:39 +0000 Subject: Spec fixes for SLES git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2828 ce84e21b-d406-0410-9b95-82705330c041 --- misc/bcfg2.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'misc') 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} -- cgit v1.2.3-1-g7c22