|
|
@@ -38,7 +38,7 @@ Class: CORE
|
|
|
Group: Editor
|
|
|
License: Charityware
|
|
|
Version: %{V_vl}.%{V_pl}
|
|
|
-Release: 20070117
|
|
|
+Release: 20070119
|
|
|
|
|
|
# package options
|
|
|
%option with_x11 no
|
|
|
@@ -52,6 +52,7 @@ Release: 20070117
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{V_vl}.tar.bz2
|
|
|
Source2: rc.vim
|
|
|
+Source3: vimrc
|
|
|
Patch0: vim.patch
|
|
|
Patch1: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.001
|
|
|
Patch2: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.002
|
|
|
@@ -317,6 +318,12 @@ AutoReqProv: no
|
|
|
-e 's;Modified by;Packaged by;' \
|
|
|
vim%{V_vs}/src/version.c
|
|
|
|
|
|
+ # adjust paths to global configuraton files
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;^/\* \(#define SYS_VIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/vimrc";' \
|
|
|
+ -e 's;^/\* \(#define SYS_GVIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/gvimrc";' \
|
|
|
+ vim%{V_vs}/src/feature.h
|
|
|
+
|
|
|
%build
|
|
|
# configure package
|
|
|
cd vim%{V_vs}/src
|
|
|
@@ -326,6 +333,7 @@ AutoReqProv: no
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
+ --with-global-runtime=%{l_prefix}/etc/vim \
|
|
|
--with-modified-by='%{l_openpkg_release}' \
|
|
|
%if "%{with_x11}" == "yes"
|
|
|
--with-x \
|
|
|
@@ -406,8 +414,16 @@ AutoReqProv: no
|
|
|
%{l_shtool} install -c -m 755 %{l_value -s -a} \
|
|
|
%{SOURCE rc.vim} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
|
+ # install default configuration
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/vim
|
|
|
+ %{l_shtool} install -c -m 755 %{l_value -s -a} \
|
|
|
+ %{SOURCE vimrc} $RPM_BUILD_ROOT%{l_prefix}/etc/vim/
|
|
|
+
|
|
|
# determine installation files
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
+ %{l_files_std} \
|
|
|
+ '%config %{l_prefix}/etc/vim/vimrc'
|
|
|
|
|
|
%files -f files
|
|
|
|