add patch from Matthias Saou to move vim-X11 to /usr/bin

This commit is contained in:
Karsten Hopp 2005-09-01 12:34:26 +00:00
parent 15a4f8234c
commit a8cc794030

208
vim.spec
View File

@ -26,7 +26,7 @@
Summary: The VIM editor. Summary: The VIM editor.
Name: vim Name: vim
Version: %{baseversion}.%{patchlevel} Version: %{baseversion}.%{patchlevel}
Release: 2 Release: 3
License: freeware License: freeware
Group: Applications/Editors Group: Applications/Editors
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2 Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
@ -50,93 +50,93 @@ Patch2005: vim-6.3-tmpfile.patch
Patch2010: xxd-locale.patch Patch2010: xxd-locale.patch
# Patches 001 < 999 are patches from the base maintainer. # Patches 001 < 999 are patches from the base maintainer.
# If you're as lazy as me, generate the list using # If you're as lazy as me, generate the list using
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/6.2.%03d\n" $i $i; done # for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.%03d\n" $i $i; done
Patch001: ftp://ftp.vim.org/pub/vim/patches/6.3.001 Patch001: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001
Patch002: ftp://ftp.vim.org/pub/vim/patches/6.3.002 Patch002: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.002
Patch003: ftp://ftp.vim.org/pub/vim/patches/6.3.003 Patch003: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.003
Patch004: ftp://ftp.vim.org/pub/vim/patches/6.3.004 Patch004: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.004
Patch005: ftp://ftp.vim.org/pub/vim/patches/6.3.005 Patch005: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.005
Patch006: ftp://ftp.vim.org/pub/vim/patches/6.3.006 Patch006: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.006
Patch007: ftp://ftp.vim.org/pub/vim/patches/6.3.007 Patch007: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.007
Patch008: ftp://ftp.vim.org/pub/vim/patches/6.3.008 Patch008: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.008
Patch009: ftp://ftp.vim.org/pub/vim/patches/6.3.009 Patch009: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.009
Patch010: ftp://ftp.vim.org/pub/vim/patches/6.3.010 Patch010: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.010
Patch011: ftp://ftp.vim.org/pub/vim/patches/6.3.011 Patch011: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.011
Patch012: ftp://ftp.vim.org/pub/vim/patches/6.3.012 Patch012: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.012
Patch013: ftp://ftp.vim.org/pub/vim/patches/6.3.013 Patch013: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.013
Patch014: ftp://ftp.vim.org/pub/vim/patches/6.3.014 Patch014: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.014
Patch015: ftp://ftp.vim.org/pub/vim/patches/6.3.015 Patch015: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.015
Patch016: ftp://ftp.vim.org/pub/vim/patches/6.3.016 Patch016: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.016
Patch017: ftp://ftp.vim.org/pub/vim/patches/6.3.017 Patch017: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.017
Patch018: ftp://ftp.vim.org/pub/vim/patches/6.3.018 Patch018: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.018
Patch019: ftp://ftp.vim.org/pub/vim/patches/6.3.019 Patch019: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.019
Patch020: ftp://ftp.vim.org/pub/vim/patches/6.3.020 Patch020: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.020
Patch021: ftp://ftp.vim.org/pub/vim/patches/6.3.021 Patch021: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.021
Patch022: ftp://ftp.vim.org/pub/vim/patches/6.3.022 Patch022: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.022
Patch023: ftp://ftp.vim.org/pub/vim/patches/6.3.023 Patch023: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.023
Patch024: ftp://ftp.vim.org/pub/vim/patches/6.3.024 Patch024: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.024
Patch025: ftp://ftp.vim.org/pub/vim/patches/6.3.025 Patch025: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.025
Patch026: ftp://ftp.vim.org/pub/vim/patches/6.3.026 Patch026: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.026
Patch027: ftp://ftp.vim.org/pub/vim/patches/6.3.027 Patch027: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.027
Patch028: ftp://ftp.vim.org/pub/vim/patches/6.3.028 Patch028: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.028
Patch029: ftp://ftp.vim.org/pub/vim/patches/6.3.029 Patch029: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.029
Patch030: ftp://ftp.vim.org/pub/vim/patches/6.3.030 Patch030: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.030
Patch031: ftp://ftp.vim.org/pub/vim/patches/6.3.031 Patch031: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.031
Patch032: ftp://ftp.vim.org/pub/vim/patches/6.3.032 Patch032: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.032
Patch033: ftp://ftp.vim.org/pub/vim/patches/6.3.033 Patch033: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.033
Patch034: ftp://ftp.vim.org/pub/vim/patches/6.3.034 Patch034: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.034
Patch035: ftp://ftp.vim.org/pub/vim/patches/6.3.035 Patch035: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.035
Patch036: ftp://ftp.vim.org/pub/vim/patches/6.3.036 Patch036: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.036
Patch037: ftp://ftp.vim.org/pub/vim/patches/6.3.037 Patch037: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.037
Patch038: ftp://ftp.vim.org/pub/vim/patches/6.3.038 Patch038: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.038
Patch039: ftp://ftp.vim.org/pub/vim/patches/6.3.039 Patch039: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.039
Patch040: ftp://ftp.vim.org/pub/vim/patches/6.3.040 Patch040: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.040
Patch041: ftp://ftp.vim.org/pub/vim/patches/6.3.041 Patch041: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.041
Patch042: ftp://ftp.vim.org/pub/vim/patches/6.3.042 Patch042: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.042
Patch043: ftp://ftp.vim.org/pub/vim/patches/6.3.043 Patch043: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.043
Patch044: ftp://ftp.vim.org/pub/vim/patches/6.3.044 Patch044: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.044
Patch045: ftp://ftp.vim.org/pub/vim/patches/6.3.045 Patch045: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.045
Patch046: ftp://ftp.vim.org/pub/vim/patches/6.3.046 Patch046: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.046
Patch047: ftp://ftp.vim.org/pub/vim/patches/6.3.047 Patch047: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.047
Patch048: ftp://ftp.vim.org/pub/vim/patches/6.3.048 Patch048: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.048
Patch049: ftp://ftp.vim.org/pub/vim/patches/6.3.049 Patch049: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.049
Patch050: ftp://ftp.vim.org/pub/vim/patches/6.3.050 Patch050: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.050
Patch051: ftp://ftp.vim.org/pub/vim/patches/6.3.051 Patch051: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.051
Patch052: ftp://ftp.vim.org/pub/vim/patches/6.3.052 Patch052: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.052
Patch053: ftp://ftp.vim.org/pub/vim/patches/6.3.053 Patch053: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.053
Patch054: ftp://ftp.vim.org/pub/vim/patches/6.3.054 Patch054: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.054
Patch055: ftp://ftp.vim.org/pub/vim/patches/6.3.055 Patch055: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.055
Patch056: ftp://ftp.vim.org/pub/vim/patches/6.3.056 Patch056: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.056
Patch057: ftp://ftp.vim.org/pub/vim/patches/6.3.057 Patch057: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.057
Patch058: ftp://ftp.vim.org/pub/vim/patches/6.3.058 Patch058: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.058
Patch059: ftp://ftp.vim.org/pub/vim/patches/6.3.059 Patch059: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.059
Patch060: ftp://ftp.vim.org/pub/vim/patches/6.3.060 Patch060: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.060
Patch061: ftp://ftp.vim.org/pub/vim/patches/6.3.061 Patch061: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.061
Patch062: ftp://ftp.vim.org/pub/vim/patches/6.3.062 Patch062: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.062
Patch063: ftp://ftp.vim.org/pub/vim/patches/6.3.063 Patch063: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.063
Patch064: ftp://ftp.vim.org/pub/vim/patches/6.3.064 Patch064: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.064
Patch065: ftp://ftp.vim.org/pub/vim/patches/6.3.065 Patch065: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.065
Patch066: ftp://ftp.vim.org/pub/vim/patches/6.3.066 Patch066: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.066
Patch067: ftp://ftp.vim.org/pub/vim/patches/6.3.067 Patch067: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.067
Patch068: ftp://ftp.vim.org/pub/vim/patches/6.3.068 Patch068: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.068
Patch069: ftp://ftp.vim.org/pub/vim/patches/6.3.069 Patch069: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.069
Patch070: ftp://ftp.vim.org/pub/vim/patches/6.3.070 Patch070: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.070
Patch071: ftp://ftp.vim.org/pub/vim/patches/6.3.071 Patch071: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.071
Patch072: ftp://ftp.vim.org/pub/vim/patches/6.3.072 Patch072: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.072
Patch073: ftp://ftp.vim.org/pub/vim/patches/6.3.073 Patch073: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.073
Patch074: ftp://ftp.vim.org/pub/vim/patches/6.3.074 Patch074: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.074
Patch075: ftp://ftp.vim.org/pub/vim/patches/6.3.075 Patch075: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.075
Patch076: ftp://ftp.vim.org/pub/vim/patches/6.3.076 Patch076: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.076
Patch077: ftp://ftp.vim.org/pub/vim/patches/6.3.077 Patch077: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.077
Patch078: ftp://ftp.vim.org/pub/vim/patches/6.3.078 Patch078: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.078
Patch079: ftp://ftp.vim.org/pub/vim/patches/6.3.079 Patch079: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.079
Patch080: ftp://ftp.vim.org/pub/vim/patches/6.3.080 Patch080: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.080
Patch081: ftp://ftp.vim.org/pub/vim/patches/6.3.081 Patch081: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.081
Patch082: ftp://ftp.vim.org/pub/vim/patches/6.3.082 Patch082: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.082
Patch083: ftp://ftp.vim.org/pub/vim/patches/6.3.083 Patch083: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.083
Patch084: ftp://ftp.vim.org/pub/vim/patches/6.3.084 Patch084: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.084
Patch085: ftp://ftp.vim.org/pub/vim/patches/6.3.085 Patch085: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.085
Patch086: ftp://ftp.vim.org/pub/vim/patches/6.3.086 Patch086: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.086
Patch3000: vim-6.1-syntax.patch Patch3000: vim-6.1-syntax.patch
Patch3001: vim-6.2-rh1.patch Patch3001: vim-6.2-rh1.patch
@ -386,7 +386,7 @@ export RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]')
%if "%{withgui}" == "1" %if "%{withgui}" == "1"
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \ %configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
--disable-tclinterp --with-x=yes --exec-prefix=/usr/X11R6 \ --disable-tclinterp --with-x=yes \
--enable-xim --enable-multibyte \ --enable-xim --enable-multibyte \
--enable-gtk2-check --enable-gui=gtk2 \ --enable-gtk2-check --enable-gui=gtk2 \
--with-compiledby="<bugzilla@redhat.com>" --enable-cscope \ --with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
@ -434,7 +434,7 @@ make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/bin mkdir -p $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim,X11R6/bin} mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim}
cp -f %{SOURCE5} . cp -f %{SOURCE5} .
cd src cd src
@ -443,7 +443,7 @@ mv $RPM_BUILD_ROOT/bin/xxd $RPM_BUILD_ROOT/usr/bin
make installmacros DESTDIR=$RPM_BUILD_ROOT make installmacros DESTDIR=$RPM_BUILD_ROOT
%if "%{withgui}" == "1" %if "%{withgui}" == "1"
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
install -m755 gvim $RPM_BUILD_ROOT/usr/X11R6/bin install -m755 gvim $RPM_BUILD_ROOT/usr/bin
install -m644 %{SOURCE7} \ install -m644 %{SOURCE7} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png
install -m644 %{SOURCE8} \ install -m644 %{SOURCE8} \
@ -473,13 +473,13 @@ install -m755 enhanced-vim $RPM_BUILD_ROOT/usr/bin/vim
ln -sf vim.1.gz .%{_mandir}/man1/rvim.1.gz ln -sf vim.1.gz .%{_mandir}/man1/rvim.1.gz
ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz
%if "%{withgui}" == "1" %if "%{withgui}" == "1"
ln -sf gvim ./usr/X11R6/bin/gview ln -sf gvim ./usr/bin/gview
ln -sf gvim ./usr/X11R6/bin/gex ln -sf gvim ./usr/bin/gex
ln -sf gvim ./usr/X11R6/bin/evim ln -sf gvim ./usr/bin/evim
ln -sf gvim ./usr/X11R6/bin/gvimdiff ln -sf gvim ./usr/bin/gvimdiff
ln -sf vim.1.gz .%{_mandir}/man1/gvim.1.gz ln -sf vim.1.gz .%{_mandir}/man1/gvim.1.gz
ln -sf vim.1.gz .%{_mandir}/man1/gvimdiff.1.gz ln -sf vim.1.gz .%{_mandir}/man1/gvimdiff.1.gz
ln -sf gvim ./usr/X11R6/bin/vimx ln -sf gvim ./usr/bin/vimx
%if "%{desktop_file}" == "1" %if "%{desktop_file}" == "1"
mkdir -p $RPM_BUILD_ROOT/usr/share/applications mkdir -p $RPM_BUILD_ROOT/usr/share/applications
desktop-file-install --vendor net \ desktop-file-install --vendor net \
@ -626,18 +626,22 @@ rm -rf $RPM_BUILD_ROOT
%else %else
/etc/X11/applnk/*/gvim.desktop /etc/X11/applnk/*/gvim.desktop
%endif %endif
/usr/X11R6/bin/gvim /usr/bin/gvim
/usr/X11R6/bin/gvimdiff /usr/bin/gvimdiff
/usr/X11R6/bin/gview /usr/bin/gview
/usr/X11R6/bin/gex /usr/bin/gex
/usr/X11R6/bin/vimx /usr/bin/vimx
/usr/X11R6/bin/evim /usr/bin/evim
%{_mandir}/man1/evim.* %{_mandir}/man1/evim.*
%{_mandir}/man1/gvim* %{_mandir}/man1/gvim*
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*
%endif %endif
%changelog %changelog
* Thu Sep 01 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-3
- move X11 stuff to /usr/bin per request of xorg.x11 maintainer
Matthias Saou (#167176)
* Tue Aug 16 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-2 * Tue Aug 16 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-2
- rebuild - rebuild