|
cvsdist |
1401a3 |
%define WITH_SELINUX 1
|
|
cvsdist |
2c14b3 |
%define desktop_file 1
|
|
cvsdist |
2c14b3 |
%if %{desktop_file}
|
|
cvsdist |
2c14b3 |
%define desktop_file_utils_version 0.2.93
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
e6a956 |
# Set this to 1 if you're building the enterprise version
|
|
cvsdist |
e6a956 |
%define enterprise 0
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
e6a956 |
%if %{enterprise}
|
|
cvsdist |
e6a956 |
# don't build gvim
|
|
cvsdist |
e6a956 |
%define withgui 0
|
|
cvsdist |
e6a956 |
# don't include ruby interpreter
|
|
cvsdist |
e6a956 |
%define withruby 0
|
|
cvsdist |
e6a956 |
%else
|
|
cvsdist |
2c14b3 |
%define withgui 1
|
|
cvsdist |
e6a956 |
%define withruby 0
|
|
cvsdist |
4e2ca8 |
%define withnetbeans 0
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
1b4d76 |
%define baseversion 6.3
|
|
cvsdist |
1b4d76 |
%define vimdir vim63
|
|
Karsten Hopp |
839be0 |
%define patchlevel 086
|
|
cvsdist |
2c14b3 |
|
|
cvsdist |
f1dd31 |
Summary: The VIM editor.
|
|
cvsdist |
f1dd31 |
Name: vim
|
|
cvsdist |
e6a956 |
Version: %{baseversion}.%{patchlevel}
|
|
Karsten Hopp |
15a4f8 |
Release: 2
|
|
cvsdist |
1b13d4 |
License: freeware
|
|
cvsdist |
f1dd31 |
Group: Applications/Editors
|
|
cvsdist |
e6a956 |
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
|
|
cvsdist |
e6a956 |
Source1: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}-lang.tar.gz
|
|
cvsdist |
e6a956 |
Source2: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}-extra.tar.gz
|
|
cvsdist |
e6a956 |
Source3: gvim.desktop
|
|
cvsdist |
e6a956 |
Source4: vimrc
|
|
cvsdist |
e6a956 |
Source5: ftp://ftp.vim.org/pub/vim/patches/README.patches
|
|
cvsdist |
1401a3 |
Source6: spec.vim
|
|
cvsdist |
0c2235 |
Source7: gvim16.png
|
|
cvsdist |
0c2235 |
Source8: gvim32.png
|
|
cvsdist |
0c2235 |
Source9: gvim48.png
|
|
cvsdist |
0c2235 |
Source10: gvim64.png
|
|
cvsdist |
705de6 |
Source11: Changelog.rpm
|
|
cvsdist |
e6a956 |
Patch2000: vim-4.2-speed_t.patch
|
|
cvsdist |
1b4d76 |
Patch2001: vim-5.6a-paths.patch
|
|
cvsdist |
1b4d76 |
Patch2002: vim-6.0-fixkeys.patch
|
|
cvsdist |
1b4d76 |
Patch2003: vim-6.2-specsyntax.patch
|
|
cvsdist |
1b4d76 |
Patch2004: vim-6.0r-crv.patch
|
|
Karsten Hopp |
1e6c08 |
Patch2005: vim-6.3-tmpfile.patch
|
|
cvsdist |
e6a956 |
Patch2010: xxd-locale.patch
|
|
cvsdist |
e6a956 |
# Patches 001 < 999 are patches from the base maintainer.
|
|
cvsdist |
2c14b3 |
# If you're as lazy as me, generate the list using
|
|
cvsdist |
5c68f5 |
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/6.2.%03d\n" $i $i; done
|
|
cvsdist |
1b4d76 |
Patch001: ftp://ftp.vim.org/pub/vim/patches/6.3.001
|
|
cvsdist |
1b4d76 |
Patch002: ftp://ftp.vim.org/pub/vim/patches/6.3.002
|
|
cvsdist |
1b4d76 |
Patch003: ftp://ftp.vim.org/pub/vim/patches/6.3.003
|
|
cvsdist |
1b4d76 |
Patch004: ftp://ftp.vim.org/pub/vim/patches/6.3.004
|
|
cvsdist |
1b4d76 |
Patch005: ftp://ftp.vim.org/pub/vim/patches/6.3.005
|
|
cvsdist |
1b4d76 |
Patch006: ftp://ftp.vim.org/pub/vim/patches/6.3.006
|
|
cvsdist |
145ee0 |
Patch007: ftp://ftp.vim.org/pub/vim/patches/6.3.007
|
|
cvsdist |
145ee0 |
Patch008: ftp://ftp.vim.org/pub/vim/patches/6.3.008
|
|
cvsdist |
145ee0 |
Patch009: ftp://ftp.vim.org/pub/vim/patches/6.3.009
|
|
cvsdist |
145ee0 |
Patch010: ftp://ftp.vim.org/pub/vim/patches/6.3.010
|
|
cvsdist |
145ee0 |
Patch011: ftp://ftp.vim.org/pub/vim/patches/6.3.011
|
|
cvsdist |
16173e |
Patch012: ftp://ftp.vim.org/pub/vim/patches/6.3.012
|
|
cvsdist |
16173e |
Patch013: ftp://ftp.vim.org/pub/vim/patches/6.3.013
|
|
cvsdist |
409f8f |
Patch014: ftp://ftp.vim.org/pub/vim/patches/6.3.014
|
|
cvsdist |
705de6 |
Patch015: ftp://ftp.vim.org/pub/vim/patches/6.3.015
|
|
cvsdist |
d4931c |
Patch016: ftp://ftp.vim.org/pub/vim/patches/6.3.016
|
|
cvsdist |
d4931c |
Patch017: ftp://ftp.vim.org/pub/vim/patches/6.3.017
|
|
cvsdist |
bd9e91 |
Patch018: ftp://ftp.vim.org/pub/vim/patches/6.3.018
|
|
cvsdist |
bd9e91 |
Patch019: ftp://ftp.vim.org/pub/vim/patches/6.3.019
|
|
cvsdist |
bd9e91 |
Patch020: ftp://ftp.vim.org/pub/vim/patches/6.3.020
|
|
cvsdist |
a35fa1 |
Patch021: ftp://ftp.vim.org/pub/vim/patches/6.3.021
|
|
cvsdist |
a35fa1 |
Patch022: ftp://ftp.vim.org/pub/vim/patches/6.3.022
|
|
cvsdist |
a35fa1 |
Patch023: ftp://ftp.vim.org/pub/vim/patches/6.3.023
|
|
cvsdist |
a35fa1 |
Patch024: ftp://ftp.vim.org/pub/vim/patches/6.3.024
|
|
cvsdist |
a35fa1 |
Patch025: ftp://ftp.vim.org/pub/vim/patches/6.3.025
|
|
Than Ngo |
483797 |
Patch026: ftp://ftp.vim.org/pub/vim/patches/6.3.026
|
|
Than Ngo |
483797 |
Patch027: ftp://ftp.vim.org/pub/vim/patches/6.3.027
|
|
Than Ngo |
483797 |
Patch028: ftp://ftp.vim.org/pub/vim/patches/6.3.028
|
|
Karsten Hopp |
fee2fd |
Patch029: ftp://ftp.vim.org/pub/vim/patches/6.3.029
|
|
Karsten Hopp |
293dff |
Patch030: ftp://ftp.vim.org/pub/vim/patches/6.3.030
|
|
Karsten Hopp |
4bdf89 |
Patch031: ftp://ftp.vim.org/pub/vim/patches/6.3.031
|
|
Karsten Hopp |
4bdf89 |
Patch032: ftp://ftp.vim.org/pub/vim/patches/6.3.032
|
|
Karsten Hopp |
4bdf89 |
Patch033: ftp://ftp.vim.org/pub/vim/patches/6.3.033
|
|
Karsten Hopp |
d086be |
Patch034: ftp://ftp.vim.org/pub/vim/patches/6.3.034
|
|
Karsten Hopp |
d086be |
Patch035: ftp://ftp.vim.org/pub/vim/patches/6.3.035
|
|
Karsten Hopp |
bee916 |
Patch036: ftp://ftp.vim.org/pub/vim/patches/6.3.036
|
|
Karsten Hopp |
bee916 |
Patch037: ftp://ftp.vim.org/pub/vim/patches/6.3.037
|
|
Karsten Hopp |
bee916 |
Patch038: ftp://ftp.vim.org/pub/vim/patches/6.3.038
|
|
Karsten Hopp |
bee916 |
Patch039: ftp://ftp.vim.org/pub/vim/patches/6.3.039
|
|
Karsten Hopp |
bee916 |
Patch040: ftp://ftp.vim.org/pub/vim/patches/6.3.040
|
|
Karsten Hopp |
bee916 |
Patch041: ftp://ftp.vim.org/pub/vim/patches/6.3.041
|
|
Karsten Hopp |
bee916 |
Patch042: ftp://ftp.vim.org/pub/vim/patches/6.3.042
|
|
Karsten Hopp |
22983a |
Patch043: ftp://ftp.vim.org/pub/vim/patches/6.3.043
|
|
Karsten Hopp |
22983a |
Patch044: ftp://ftp.vim.org/pub/vim/patches/6.3.044
|
|
Karsten Hopp |
22983a |
Patch045: ftp://ftp.vim.org/pub/vim/patches/6.3.045
|
|
Karsten Hopp |
22983a |
Patch046: ftp://ftp.vim.org/pub/vim/patches/6.3.046
|
|
Karsten Hopp |
1e6c08 |
Patch047: ftp://ftp.vim.org/pub/vim/patches/6.3.047
|
|
Karsten Hopp |
1e6c08 |
Patch048: ftp://ftp.vim.org/pub/vim/patches/6.3.048
|
|
Karsten Hopp |
1e6c08 |
Patch049: ftp://ftp.vim.org/pub/vim/patches/6.3.049
|
|
Karsten Hopp |
1e6c08 |
Patch050: ftp://ftp.vim.org/pub/vim/patches/6.3.050
|
|
Karsten Hopp |
1e6c08 |
Patch051: ftp://ftp.vim.org/pub/vim/patches/6.3.051
|
|
Karsten Hopp |
1e6c08 |
Patch052: ftp://ftp.vim.org/pub/vim/patches/6.3.052
|
|
Karsten Hopp |
1e6c08 |
Patch053: ftp://ftp.vim.org/pub/vim/patches/6.3.053
|
|
Karsten Hopp |
1e6c08 |
Patch054: ftp://ftp.vim.org/pub/vim/patches/6.3.054
|
|
Karsten Hopp |
7542ee |
Patch055: ftp://ftp.vim.org/pub/vim/patches/6.3.055
|
|
Karsten Hopp |
7542ee |
Patch056: ftp://ftp.vim.org/pub/vim/patches/6.3.056
|
|
Karsten Hopp |
7542ee |
Patch057: ftp://ftp.vim.org/pub/vim/patches/6.3.057
|
|
Karsten Hopp |
7542ee |
Patch058: ftp://ftp.vim.org/pub/vim/patches/6.3.058
|
|
Karsten Hopp |
aed447 |
Patch059: ftp://ftp.vim.org/pub/vim/patches/6.3.059
|
|
Karsten Hopp |
aed447 |
Patch060: ftp://ftp.vim.org/pub/vim/patches/6.3.060
|
|
Karsten Hopp |
aed447 |
Patch061: ftp://ftp.vim.org/pub/vim/patches/6.3.061
|
|
Karsten Hopp |
5c3e29 |
Patch062: ftp://ftp.vim.org/pub/vim/patches/6.3.062
|
|
Karsten Hopp |
f33019 |
Patch063: ftp://ftp.vim.org/pub/vim/patches/6.3.063
|
|
Karsten Hopp |
f33019 |
Patch064: ftp://ftp.vim.org/pub/vim/patches/6.3.064
|
|
Karsten Hopp |
f33019 |
Patch065: ftp://ftp.vim.org/pub/vim/patches/6.3.065
|
|
Karsten Hopp |
f33019 |
Patch066: ftp://ftp.vim.org/pub/vim/patches/6.3.066
|
|
Karsten Hopp |
3c7097 |
Patch067: ftp://ftp.vim.org/pub/vim/patches/6.3.067
|
|
Karsten Hopp |
002a19 |
Patch068: ftp://ftp.vim.org/pub/vim/patches/6.3.068
|
|
Karsten Hopp |
22b8c8 |
Patch069: ftp://ftp.vim.org/pub/vim/patches/6.3.069
|
|
Karsten Hopp |
22b8c8 |
Patch070: ftp://ftp.vim.org/pub/vim/patches/6.3.070
|
|
Karsten Hopp |
22b8c8 |
Patch071: ftp://ftp.vim.org/pub/vim/patches/6.3.071
|
|
Karsten Hopp |
58f2f7 |
Patch072: ftp://ftp.vim.org/pub/vim/patches/6.3.072
|
|
Karsten Hopp |
58f2f7 |
Patch073: ftp://ftp.vim.org/pub/vim/patches/6.3.073
|
|
Karsten Hopp |
58f2f7 |
Patch074: ftp://ftp.vim.org/pub/vim/patches/6.3.074
|
|
Karsten Hopp |
58f2f7 |
Patch075: ftp://ftp.vim.org/pub/vim/patches/6.3.075
|
|
Karsten Hopp |
58f2f7 |
Patch076: ftp://ftp.vim.org/pub/vim/patches/6.3.076
|
|
Karsten Hopp |
58f2f7 |
Patch077: ftp://ftp.vim.org/pub/vim/patches/6.3.077
|
|
Karsten Hopp |
58f2f7 |
Patch078: ftp://ftp.vim.org/pub/vim/patches/6.3.078
|
|
Karsten Hopp |
58f2f7 |
Patch079: ftp://ftp.vim.org/pub/vim/patches/6.3.079
|
|
Karsten Hopp |
58f2f7 |
Patch080: ftp://ftp.vim.org/pub/vim/patches/6.3.080
|
|
Karsten Hopp |
839be0 |
Patch081: ftp://ftp.vim.org/pub/vim/patches/6.3.081
|
|
Karsten Hopp |
839be0 |
Patch082: ftp://ftp.vim.org/pub/vim/patches/6.3.082
|
|
Karsten Hopp |
839be0 |
Patch083: ftp://ftp.vim.org/pub/vim/patches/6.3.083
|
|
Karsten Hopp |
839be0 |
Patch084: ftp://ftp.vim.org/pub/vim/patches/6.3.084
|
|
Karsten Hopp |
839be0 |
Patch085: ftp://ftp.vim.org/pub/vim/patches/6.3.085
|
|
Karsten Hopp |
839be0 |
Patch086: ftp://ftp.vim.org/pub/vim/patches/6.3.086
|
|
cvsdist |
1b4d76 |
|
|
cvsdist |
1b4d76 |
Patch3000: vim-6.1-syntax.patch
|
|
cvsdist |
1b4d76 |
Patch3001: vim-6.2-rh1.patch
|
|
cvsdist |
1b4d76 |
Patch3002: vim-6.1-rh2.patch
|
|
cvsdist |
1b4d76 |
Patch3003: vim-6.1-rh3.patch
|
|
cvsdist |
1b4d76 |
Patch3004: vim-6.2-rclocation.patch
|
|
cvsdist |
1b4d76 |
Patch3005: vim-6.2-rh4.patch
|
|
cvsdist |
1b4d76 |
Patch3006: vim-6.2-rh5.patch
|
|
Karsten Hopp |
0b345a |
Patch3007: vim-6.3-dnssyntax.patch
|
|
cvsdist |
1b4d76 |
|
|
cvsdist |
1b4d76 |
Patch3100: vim-selinux.patch
|
|
cvsdist |
1401a3 |
|
|
cvsdist |
7a2237 |
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
cvsdist |
e6a956 |
Buildrequires: python-devel perl libtermcap-devel gettext
|
|
cvsdist |
0c2235 |
Buildrequires: libacl-devel gpm-devel
|
|
cvsdist |
e6a956 |
%if "%{withruby}" == "1"
|
|
cvsdist |
e6a956 |
Buildrequires: ruby ruby-devel
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
0c2235 |
%if %{WITH_SELINUX}
|
|
cvsdist |
0c2235 |
Buildrequires: libselinux-devel
|
|
cvsdist |
0c2235 |
%endif
|
|
cvsdist |
2c14b3 |
%if %{desktop_file}
|
|
cvsdist |
2c14b3 |
Requires: /usr/bin/desktop-file-install
|
|
cvsdist |
2c14b3 |
BuildPrereq: desktop-file-utils >= %{desktop_file_utils_version}
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
1b13d4 |
Epoch: 1
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%description
|
|
cvsdist |
f1dd31 |
VIM (VIsual editor iMproved) is an updated and improved version of the
|
|
cvsdist |
f1dd31 |
vi editor. Vi was the first real screen-based editor for UNIX, and is
|
|
cvsdist |
f1dd31 |
still very popular. VIM improves on vi by adding new features:
|
|
cvsdist |
f1dd31 |
multiple windows, multi-level undo, block highlighting and more.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%package common
|
|
cvsdist |
f1dd31 |
Summary: The common files needed by any version of the VIM editor.
|
|
cvsdist |
f1dd31 |
Group: Applications/Editors
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%description common
|
|
cvsdist |
f1dd31 |
VIM (VIsual editor iMproved) is an updated and improved version of the
|
|
cvsdist |
f1dd31 |
vi editor. Vi was the first real screen-based editor for UNIX, and is
|
|
cvsdist |
f1dd31 |
still very popular. VIM improves on vi by adding new features:
|
|
cvsdist |
f1dd31 |
multiple windows, multi-level undo, block highlighting and more. The
|
|
cvsdist |
f1dd31 |
vim-common package contains files which every VIM binary will need in
|
|
cvsdist |
f1dd31 |
order to run.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
1401a3 |
If you are installing vim-enhanced or vim-X11, you'll also need
|
|
cvsdist |
1401a3 |
to install the vim-common package.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%package minimal
|
|
cvsdist |
f1dd31 |
Summary: A minimal version of the VIM editor.
|
|
cvsdist |
f1dd31 |
Group: Applications/Editors
|
|
cvsdist |
f1dd31 |
Obsoletes: vim
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%description minimal
|
|
cvsdist |
f1dd31 |
VIM (VIsual editor iMproved) is an updated and improved version of the
|
|
cvsdist |
f1dd31 |
vi editor. Vi was the first real screen-based editor for UNIX, and is
|
|
cvsdist |
f1dd31 |
still very popular. VIM improves on vi by adding new features:
|
|
cvsdist |
f1dd31 |
multiple windows, multi-level undo, block highlighting and more. The
|
|
cvsdist |
f1dd31 |
vim-minimal package includes a minimal version of VIM, which is
|
|
cvsdist |
f1dd31 |
installed into /bin/vi for use when only the root partition is
|
|
cvsdist |
1401a3 |
present. NOTE: The online help is only available when the vim-common
|
|
cvsdist |
1401a3 |
package is installed.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%package enhanced
|
|
cvsdist |
f1dd31 |
Summary: A version of the VIM editor which includes recent enhancements.
|
|
cvsdist |
f1dd31 |
Group: Applications/Editors
|
|
Karsten Hopp |
03c1db |
Requires: vim-common = %{epoch}:%{version}-%{release}
|
|
Karsten Hopp |
fee2fd |
Requires: %(perl -le 'printf("perl >= %vd\n",$^V);')
|
|
cvsdist |
f1dd31 |
Obsoletes: vim-color
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%description enhanced
|
|
cvsdist |
f1dd31 |
VIM (VIsual editor iMproved) is an updated and improved version of the
|
|
cvsdist |
f1dd31 |
vi editor. Vi was the first real screen-based editor for UNIX, and is
|
|
cvsdist |
f1dd31 |
still very popular. VIM improves on vi by adding new features:
|
|
cvsdist |
f1dd31 |
multiple windows, multi-level undo, block highlighting and more. The
|
|
cvsdist |
f1dd31 |
vim-enhanced package contains a version of VIM with extra, recently
|
|
cvsdist |
f1dd31 |
introduced features like Python and Perl interpreters.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
Install the vim-enhanced package if you'd like to use a version of the
|
|
cvsdist |
f1dd31 |
VIM editor which includes recently added enhancements like
|
|
cvsdist |
f1dd31 |
interpreters for the Python and Perl scripting languages. You'll also
|
|
cvsdist |
f1dd31 |
need to install the vim-common package.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
2c14b3 |
%if "%{withgui}" == "1"
|
|
cvsdist |
f1dd31 |
%package X11
|
|
cvsdist |
f1dd31 |
Summary: The VIM version of the vi editor for the X Window System.
|
|
cvsdist |
f1dd31 |
Group: Applications/Editors
|
|
Karsten Hopp |
03c1db |
Requires: vim-common = %{epoch}:%{version}-%{release} libattr
|
|
cvsdist |
e6a956 |
BuildRequires: gtk2-devel
|
|
Christopher Aillon |
0b8934 |
Prereq: gtk2 >= 2.6
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%description X11
|
|
cvsdist |
f1dd31 |
VIM (VIsual editor iMproved) is an updated and improved version of the
|
|
cvsdist |
f1dd31 |
vi editor. Vi was the first real screen-based editor for UNIX, and is
|
|
cvsdist |
f1dd31 |
still very popular. VIM improves on vi by adding new features:
|
|
cvsdist |
f1dd31 |
multiple windows, multi-level undo, block highlighting and
|
|
cvsdist |
f1dd31 |
more. VIM-X11 is a version of the VIM editor which will run within the
|
|
cvsdist |
f1dd31 |
X Window System. If you install this package, you can run VIM as an X
|
|
cvsdist |
f1dd31 |
application with a full GUI interface and mouse support.
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
Install the vim-X11 package if you'd like to try out a version of vi
|
|
cvsdist |
f1dd31 |
with graphics and mouse capabilities. You'll also need to install the
|
|
cvsdist |
f1dd31 |
vim-common package.
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%prep
|
|
cvsdist |
e6a956 |
%setup -q -b 1 -n %{vimdir}
|
|
cvsdist |
1401a3 |
cp -f %{SOURCE6} runtime/ftplugin/spec.vim
|
|
Karsten Hopp |
7542ee |
%patch2000 -p1
|
|
cvsdist |
f1dd31 |
# fix rogue dependencies from sample code
|
|
cvsdist |
f1dd31 |
chmod -x runtime/tools/mve.awk
|
|
Karsten Hopp |
7542ee |
%patch2001 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch2002 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch2003 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch2004 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch2005 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch2010 -p1
|
|
cvsdist |
f1dd31 |
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
2c14b3 |
# Base patches...
|
|
cvsdist |
0c2235 |
# for i in `seq 1 14`; do printf "%%patch%03d -p0 \n" $i; done
|
|
cvsdist |
e6a956 |
%patch001 -p0
|
|
cvsdist |
e6a956 |
%patch002 -p0
|
|
cvsdist |
e6a956 |
%patch003 -p0
|
|
cvsdist |
e6a956 |
%patch004 -p0
|
|
cvsdist |
e6a956 |
%patch005 -p0
|
|
cvsdist |
e6a956 |
%patch006 -p0
|
|
cvsdist |
145ee0 |
%patch007 -p0
|
|
cvsdist |
145ee0 |
%patch008 -p0
|
|
cvsdist |
145ee0 |
%patch009 -p0
|
|
cvsdist |
145ee0 |
%patch010 -p0
|
|
cvsdist |
145ee0 |
%patch011 -p0
|
|
cvsdist |
16173e |
%patch012 -p0
|
|
cvsdist |
16173e |
%patch013 -p0
|
|
cvsdist |
409f8f |
%patch014 -p0
|
|
cvsdist |
705de6 |
%patch015 -p0
|
|
cvsdist |
d4931c |
%patch016 -p0
|
|
cvsdist |
d4931c |
%patch017 -p0
|
|
cvsdist |
bd9e91 |
%patch018 -p0
|
|
cvsdist |
bd9e91 |
%patch019 -p0
|
|
cvsdist |
bd9e91 |
%patch020 -p0
|
|
cvsdist |
a35fa1 |
%patch021 -p0
|
|
cvsdist |
a35fa1 |
# Win32 %patch022 -p0
|
|
cvsdist |
a35fa1 |
%patch023 -p0
|
|
cvsdist |
a35fa1 |
%patch024 -p0
|
|
cvsdist |
a35fa1 |
# Win32 %patch025 -p0
|
|
Than Ngo |
483797 |
%patch26 -p0
|
|
Than Ngo |
483797 |
# VMS %patch27 -p0
|
|
Than Ngo |
483797 |
%patch28 -p0
|
|
Karsten Hopp |
fee2fd |
%patch29 -p0
|
|
Karsten Hopp |
293dff |
%patch30 -p0
|
|
Karsten Hopp |
4bdf89 |
%patch31 -p0
|
|
Karsten Hopp |
4bdf89 |
%patch32 -p0
|
|
Karsten Hopp |
4bdf89 |
%patch33 -p0
|
|
Karsten Hopp |
d086be |
%patch34 -p0
|
|
Karsten Hopp |
d086be |
#%patch35 -p0
|
|
Karsten Hopp |
bee916 |
%patch36 -p0
|
|
Karsten Hopp |
bee916 |
%patch37 -p0
|
|
Karsten Hopp |
bee916 |
# Win32
|
|
Karsten Hopp |
bee916 |
#%patch38 -p0
|
|
Karsten Hopp |
bee916 |
%patch39 -p0
|
|
Karsten Hopp |
bee916 |
%patch40 -p0
|
|
Karsten Hopp |
bee916 |
# Win32
|
|
Karsten Hopp |
bee916 |
#%patch41 -p0
|
|
Karsten Hopp |
bee916 |
%patch42 -p0
|
|
Karsten Hopp |
22983a |
%patch043 -p0
|
|
Karsten Hopp |
22983a |
# Win32
|
|
Karsten Hopp |
22983a |
#%patch044 -p0
|
|
Karsten Hopp |
22983a |
%patch045 -p0
|
|
Karsten Hopp |
22983a |
%patch046 -p0
|
|
Karsten Hopp |
1e6c08 |
# Win XP
|
|
Karsten Hopp |
1e6c08 |
#%patch047 -p0
|
|
Karsten Hopp |
1e6c08 |
# VMS
|
|
Karsten Hopp |
1e6c08 |
#%patch048 -p0
|
|
Karsten Hopp |
1e6c08 |
%patch049 -p0
|
|
Karsten Hopp |
1e6c08 |
%patch050 -p0
|
|
Karsten Hopp |
1e6c08 |
%patch051 -p0
|
|
Karsten Hopp |
1e6c08 |
# Win 98
|
|
Karsten Hopp |
1e6c08 |
#%patch052 -p0
|
|
Karsten Hopp |
1e6c08 |
# Win 32
|
|
Karsten Hopp |
1e6c08 |
#%patch053 -p0
|
|
Karsten Hopp |
1e6c08 |
%patch054 -p0
|
|
Karsten Hopp |
7542ee |
%patch055 -p0
|
|
Karsten Hopp |
7542ee |
%patch056 -p0
|
|
Karsten Hopp |
7542ee |
%patch057 -p0
|
|
Karsten Hopp |
7542ee |
%patch058 -p0
|
|
Karsten Hopp |
aed447 |
%patch059 -p0
|
|
Karsten Hopp |
aed447 |
%patch060 -p0
|
|
Karsten Hopp |
aed447 |
%patch061 -p0
|
|
Karsten Hopp |
5c3e29 |
%patch062 -p0
|
|
Karsten Hopp |
f33019 |
%patch063 -p0
|
|
Karsten Hopp |
f33019 |
%patch064 -p0
|
|
Karsten Hopp |
f33019 |
%patch065 -p0
|
|
Karsten Hopp |
f33019 |
%patch066 -p0
|
|
Karsten Hopp |
3c7097 |
%patch067 -p0
|
|
Karsten Hopp |
002a19 |
%patch068 -p0
|
|
Karsten Hopp |
22b8c8 |
%patch069 -p0
|
|
Karsten Hopp |
22b8c8 |
%patch070 -p0
|
|
Karsten Hopp |
22b8c8 |
%patch071 -p0
|
|
Karsten Hopp |
58f2f7 |
%patch072 -p0
|
|
Karsten Hopp |
58f2f7 |
# Win 32
|
|
Karsten Hopp |
58f2f7 |
# %patch073 -p0
|
|
Karsten Hopp |
58f2f7 |
%patch074 -p0
|
|
Karsten Hopp |
58f2f7 |
%patch075 -p0
|
|
Karsten Hopp |
58f2f7 |
%patch076 -p0
|
|
Karsten Hopp |
58f2f7 |
# VMS
|
|
Karsten Hopp |
064baf |
#%patch077 -p0
|
|
Karsten Hopp |
58f2f7 |
# VMS
|
|
Karsten Hopp |
064baf |
#%patch078 -p0
|
|
Karsten Hopp |
58f2f7 |
%patch079 -p0
|
|
Karsten Hopp |
58f2f7 |
# Win 32
|
|
Karsten Hopp |
bfe9e4 |
#%patch080 -p0
|
|
Karsten Hopp |
839be0 |
%patch081 -p0
|
|
Karsten Hopp |
839be0 |
%patch082 -p0
|
|
Karsten Hopp |
839be0 |
# VMS
|
|
Karsten Hopp |
839be0 |
#%patch083 -p0
|
|
Karsten Hopp |
839be0 |
# Cygwin
|
|
Karsten Hopp |
839be0 |
#%patch084 -p0
|
|
Karsten Hopp |
839be0 |
%patch085 -p0
|
|
Karsten Hopp |
839be0 |
%patch086 -p0
|
|
Karsten Hopp |
1e6c08 |
|
|
cvsdist |
e6a956 |
|
|
Karsten Hopp |
fb8ddf |
%patch3000 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3001 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3002 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3003 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3004 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3005 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3006 -p1
|
|
Karsten Hopp |
fb8ddf |
%patch3007 -p1
|
|
cvsdist |
1401a3 |
|
|
cvsdist |
1401a3 |
%if %{WITH_SELINUX}
|
|
Karsten Hopp |
fb8ddf |
%patch3100 -p1
|
|
cvsdist |
1401a3 |
%endif
|
|
cvsdist |
840bb7 |
|
|
cvsdist |
f1dd31 |
%build
|
|
cvsdist |
f1dd31 |
cd src
|
|
cvsdist |
1401a3 |
autoconf
|
|
cvsdist |
e6a956 |
perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h
|
|
cvsdist |
e6a956 |
perl -pi -e "s,\\\$VIM,/usr/share/vim/%{vimdir}/macros,g" os_unix.h
|
|
cvsdist |
7a2237 |
|
|
Karsten Hopp |
8e2227 |
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
|
Karsten Hopp |
8e2227 |
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
|
cvsdist |
e6a956 |
%if "%{withruby}" == "1"
|
|
cvsdist |
e6a956 |
export RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]')
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
7a2237 |
|
|
cvsdist |
e6a956 |
%if "%{withgui}" == "1"
|
|
cvsdist |
e6a956 |
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
|
|
cvsdist |
e6a956 |
--disable-tclinterp --with-x=yes --exec-prefix=/usr/X11R6 \
|
|
cvsdist |
4e2ca8 |
--enable-xim --enable-multibyte \
|
|
cvsdist |
4e2ca8 |
--enable-gtk2-check --enable-gui=gtk2 \
|
|
cvsdist |
4e2ca8 |
--with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
|
|
cvsdist |
4e2ca8 |
--with-modified-by="<bugzilla@redhat.com>" \
|
|
cvsdist |
4e2ca8 |
%if "%{withnetbeans}" == "1"
|
|
cvsdist |
4e2ca8 |
--enable-netbeans \
|
|
cvsdist |
4e2ca8 |
%else
|
|
cvsdist |
0f915f |
--disable-netbeans \
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
4e2ca8 |
%if "%{withruby}" == "1"
|
|
cvsdist |
4e2ca8 |
--enable-rubyinterp
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
4e2ca8 |
%
|
|
cvsdist |
2c14b3 |
make
|
|
cvsdist |
f1dd31 |
cp vim gvim
|
|
cvsdist |
f1dd31 |
make clean
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
7a2237 |
%configure --prefix=/usr --with-features=huge --enable-pythoninterp \
|
|
cvsdist |
e6a956 |
--enable-perlinterp --disable-tclinterp --with-x=no \
|
|
cvsdist |
4e2ca8 |
--enable-gui=no --exec-prefix=/usr --enable-multibyte \
|
|
cvsdist |
4e2ca8 |
--disable-netbeans --enable-cscope --with-modified-by="<bugzilla@redhat.com>" \
|
|
cvsdist |
e6a956 |
--with-compiledby="<bugzilla@redhat.com>" \
|
|
cvsdist |
4e2ca8 |
%if "%{withnetbeans}" == "1"
|
|
cvsdist |
4e2ca8 |
--enable-netbeans \
|
|
cvsdist |
4e2ca8 |
%else
|
|
cvsdist |
4e2ca8 |
--disable-netbeans \
|
|
cvsdist |
4e2ca8 |
%endif
|
|
cvsdist |
e6a956 |
%if "%{withruby}" == "1"
|
|
cvsdist |
e6a956 |
--enable-rubyinterp
|
|
cvsdist |
e6a956 |
%endif
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
f1dd31 |
make
|
|
cvsdist |
f1dd31 |
cp vim enhanced-vim
|
|
cvsdist |
f1dd31 |
make clean
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
7a2237 |
%configure --prefix='${DEST}'/usr --with-features=tiny --with-x=no \
|
|
cvsdist |
813db2 |
--enable-multibyte \
|
|
cvsdist |
0f915f |
--disable-netbeans \
|
|
cvsdist |
f1dd31 |
--disable-pythoninterp --disable-perlinterp --disable-tclinterp \
|
|
cvsdist |
2c14b3 |
--with-tlib=termcap --enable-gui=no --disable-gpm --exec-prefix=/ --with-compiledby="<bugzilla@redhat.com>"
|
|
cvsdist |
e6a956 |
|
|
cvsdist |
7a2237 |
make
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%install
|
|
cvsdist |
f1dd31 |
rm -rf $RPM_BUILD_ROOT
|
|
cvsdist |
f1dd31 |
mkdir -p $RPM_BUILD_ROOT/bin
|
|
cvsdist |
7a2237 |
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim,X11R6/bin}
|
|
cvsdist |
e6a956 |
cp -f %{SOURCE5} .
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
cd src
|
|
cvsdist |
7a2237 |
%makeinstall BINDIR=/bin DESTDIR=$RPM_BUILD_ROOT
|
|
cvsdist |
7a2237 |
mv $RPM_BUILD_ROOT/bin/xxd $RPM_BUILD_ROOT/usr/bin
|
|
cvsdist |
f1dd31 |
make installmacros DESTDIR=$RPM_BUILD_ROOT
|
|
cvsdist |
2c14b3 |
%if "%{withgui}" == "1"
|
|
cvsdist |
0c2235 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
|
|
Karsten Hopp |
a644c7 |
install -m755 gvim $RPM_BUILD_ROOT/usr/X11R6/bin
|
|
Karsten Hopp |
a644c7 |
install -m644 %{SOURCE7} \
|
|
cvsdist |
0c2235 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png
|
|
Karsten Hopp |
a644c7 |
install -m644 %{SOURCE8} \
|
|
cvsdist |
0c2235 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gvim.png
|
|
Karsten Hopp |
a644c7 |
install -m644 %{SOURCE9} \
|
|
cvsdist |
0c2235 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gvim.png
|
|
Karsten Hopp |
a644c7 |
install -m644 %{SOURCE10} \
|
|
cvsdist |
0c2235 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/gvim.png
|
|
cvsdist |
2c14b3 |
%endif
|
|
Karsten Hopp |
a644c7 |
install -m755 enhanced-vim $RPM_BUILD_ROOT/usr/bin/vim
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
( cd $RPM_BUILD_ROOT
|
|
cvsdist |
fcc919 |
mv ./bin/vimtutor ./usr/bin
|
|
cvsdist |
f1dd31 |
mv ./bin/vim ./bin/vi
|
|
cvsdist |
f1dd31 |
rm -f ./bin/rvim
|
|
cvsdist |
f1dd31 |
ln -sf vi ./bin/view
|
|
cvsdist |
f1dd31 |
ln -sf vi ./bin/ex
|
|
cvsdist |
f1dd31 |
ln -sf vi ./bin/rvi
|
|
cvsdist |
f1dd31 |
ln -sf vi ./bin/rview
|
|
cvsdist |
f1dd31 |
ln -sf vim ./usr/bin/ex
|
|
cvsdist |
7a2237 |
ln -sf vim ./usr/bin/rvim
|
|
cvsdist |
7a2237 |
ln -sf vim ./usr/bin/vimdiff
|
|
cvsdist |
f1dd31 |
perl -pi -e "s,$RPM_BUILD_ROOT,," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1
|
|
cvsdist |
f1dd31 |
rm -f .%{_mandir}/man1/rvim.1
|
|
cvsdist |
f1dd31 |
ln -sf vim.1.gz .%{_mandir}/man1/vi.1.gz
|
|
cvsdist |
f1dd31 |
ln -sf vim.1.gz .%{_mandir}/man1/rvi.1.gz
|
|
cvsdist |
7a2237 |
ln -sf vim.1.gz .%{_mandir}/man1/rvim.1.gz
|
|
cvsdist |
7a2237 |
ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz
|
|
cvsdist |
2c14b3 |
%if "%{withgui}" == "1"
|
|
cvsdist |
e6a956 |
ln -sf gvim ./usr/X11R6/bin/gview
|
|
cvsdist |
e6a956 |
ln -sf gvim ./usr/X11R6/bin/gex
|
|
cvsdist |
e6a956 |
ln -sf gvim ./usr/X11R6/bin/evim
|
|
cvsdist |
e6a956 |
ln -sf gvim ./usr/X11R6/bin/gvimdiff
|
|
cvsdist |
e6a956 |
ln -sf vim.1.gz .%{_mandir}/man1/gvim.1.gz
|
|
cvsdist |
e6a956 |
ln -sf vim.1.gz .%{_mandir}/man1/gvimdiff.1.gz
|
|
cvsdist |
f1dd31 |
ln -sf gvim ./usr/X11R6/bin/vimx
|
|
cvsdist |
e6a956 |
%if "%{desktop_file}" == "1"
|
|
cvsdist |
2c14b3 |
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
|
cvsdist |
2c14b3 |
desktop-file-install --vendor net \
|
|
cvsdist |
2c14b3 |
--dir $RPM_BUILD_ROOT/usr/share/applications \
|
|
cvsdist |
2c14b3 |
--add-category "Application;Development;X-Red-Hat-Base" \
|
|
cvsdist |
e6a956 |
%{SOURCE3}
|
|
cvsdist |
2c14b3 |
%else
|
|
cvsdist |
2c14b3 |
mkdir -p ./etc/X11/applnk/Applications
|
|
cvsdist |
e6a956 |
cp %{SOURCE3} ./etc/X11/applnk/Applications/gvim.desktop
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
e6a956 |
%else
|
|
cvsdist |
e6a956 |
rm -f $RPM_BUILD_ROOT/%{_mandir}/man?/evim*
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
7a2237 |
# ja_JP.ujis is obsolete, ja_JP.eucJP is recommended.
|
|
cvsdist |
e6a956 |
( cd ./usr/share/vim/%{vimdir}/lang; \
|
|
cvsdist |
7a2237 |
ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim )
|
|
cvsdist |
f1dd31 |
)
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
b5c479 |
pushd $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tutor
|
|
cvsdist |
b5c479 |
mkdir conv
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.ca > conv/tutor.ca
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it
|
|
cvsdist |
b5c479 |
iconv -f CP1253 -t UTF8 tutor.gr > conv/tutor.gr
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.fr > conv/tutor.fr
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.es > conv/tutor.es
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.de > conv/tutor.de
|
|
cvsdist |
b5c479 |
#iconv -f CP737 -t UTF8 tutor.gr.cp737 > conv/tutor.gr.cp737
|
|
cvsdist |
b5c479 |
#iconv -f EUC-JP -t UTF8 tutor.ja.euc > conv/tutor.ja.euc
|
|
cvsdist |
b5c479 |
#iconv -f SJIS -t UTF8 tutor.ja.sjis > conv/tutor.ja.sjis
|
|
cvsdist |
b5c479 |
iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8
|
|
cvsdist |
b5c479 |
iconv -f UTF8 -t UTF8 tutor.ko.utf-8 > conv/tutor.ko.utf-8
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.no > conv/tutor.no
|
|
cvsdist |
85045d |
iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl
|
|
cvsdist |
85045d |
iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk
|
|
Karsten Hopp |
7ec3ea |
iconv -f KOI8R -t UTF8 tutor.ru > conv/tutor.ru
|
|
cvsdist |
b5c479 |
iconv -f CP1252 -t UTF8 tutor.sv > conv/tutor.sv
|
|
cvsdist |
b5c479 |
mv -f tutor.gr.cp737 tutor.ja.euc tutor.ja.sjis tutor.ko.euc tutor.pl.cp1250 tutor.zh.big5 tutor.ru.cp1251 tutor.zh.euc conv/
|
|
cvsdist |
b5c479 |
rm -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv
|
|
cvsdist |
b5c479 |
mv -f conv/* .
|
|
cvsdist |
b5c479 |
rmdir conv
|
|
cvsdist |
b5c479 |
popd
|
|
cvsdist |
b5c479 |
|
|
cvsdist |
f1dd31 |
# Dependency cleanups
|
|
cvsdist |
e6a956 |
chmod 644 $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/doc/vim2html.pl \
|
|
cvsdist |
e6a956 |
$RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tools/*.pl \
|
|
cvsdist |
e6a956 |
$RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tools/vim132
|
|
cvsdist |
f1dd31 |
chmod 644 ../runtime/doc/vim2html.pl
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
1b13d4 |
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
cvsdist |
1b13d4 |
cat >$RPM_BUILD_ROOT/etc/profile.d/vim.sh <
|
|
cvsdist |
2cc57f |
if [ -n "\$BASH_VERSION" -o -n "\$KSH_VERSION" -o -n "\$ZSH_VERSION" ]; then
|
|
Karsten Hopp |
499cbf |
[ -x /usr/bin/id ] || return
|
|
Karsten Hopp |
5d80bb |
[ \`/usr/bin/id -u\` -le 100 ] && return
|
|
Karsten Hopp |
499cbf |
# for bash and zsh, only if no alias is already set
|
|
cvsdist |
2c14b3 |
alias vi >/dev/null 2>&1 || alias vi=vim
|
|
cvsdist |
7a2237 |
fi
|
|
cvsdist |
1b13d4 |
EOF
|
|
cvsdist |
1b13d4 |
cat >$RPM_BUILD_ROOT/etc/profile.d/vim.csh <
|
|
Karsten Hopp |
499cbf |
[ -x /usr/bin/id ] || exit
|
|
Karsten Hopp |
5d80bb |
[ \`/usr/bin/id -u\` -le 100 ] && exit
|
|
cvsdist |
7a2237 |
alias vi vim
|
|
cvsdist |
1b13d4 |
EOF
|
|
cvsdist |
7a2237 |
chmod 0755 $RPM_BUILD_ROOT/etc/profile.d/*
|
|
Karsten Hopp |
a644c7 |
install -m644 %{SOURCE4} $RPM_BUILD_ROOT/etc/vimrc
|
|
Karsten Hopp |
94dc0f |
(cd $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/doc;
|
|
Karsten Hopp |
94dc0f |
gzip -9 *.txt; gzip -d help.txt.gz
|
|
Karsten Hopp |
94dc0f |
cat tags | sed -e 's/\t\(.*.txt\)\t/\t\1.gz\t/;s/\thelp.txt.gz\t/\thelp.txt\t/' > tags.new; mv -f tags.new tags)
|
|
cvsdist |
e6a956 |
(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;
|
|
cvsdist |
e6a956 |
mv -f macros/README.txt ../README.macros;
|
|
cvsdist |
e6a956 |
mv -f tools/README.txt ../README.tools;
|
|
cvsdist |
e6a956 |
)
|
|
cvsdist |
1b13d4 |
|
|
Christopher Aillon |
0b8934 |
%post X11
|
|
Christopher Aillon |
0b8934 |
touch --no-create %{_datadir}/icons/hicolor
|
|
Christopher Aillon |
fbcffd |
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
Jeremy Katz |
9fb2ef |
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
|
Christopher Aillon |
0b8934 |
fi
|
|
Christopher Aillon |
0b8934 |
|
|
Christopher Aillon |
0b8934 |
%postun X11
|
|
Christopher Aillon |
0b8934 |
touch --no-create %{_datadir}/icons/hicolor
|
|
Christopher Aillon |
fbcffd |
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
Jeremy Katz |
9fb2ef |
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
|
Christopher Aillon |
0b8934 |
fi
|
|
Christopher Aillon |
0b8934 |
|
|
cvsdist |
f1dd31 |
%clean
|
|
cvsdist |
f1dd31 |
rm -rf $RPM_BUILD_ROOT
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%files common
|
|
cvsdist |
f1dd31 |
%defattr(-,root,root)
|
|
cvsdist |
e6a956 |
%config(noreplace) /etc/vimrc
|
|
cvsdist |
e6a956 |
%doc README*
|
|
cvsdist |
2c14b3 |
%doc runtime/docs
|
|
cvsdist |
705de6 |
%doc $RPM_SOURCE_DIR/Changelog.rpm
|
|
cvsdist |
7a2237 |
/usr/share/vim
|
|
cvsdist |
e6a956 |
%lang(af) /usr/share/vim/%{vimdir}/lang/af/*
|
|
cvsdist |
e6a956 |
%lang(cs) /usr/share/vim/%{vimdir}/lang/cs/*
|
|
cvsdist |
e6a956 |
%lang(de) /usr/share/vim/%{vimdir}/lang/de/*
|
|
cvsdist |
e6a956 |
%lang(es) /usr/share/vim/%{vimdir}/lang/es/*
|
|
cvsdist |
e6a956 |
%lang(fr) /usr/share/vim/%{vimdir}/lang/fr/*
|
|
cvsdist |
e6a956 |
%lang(it) /usr/share/vim/%{vimdir}/lang/it/*
|
|
cvsdist |
e6a956 |
%lang(ja) /usr/share/vim/%{vimdir}/lang/ja/*
|
|
cvsdist |
e6a956 |
%lang(ko) /usr/share/vim/%{vimdir}/lang/ko/*
|
|
cvsdist |
e6a956 |
%lang(pl) /usr/share/vim/%{vimdir}/lang/pl/*
|
|
cvsdist |
e6a956 |
%lang(sk) /usr/share/vim/%{vimdir}/lang/sk/*
|
|
cvsdist |
e6a956 |
%lang(uk) /usr/share/vim/%{vimdir}/lang/uk/*
|
|
cvsdist |
e6a956 |
%lang(zh_CN) /usr/share/vim/%{vimdir}/lang/zh_CN/*
|
|
cvsdist |
e6a956 |
%lang(zh_CN.UTF-8) /usr/share/vim/%{vimdir}/lang/zh_CN.UTF-8/*
|
|
cvsdist |
e6a956 |
%lang(zh_TW) /usr/share/vim/%{vimdir}/lang/zh_TW/*
|
|
cvsdist |
840bb7 |
/usr/bin/xxd
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/vim.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/ex.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/vi.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/view.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/rvi.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/rview.*
|
|
cvsdist |
f1dd31 |
%{_mandir}/man1/xxd.*
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%files minimal
|
|
cvsdist |
f1dd31 |
%defattr(-,root,root)
|
|
cvsdist |
0c2235 |
%config(noreplace) /etc/vimrc
|
|
cvsdist |
f1dd31 |
/bin/ex
|
|
cvsdist |
f1dd31 |
/bin/vi
|
|
cvsdist |
f1dd31 |
/bin/view
|
|
cvsdist |
f1dd31 |
/bin/rvi
|
|
cvsdist |
f1dd31 |
/bin/rview
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%files enhanced
|
|
cvsdist |
f1dd31 |
%defattr(-,root,root)
|
|
cvsdist |
7a2237 |
/usr/bin/vim
|
|
cvsdist |
7a2237 |
/usr/bin/rvim
|
|
cvsdist |
7a2237 |
/usr/bin/vimdiff
|
|
cvsdist |
7a2237 |
/usr/bin/ex
|
|
cvsdist |
fcc919 |
/usr/bin/vimtutor
|
|
cvsdist |
7a2237 |
%config /etc/profile.d/vim.*
|
|
cvsdist |
7a2237 |
%{_mandir}/man1/rvim.*
|
|
cvsdist |
7a2237 |
%{_mandir}/man1/vimdiff.*
|
|
cvsdist |
fcc919 |
%{_mandir}/man1/vimtutor.*
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
2c14b3 |
%if "%{withgui}" == "1"
|
|
cvsdist |
f1dd31 |
%files X11
|
|
cvsdist |
f1dd31 |
%defattr(-,root,root)
|
|
cvsdist |
e6a956 |
%if "%{desktop_file}" == "1"
|
|
cvsdist |
2c14b3 |
/usr/share/applications/*
|
|
cvsdist |
2c14b3 |
%else
|
|
cvsdist |
2c14b3 |
/etc/X11/applnk/*/gvim.desktop
|
|
cvsdist |
2c14b3 |
%endif
|
|
cvsdist |
f1dd31 |
/usr/X11R6/bin/gvim
|
|
cvsdist |
e6a956 |
/usr/X11R6/bin/gvimdiff
|
|
cvsdist |
7a2237 |
/usr/X11R6/bin/gview
|
|
cvsdist |
7a2237 |
/usr/X11R6/bin/gex
|
|
cvsdist |
f1dd31 |
/usr/X11R6/bin/vimx
|
|
cvsdist |
e6a956 |
/usr/X11R6/bin/evim
|
|
cvsdist |
7a2237 |
%{_mandir}/man1/evim.*
|
|
cvsdist |
e6a956 |
%{_mandir}/man1/gvim*
|
|
cvsdist |
0c2235 |
%{_datadir}/icons/hicolor/*/apps/*
|
|
cvsdist |
7a2237 |
%endif
|
|
cvsdist |
f1dd31 |
|
|
cvsdist |
f1dd31 |
%changelog
|
|
Karsten Hopp |
15a4f8 |
* Tue Aug 16 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-2
|
|
Karsten Hopp |
15a4f8 |
- rebuild
|
|
Karsten Hopp |
15a4f8 |
|
|
Karsten Hopp |
839be0 |
* Tue Aug 09 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-1
|
|
Karsten Hopp |
839be0 |
- update to patchlevel 86
|
|
Karsten Hopp |
839be0 |
|
|
Karsten Hopp |
58f2f7 |
* Mon Jun 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.080-1
|
|
Karsten Hopp |
58f2f7 |
- update to patchlevel 80
|
|
Karsten Hopp |
58f2f7 |
|
|
Jeremy Katz |
9fb2ef |
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 1:6.3.071-3
|
|
Jeremy Katz |
9fb2ef |
- silence %%post
|
|
Jeremy Katz |
9fb2ef |
|
|
Karsten Hopp |
7ec3ea |
* Mon Apr 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.071-2
|
|
Karsten Hopp |
7ec3ea |
- fix wrong Russian code page for vimtutor (#155181)
|
|
Karsten Hopp |
7ec3ea |
|
|
Karsten Hopp |
22b8c8 |
* Mon Apr 11 2005 Karsten Hopp <karsten@redhat.de> 6.3.071-1
|
|
Karsten Hopp |
22b8c8 |
- patchlevel 71, fixes crashes when converting text with illegal characters
|
|
Karsten Hopp |
22b8c8 |
and when moving the vertical separator to the far left (vertically splitted
|
|
Karsten Hopp |
22b8c8 |
window)
|
|
Karsten Hopp |
22b8c8 |
|
|
Karsten Hopp |
5d80bb |
* Mon Apr 11 2005 Karsten Hopp <karsten@redhat.de> 6.3.068-2
|
|
Karsten Hopp |
5d80bb |
- quote special characters in here documents (vim.sh/vim.csh) (#154321)
|
|
Karsten Hopp |
5d80bb |
|
|
Karsten Hopp |
002a19 |
* Thu Mar 31 2005 Karsten Hopp <karsten@redhat.de> 6.3-068
|
|
Karsten Hopp |
002a19 |
- pathlevel 68 (can't write when editing symbolic link to compressed file)
|
|
Karsten Hopp |
a644c7 |
- remove -s parameter from install, this should fix debuginfo packages
|
|
Karsten Hopp |
002a19 |
|
|
Christopher Aillon |
fbcffd |
* Mon Mar 28 2005 Christopher Aillon <caillon@redhat.com>
|
|
Christopher Aillon |
fbcffd |
- rebuilt
|
|
Christopher Aillon |
fbcffd |
|
|
Christopher Aillon |
0b8934 |
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 6.3.067-2
|
|
Christopher Aillon |
0b8934 |
- Update the GTK+ theme icon cache on (un)install
|
|
Christopher Aillon |
0b8934 |
|
|
Karsten Hopp |
3c7097 |
* Wed Mar 23 2005 Karsten Hopp <karsten@redhat.de> 6.3.067-1
|
|
Karsten Hopp |
7e4ccc |
- Newly created files got execute permission (caused by patch 66)
|
|
Karsten Hopp |
3c7097 |
#151667
|
|
Karsten Hopp |
3c7097 |
|
|
Karsten Hopp |
f33019 |
* Fri Mar 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.066-1
|
|
Karsten Hopp |
f33019 |
- patchlevel 66
|
|
Karsten Hopp |
f33019 |
|
|
Karsten Hopp |
499cbf |
* Mon Mar 14 2005 Karsten Hopp <karsten@redhat.de> 6.3.064-1
|
|
Karsten Hopp |
499cbf |
- patchlevel 64
|
|
Karsten Hopp |
499cbf |
- fix selinux warning (#150126)
|
|
Karsten Hopp |
499cbf |
|
|
Karsten Hopp |
5c3e29 |
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 6.3.062-1
|
|
Karsten Hopp |
5c3e29 |
- patchlevel 62, build with gcc-4
|
|
Karsten Hopp |
5c3e29 |
|
|
Karsten Hopp |
ef334d |
* Thu Feb 10 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-3
|
|
Karsten Hopp |
ef334d |
- spec.vim fix from Andrew Overholt
|
|
Karsten Hopp |
ef334d |
|
|
Karsten Hopp |
14c9de |
* Mon Feb 07 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-2
|
|
Karsten Hopp |
14c9de |
- fix tmpfile patch (#147192)
|
|
Karsten Hopp |
14c9de |
|
|
Karsten Hopp |
aed447 |
* Mon Jan 31 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-1
|
|
Karsten Hopp |
aed447 |
- patchlevel 61
|
|
Karsten Hopp |
aed447 |
|
|
cturner |
ad72ee |
* Tue Jan 18 2005 Chip Turner <cturner@redhat.com> 1:058-2
|
|
cturner |
ad72ee |
- rebuild for new perl
|
|
cturner |
ad72ee |
|
|
Karsten Hopp |
7542ee |
* Tue Jan 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.058-1
|
|
Karsten Hopp |
7542ee |
- Patchlevel 58
|
|
Karsten Hopp |
7542ee |
- rebuild with new perl
|
|
Karsten Hopp |
7542ee |
- remove all rpm backup files
|
|
Karsten Hopp |
7542ee |
|
|
Karsten Hopp |
fb8ddf |
* Wed Jan 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.054-2
|
|
Karsten Hopp |
fb8ddf |
- remove backup files
|
|
Karsten Hopp |
fb8ddf |
|
|
Karsten Hopp |
1e6c08 |
* Wed Jan 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.054-1
|
|
Karsten Hopp |
1e6c08 |
- patchlevel 54
|
|
Karsten Hopp |
1e6c08 |
- fix unsecure tempfile usage (#144698)
|
|
Karsten Hopp |
1e6c08 |
|
|
Karsten Hopp |
bee916 |
* Mon Dec 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.042-1
|
|
Karsten Hopp |
bee916 |
- patchlevel 42
|
|
Karsten Hopp |
bee916 |
|
|
Karsten Hopp |
94dc0f |
* Thu Dec 02 2004 Karsten Hopp <karsten@redhat.de> 6.3.035-2
|
|
Karsten Hopp |
94dc0f |
- fix compressed docs handling (#141565)
|
|
Karsten Hopp |
94dc0f |
|
|
Karsten Hopp |
d086be |
* Wed Dec 01 2004 Karsten Hopp <karsten@redhat.de> 6.3.035-1
|
|
Karsten Hopp |
d086be |
- patchlevel 35
|
|
Karsten Hopp |
d086be |
- allow remapping of 'g' (#140747)
|
|
Karsten Hopp |
d086be |
|
|
Karsten Hopp |
4bdf89 |
* Fri Nov 19 2004 Karsten Hopp <karsten@redhat.de> 6.3.033-1
|
|
Karsten Hopp |
4bdf89 |
- patchlevel 33
|
|
Karsten Hopp |
4bdf89 |
|
|
Karsten Hopp |
eb3561 |
* Tue Nov 02 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-3
|
|
Karsten Hopp |
eb3561 |
- fix selinux patch, so that HAVE_SELINUX will not be defined on
|
|
Karsten Hopp |
eb3561 |
non-selinux systems (#137860)
|
|
Karsten Hopp |
eb3561 |
|
|
Karsten Hopp |
03c1db |
* Tue Oct 19 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-3
|
|
Karsten Hopp |
03c1db |
- fix dependencies on vim-common (#132371)
|
|
Karsten Hopp |
03c1db |
|
|
Karsten Hopp |
919746 |
* Mon Oct 11 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-2
|
|
Karsten Hopp |
919746 |
- add cscope to vimrc so that cscope DB will be used
|
|
Karsten Hopp |
919746 |
automatically when available
|
|
Karsten Hopp |
919746 |
|
|
Karsten Hopp |
293dff |
* Fri Oct 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-2
|
|
Karsten Hopp |
293dff |
- patchlevel 30
|
|
Karsten Hopp |
293dff |
|
|
Karsten Hopp |
fee2fd |
* Wed Oct 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.029-2
|
|
Karsten Hopp |
fee2fd |
- fix perl requirement
|
|
Karsten Hopp |
fee2fd |
- patchlevel 29 to fix crash when inserting a line break
|
|
Karsten Hopp |
fee2fd |
|
|
Karsten Hopp |
0b345a |
* Wed Sep 29 2004 Karsten Hopp <karsten@redhat.de> 6.3.028-2
|
|
Karsten Hopp |
0b345a |
- add patch from Ulrich Drepper to fix syntax highlighting of
|
|
Karsten Hopp |
0b345a |
DNS config files (#133746)
|
|
Karsten Hopp |
0b345a |
|
|
Than Ngo |
483797 |
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 6.3.028-1
|
|
Than Ngo |
483797 |
- add patchlevel 27,28
|
|
Than Ngo |
483797 |
|
|
Karsten Hopp |
d06e9f |
* Tue Sep 14 2004 Karsten Hopp <karsten@redhat.de> 6.3.026-1
|
|
Karsten Hopp |
d06e9f |
- patchlevel 26 (fixes an endless loop in syntax highlighting)
|
|
Karsten Hopp |
d06e9f |
|
|
cvsdist |
4e2ca8 |
* Wed Sep 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-2
|
|
cvsdist |
4e2ca8 |
- clean up spec file
|
|
cvsdist |
4e2ca8 |
- disable fontset
|
|
cvsdist |
4e2ca8 |
- enable cscope
|
|
cvsdist |
4e2ca8 |
|
|
cvsdist |
a35fa1 |
* Mon Sep 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-1
|
|
cvsdist |
a35fa1 |
- patchlevel 25
|
|
cvsdist |
a35fa1 |
|
|
cvsdist |
bd9e91 |
* Wed Sep 01 2004 Karsten Hopp <karsten@redhat.de> 6.3.020-1
|
|
cvsdist |
bd9e91 |
- patchlevel 20
|
|
cvsdist |
bd9e91 |
|
|
cvsdist |
d4931c |
* Sun Aug 29 2004 Karsten Hopp <karsten@redhat.de> 6.3.017-1
|
|
cvsdist |
d4931c |
- patchlevel 17
|
|
cvsdist |
d4931c |
|
|
cvsdist |
705de6 |
* Fri Aug 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.015-1
|
|
cvsdist |
705de6 |
- update to patchlevel 15
|
|
cvsdist |
705de6 |
- move older rpm changelog entries to Changelog.rpm
|
|
cvsdist |
705de6 |
|
|
cvsdist |
3ed3c8 |
* Mon Jul 26 2004 Warren Togami <wtogami@redhat.com> 6.3.014-2
|
|
cvsdist |
3ed3c8 |
- future proof vim-enhanced perl dep
|
|
cvsdist |
3ed3c8 |
|
|
cvsdist |
409f8f |
* Thu Jul 22 2004 Karsten Hopp <karsten@redhat.de> 6.3.014-1
|
|
cvsdist |
409f8f |
- patchlevel 14, fixes 'helplang' default settings
|
|
cvsdist |
409f8f |
- fix escape sequence in /etc/vimrc (#128344)
|
|
cvsdist |
409f8f |
|
|
cvsdist |
85045d |
* Fri Jul 16 2004 Karsten Hopp <karsten@redhat.de> 6.3.013-2
|
|
cvsdist |
85045d |
- use different encoding for tutor.pl (#125376)
|
|
cvsdist |
85045d |
|
|
cvsdist |
16173e |
* Tue Jul 13 2004 Karsten Hopp <karsten@redhat.de> 6.3.013-1
|
|
cvsdist |
16173e |
- patchlevel 13 to fix some crashes with multi-line patterns
|
|
cvsdist |
16173e |
and when using CTRL-R in command mode
|
|
cvsdist |
16173e |
|
|
cvsdist |
a46b9f |
* Thu Jul 8 2004 Dan Walsh <dwalsh@redhat.com> 6.3.011-4
|
|
cvsdist |
a46b9f |
- Fix selinux patch to handle symlinks
|
|
cvsdist |
a46b9f |
|
|
cvsdist |
5056ff |
* Wed Jul 07 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-3
|
|
cvsdist |
5056ff |
- rebuild with new gcc
|
|
cvsdist |
5056ff |
|
|
cvsdist |
b5c479 |
* Mon Jul 05 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-2
|
|
cvsdist |
b5c479 |
- convert tutorial files to UTF8 (#125376)
|
|
cvsdist |
b5c479 |
|
|
cvsdist |
145ee0 |
* Sat Jul 03 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-1
|
|
cvsdist |
145ee0 |
- patchlevel 11
|
|
cvsdist |
145ee0 |
|
|
cvsdist |
1b4d76 |
* Thu Jun 17 2004 Karsten Hopp <karsten@redhat.de> 6.3.006-1
|
|
cvsdist |
1b4d76 |
- update to new major release
|