From 8e2227aca99664a5748c76fa739f64903c69261e Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Jan 19 2005 12:42:54 +0000 Subject: - don't set vim alias for root --- diff --git a/vim.spec b/vim.spec index 7c858b2..51acf23 100644 --- a/vim.spec +++ b/vim.spec @@ -315,8 +315,8 @@ autoconf perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h perl -pi -e "s,\\\$VIM,/usr/share/vim/%{vimdir}/macros,g" os_unix.h -export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" -export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" +export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2" +export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2" %if "%{withruby}" == "1" export RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]') %endif @@ -467,12 +467,14 @@ chmod 644 ../runtime/doc/vim2html.pl mkdir -p $RPM_BUILD_ROOT/etc/profile.d cat >$RPM_BUILD_ROOT/etc/profile.d/vim.sh </dev/null 2>&1 || alias vi=vim fi EOF cat >$RPM_BUILD_ROOT/etc/profile.d/vim.csh <