# TODO:
-# - merge with AC-branch
-# - some nice icon
# - create vim-full (better name, anybody?) or/and other packages
# for scripting languages support
+# - warning: Installed (but unpackaged) file(s) found:
+# /usr/bin/gview
#
# Conditional build:
%bcond_without static # don't build static version
%bcond_without motif # don't build Motif-based gvim
%bcond_without gtk # don't build GTK+-based gvim support
%bcond_without gnome # don't build GNOME-based gvim support
-%bcond_with perl # with Perl interp
-%bcond_with python # with Python interp
+%bcond_without perl # without Perl interp
+%bcond_without python # without Python interp
%bcond_with ruby # with Ruby interp
%bcond_with tcl # with Tcl interp
%bcond_without selinux # without selinux support
%bcond_without home_etc # without home_etc support
#
-%define _ver 7.1
-%define _patchlevel 116
-%define _rel 1
+%define ver 7.1
+%define patchlevel 244
# cflags get changed while configuring
%undefine configure_cache
Summary(tr.UTF-8): Gelişmiş bir vi sürümü
Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
Name: vim
-Version: %{_ver}.%{_patchlevel}
-Release: %{_rel}
+Version: %{ver}.%{patchlevel}
+Release: 1
Epoch: 4
License: Charityware
Group: Applications/Editors/Vim
-Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2
+Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
# Source0-md5: 44c6b4914f38d6f9aa959640b89da329
-Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-lang.tar.gz
+Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-lang.tar.gz
# Source1-md5: 144aa049ba70621acf4247f0459f3ee7
-Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-extra.tar.gz
+Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-extra.tar.gz
# Source2-md5: 605cc7ae31bcc9d7864bb0bb6025f55d
Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
Source14: %{name}.desktop
# http://www.vim.org/scripts/script.php?script_id=415 (1.15)
Source15: zenburn.%{name}
-Source16: spec.%{name}
# http://www.vim.org/scripts/script.php?script_id=1491 (0.7.3)
Source17: javascript.%{name}
Source18: nagios.%{name}
-Source19: %{name}-ftplugin-spec.vim
Patch0: %{name}-sysconfdir.patch
Patch1: %{name}-visual.patch
Patch2: %{name}-paths.patch
Patch105: %{name}-selinux.patch
Patch106: %{name}-autopaste.patch
Patch107: %{name}-ft-cron.patch
-%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{_patchlevel}
+%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{patchlevel}
URL: http://www.vim.org/
+%{?with_athena:BuildRequires: XFree86-devel}
BuildRequires: acl-devel
BuildRequires: autoconf
BuildRequires: gettext-devel
%{?with_motif:BuildRequires: openmotif-devel}
%{?with_perl:BuildRequires: perl-devel}
%{?with_python:BuildRequires: python-devel >= 2.5}
+BuildRequires: rpmbuild(macros) >= 1.426
%{?with_ruby:BuildRequires: ruby-devel}
%{?with_tcl:BuildRequires: tcl-devel}
-%{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
Obsoletes: kvim
-BuildRequires: rpmbuild(macros) >= 1.351
%if %{with static}
BuildRequires: acl-static
BuildRequires: attr-static
Summary(uk.UTF-8): Файли, потрібні для будь-якої версії редактору vim
Summary(zh_CN.UTF-8): 任何版本的 VIM 编辑器所需的公用文件。
Group: Applications/Editors/Vim
+Requires: vim-plugin-securemodelines
+Requires: vim-syntax-spec
# mktemp is for vimtutor
Requires: mktemp
Requires: vi-editor
%setup -q -n %{name}71 -b1 -b2
# official patches
-%patchset_patch 1 %{_patchlevel}
+%patchset_patch 1 %{patchlevel}
%patch0 -p1
%patch1 -p1
install %{SOURCE14} runtime/indent
install %{SOURCE15} runtime/colors
-install %{SOURCE16} runtime/syntax
install %{SOURCE17} runtime/syntax
install %{SOURCE18} runtime/syntax
-install %{SOURCE19} runtime/ftplugin/spec.vim
%build
cd src
install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
> $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
+# separate package
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/vim71/{ftplugin,syntax}/spec.vim
+
+# no autodeps
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/doc/vim2html.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/shtags.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/pltags.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_perl.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_filter.pl
+
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/rvim
%attr(755,root,root) %{_bindir}/vim
%attr(755,root,root) %{_bindir}/vimdiff
-#%{_mandir}/man1/eview.1*
+%{_mandir}/man1/eview.1*
%{_mandir}/man1/evim.1*
%{_mandir}/man1/rvim.1*
%{_mandir}/man1/vimdiff.1*
%lang(fi) %{_mandir}/fi/man1/rvim.1*
-#%lang(fr) %{_mandir}/fr/man1/eview.1*
+%lang(fr) %{_mandir}/fr/man1/eview.1*
%lang(fr) %{_mandir}/fr/man1/evim.1*
%lang(fr) %{_mandir}/fr/man1/rvim.1*
%lang(fr) %{_mandir}/fr/man1/vimdiff.1*
%lang(id) %{_mandir}/id/man1/rvim.1*
-#%lang(it) %{_mandir}/it/man1/eview.1*
+%lang(it) %{_mandir}/it/man1/eview.1*
%lang(it) %{_mandir}/it/man1/evim.1*
%lang(it) %{_mandir}/it/man1/rvim.1*
%lang(it) %{_mandir}/it/man1/vimdiff.1*
-#%lang(pl) %{_mandir}/pl/man1/eview.1*
+%lang(pl) %{_mandir}/pl/man1/eview.1*
%lang(pl) %{_mandir}/pl/man1/evim.1*
%lang(pl) %{_mandir}/pl/man1/rvim.1*
%lang(pl) %{_mandir}/pl/man1/vimdiff.1*
-#%lang(ru) %{_mandir}/ru/man1/eview.1*
+%lang(ru) %{_mandir}/ru/man1/eview.1*
%lang(ru) %{_mandir}/ru/man1/evim.1*
%lang(ru) %{_mandir}/ru/man1/rvim.1*
%lang(ru) %{_mandir}/ru/man1/vimdiff.1*
%lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
%lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
%lang(sk) %{_datadir}/vim/v*/lang/sk/
+%lang(sl) %{_datadir}/vim/v*/lang/menu_sl_si*
%lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
%lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
%lang(sv) %{_datadir}/vim/v*/lang/sv/
%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
%lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
+%lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN.UTF-8/
%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
%lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
+%lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW.UTF-8/
%dir %{_datadir}/vim/v*/spell
%{_datadir}/vim/v*/spell/cleanadd.vim