update vim icons (#1004788)
check if 'id -u' returns empty string (vim.sh)
BIN
gvim16.png
Before Width: | Height: | Size: 904 B After Width: | Height: | Size: 226 B |
BIN
gvim32.png
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 347 B |
BIN
gvim48.png
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 474 B |
BIN
gvim64.png
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 4.4 KiB |
15
vim.spec
@ -20,7 +20,7 @@ Summary: The VIM editor
|
||||
URL: http://www.vim.org/
|
||||
Name: vim
|
||||
Version: %{baseversion}.%{patchlevel}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: Vim
|
||||
Group: Applications/Editors
|
||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
|
||||
@ -263,7 +263,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
||||
%patch3011 -p1
|
||||
%patch3012 -p1
|
||||
|
||||
%if %{?fedora}%{!?fedora:0} >= 20 || %{?rhel}%{!?rhel:0} >= 7
|
||||
%if %{?fedora}%{!?fedora:0} == 20 || %{?rhel}%{!?rhel:0} >= 7
|
||||
%patch3013 -p1
|
||||
%endif
|
||||
%patch3014 -p1
|
||||
@ -454,15 +454,16 @@ chmod 644 ../runtime/doc/vim2html.pl
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
|
||||
cat >%{buildroot}/%{_sysconfdir}/profile.d/vim.sh <<EOF
|
||||
if [ -n "\$BASH_VERSION" -o -n "\$KSH_VERSION" -o -n "\$ZSH_VERSION" ]; then
|
||||
[ -x /%{_bindir}/id ] || return
|
||||
[ \`/%{_bindir}/id -u\` -le 200 ] && return
|
||||
[ -x %{_bindir}/id ] || return
|
||||
ID=\`/usr/bin/id -u\`
|
||||
[ -n "\$ID" -a "\$ID" -le 200 ] && return
|
||||
# for bash and zsh, only if no alias is already set
|
||||
alias vi >/dev/null 2>&1 || alias vi=vim
|
||||
fi
|
||||
EOF
|
||||
cat >%{buildroot}/%{_sysconfdir}/profile.d/vim.csh <<EOF
|
||||
if ( -x /usr/bin/id ) then
|
||||
if ( "\`/usr/bin/id -u\`" > 100 ) then
|
||||
if ( "\`/usr/bin/id -u\`" > 200 ) then
|
||||
alias vi vim
|
||||
endif
|
||||
endif
|
||||
@ -745,6 +746,10 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 11 2013 Karsten Hopp <karsten@redhat.com> 7.4.027-2
|
||||
- update vim icons (#1004788)
|
||||
- check if 'id -u' returns empty string (vim.sh)
|
||||
|
||||
* Wed Sep 11 2013 Karsten Hopp <karsten@redhat.com> 7.4.027-1
|
||||
- patchlevel 027
|
||||
|
||||
|