- fix SA_LIB_DIR directory

This commit is contained in:
Ivana Varekova 2005-10-07 14:07:28 +00:00
parent 572f6e763f
commit f7e7ef9167

View File

@ -33,7 +33,7 @@ activity.
# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and
# send the upstream maintainer a patch.
CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\""
make CFLAGS="$CFLAGS" PREFIX=%{_prefix} LIB_DIR=%{_libdir} MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir}
make CFLAGS="$CFLAGS" PREFIX=%{_prefix} LIB_DIR=%{_libdir} SA_LIB_DIR=%{_libdir}/sa MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir}
# Thou shalt not write to source files or patches
rm -f sysstat.crond
@ -46,7 +46,7 @@ cat %{SOURCE1} > sysstat.crond
%install
rm -rf %{buildroot}
%makeinstall PREFIX=%{_prefix} LIB_DIR=%{_libdir} MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir} INIT_DIR=%{_initrddir}
%makeinstall PREFIX=%{_prefix} SA_LIB_DIR=%{_libdir}/sa LIB_DIR=%{_libdir} MAN_DIR=%{_mandir} DATA_DIR=%{_datadir} DOC_DIR=%{_docdir} INIT_DIR=%{_initrddir}
#make install MAN_DIR=%{_mandir}
mkdir -p %{buildroot}/etc/{cron.daily,cron.d,sysconfig}