+#
# Conditional build:
%bcond_without static # don't build static version
%bcond_without athena # don't build Athena Widgets-based gvim
%bcond_without gtk # don't build GTK+-based gvim support
%bcond_without gnome # don't build GNOME-based gvim support
%bcond_without heavy # don't build heavy (full-featured GNOME-based gvim/vim)
+%bcond_without gui # don't build any GUI
+%bcond_without light # don't build light (minimal, ncurses, but not static)
%bcond_with perl # with Perl interp in vim package
%bcond_with python # with Python interp in vim package
%bcond_with ruby # with Ruby interp in vim package
%bcond_without selinux # without selinux support
%bcond_without home_etc # without home_etc support
-%define ver 7.2
-%define patchlevel 394
+%if %{without gui}
+%undefine with_athena
+%undefine with_motif
+%undefine with_gtk
+%undefine with_gnome
+%endif
+
+# Command to check for latest patch:
+# wget ftp://ftp.vim.org/pub/editors/vim/patches/7.4/MD5SUMS -O sources
+# tail -n1 sources | awk '{print $2}'
+# VCS Commits: https://code.google.com/p/vim/source/browse/
+
+%define ver 7.4
+%define patchlevel 861
+%define rel 0.1
Summary: Vi IMproved - a Vi clone
Summary(de.UTF-8): VIsual editor iMproved
Summary(es.UTF-8): Editor visual incrementado
Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
Name: vim
Version: %{ver}.%{patchlevel}
-Release: 1
+Release: %{rel}
Epoch: 4
License: Charityware
Group: Applications/Editors/Vim
Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
-# Source0-md5: f0901284b338e448bfd79ccca0041254
-Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-lang.tar.gz
-# Source1-md5: d8884786979e0e520c112faf2e176f05
-Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-extra.tar.gz
-# Source2-md5: 35e04482f07c57221c9a751aaa3b8dac
-Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-# Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
-Source4: http://skawina.eu.org/mikolaj/usr_doc_pl.zip
-# Source4-md5: ff96284b1c913d55cf0877839b34d490
+# Source0-md5: 607e135c559be642f210094ad023dc65
+Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: bc4d1e115ca506ad7751b9bd2b773a7f
+Source2: http://skawina.eu.org/mikolaj/usr_doc_pl.zip
+# Source2-md5: ff96284b1c913d55cf0877839b34d490
Source10: g%{name}-athena.desktop
Source11: g%{name}-motif.desktop
Source12: g%{name}-gtk.desktop
Source13: g%{name}-gnome.desktop
Source14: %{name}.desktop
+Source15: update-source.sh
# syntax files
# http://www.vim.org/scripts/script.php?script_id=1491 (0.7.5)
Source20: javascript.vim
# http://www.vim.org/scripts/script.php?script_id=447 (20040206)
Source22: exim.vim
-# http://www.vim.org/scripts/script.php?script_id=1571 (0.9.7)
-Source23: php.vim
# color schemes
# http://www.vim.org/scripts/script.php?script_id=415 (1.15)
Source30: zenburn.vim
Source32: oceandeep.vim
# http://www.vim.org/scripts/script.php?script_id=1464 (2.6.3)
Source33: moria.vim
-%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.2/7.2.%03g 1 %{patchlevel}
+%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/%{ver}/%{ver}.%03g 1 %{patchlevel}
Patch0: %{name}-sysconfdir.patch
Patch1: %{name}-visual.patch
Patch2: %{name}-paths.patch
Patch13: 013_all_%{name}-7.0-cron-vars-79981.patch
Patch14: 020_all_%{name}-7.0-fstab-tmpfs-size.patch
Patch15: 021_all_%{name}-7.0-fstab-bogus-errors.patch
-Patch16: 024_all_%{name}-6.3-bash-83565.patch
Patch17: 027_all_%{name}-7.0-automake-substitutions-93378.patch
Patch18: %{name}-smarty.patch
Patch19: %{name}-tutor-lessdeps.patch
Patch22: %{name}-man_installation.patch
Patch23: %{name}-vimrc.patch
Patch24: %{name}-syntax-exports.patch
-Patch25: %{name}-syntax-sshconfig.patch
-Patch102: %{name}-gtkfilechooser.patch
-Patch104: %{name}-home_etc.patch
-Patch105: %{name}-autopaste.patch
-Patch106: %{name}-ft-cron.patch
-Patch107: %{name}-relativenumber.patch
-Patch108: %{name}-phpscript.patch
-Patch109: %{name}-pam.patch
-Patch110: %{name}-ft-bash.patch
-Patch111: %{name}-gzhelp.patch
-Patch112: %{name}-localedir.patch
-Patch113: %{name}-locales.patch
-Patch114: %{name}-rtdir.patch
-Patch115: %{name}-ft-mib.patch
+Patch25: sudoers-include.patch
+Patch26: %{name}-home_etc.patch
+Patch27: %{name}-autopaste.patch
+Patch28: %{name}-ft-cron.patch
+Patch29: %{name}-phpscript.patch
+Patch30: %{name}-pam.patch
+Patch32: %{name}-localedir.patch
+Patch33: %{name}-locales.patch
+Patch34: %{name}-rtdir.patch
+Patch35: %{name}-ft-mib.patch
+Patch36: %{name}-ft-lib-udevrules.patch
+Patch37: %{name}-ft-mysql.patch
+Patch38: %{name}-ft-gyp.patch
+Patch39: %{name}-revert-7.4.165-noundo.patch
URL: http://www.vim.org/
BuildRequires: acl-devel
BuildRequires: autoconf
-BuildRequires: gettext-devel
BuildRequires: gpm-devel
%if "%{pld_release}" == "ac"
%{?with_athena:BuildRequires: XFree86-devel}
+BuildRequires: gettext-devel
%else
+BuildRequires: gettext-tools
%{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
%endif
%if %{with gtk} || %{with heavy}
%if %{with selinux} || %{with heavy}
BuildRequires: libselinux-devel
%endif
+%{?with_motif:BuildRequires: motif-devel}
BuildRequires: ncurses-devel
-%{?with_motif:BuildRequires: openmotif-devel}
BuildRequires: pkgconfig
%if %{with perl} || %{with heavy}
BuildRequires: perl-devel
%endif
%if %{with python} || %{with heavy}
BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
%endif
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpmbuild(macros) >= 1.426
Obsoletes: vim-static
%endif
BuildRequires: unzip
-Requires: %{name}-rt = %{epoch}:%{version}-%{release}
+Suggests: %{name}-rt = %{epoch}:%{version}-%{release}
Provides: vi-editor
Provides: vi
Provides: vim-editor = %{epoch}:%{version}-%{release}
# configure redefines it to =1
%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]*
+%define filterout_c -Wp,-D_FORTIFY_SOURCE=2
# that's example script
%define _noautoreq '/bin/csh'
VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
-finestre multiple, funzione \"annulla\" multilivello, evidenziazione
-dei blocchi e altro.
+finestre multiple, funzione "annulla" multilivello, evidenziazione dei
+blocchi e altro.
%description -l pl.UTF-8
Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
Pakiet ten dostarcza w pełni funkcjonalną wersję Vima, czyli
zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl.
+%package light
+Summary: Minimal build of Vim
+Summary(pl.UTF-8): Minimalna wersja vima
+Group: Applications/Editors/Vim
+Provides: vi-editor
+Provides: vi
+Provides: vim-editor = %{epoch}:%{version}-%{release}
+
+%description light
+This package provides light featured version of Vim.
+
+%description light -l pl.UTF-8
+Pakiet ten dostarcza minimalną wersję Vima.
+
+%package -n vimx
+Summary: Vi IMproved - a Vi clone
+Summary(pl.UTF-8): Vi IMproved - klon edytora Vi
+Group: X11/Applications/Editors
+Requires: %{name}-rt = %{epoch}:%{version}-%{release}
+Provides: vi-editor
+Provides: vi
+Provides: vim-editor = %{epoch}:%{version}-%{release}
+Obsoletes: vim-enhanced
+Obsoletes: vim-ispell
+Obsoletes: vim-plugin-multvals
+
+%description -n vimx
+This package provides console version of Vim, with support for basic
+X11 features like system clipboard.
+
+%description -n vimx -l pl.UTF-8
+Pakiet ten dostarcza konsolową wersję Vima, posiadającą wsparcie dla
+podstawowych funckcji X11, takich jak systemowy schowek.
+
%package static
Summary: Statically linked Vim
Summary(hu.UTF-8): A Vim statikus verziója
Summary(it.UTF-8): File comuni necessari per tutte le versioni dell'editor VIM
Summary(ja.UTF-8): すべてのバージョンの VIM エディタで必要とされる共通ファイル
Summary(nb.UTF-8): Felles filer som er nødvendige for enhver versjon av VIM editoren
-Summary(pl.UTF-8): Pliki przydatne edytorowi Vim
+Summary(pl.UTF-8): Pliki przydatne dla edytora Vim
Summary(pt.UTF-8): Os ficheiros comuns necessários para qualquer versão do editor VIM
Summary(ru.UTF-8): Файлы, требуемые для любой версии редактора vim
Summary(sk.UTF-8): Spoločné súbory potrebné pre všetky verzie editoru VIM
Group: Applications/Editors/Vim
Requires: rpm-whiteout >= 1.3
Requires: vim-plugin-securemodelines
-Suggests: vim-syntax-spec
Obsoletes: gvim-bonobo
Obsoletes: vim-common
+Obsoletes: vim-syntax-gitcommit
+Obsoletes: vim-syntax-upstart
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description rt
This package contains macros, documentation, syntax configuration and
Tento balíček obsahuje společné soubory pro všechny další balíčky s
vim.
-%description rt -l da.UTF-8
-The vim-rt package contains files which every VIM binary will need in
-order to run.
-
%description rt -l de.UTF-8
Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
Ausführung benötigt.
per poter funzionare.
%description rt -l pl.UTF-8
-W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
-strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
-zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
+W tym pakiecie znajdują się makra, pliki konfiguracyjne i strony
+podręcznika dla edytora Vim. Aby korzystać z zaawansowanych możliwości
+Vima, należy zainstalować ten pakiet.
%description rt -l pt.UTF-8
O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
%package rt-extras
Summary: Vim runtime extra files
+Summary(pl.UTF-8): Dodatkowe pliki uruchomieniowe Vima
Group: Applications/Editors/Vim
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description rt-extras
This package contains more runtime extra files, not really useful. If
you want to take full advantage of Vim more powerful features, you
should install this package.
+%description rt-extras -l pl.UTF-8
+Ten pakiet zawiera dodatkowe pliki uruchomieniowe, nie tak bardzo
+przydatne. Aby korzystać ze wszystkich możliwości Vima, należy
+zainstalować ten pakiet.
+
%package doc
Summary: Context Vim documentation
+Summary(pl.UTF-8): Dokumentacja kontekstowa do Vima
Group: Applications/Editors/Vim
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
Requires: gzip
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description doc
This package contains Vim documentation accessible from vim itself
using :help command.
+%description doc -l pl.UTF-8
+Ten pakiet zawiera dokumentację do Vima dostępną z poziomu samego vima
+za pomocą polecenia :help.
+
%package spell-en
Summary: English dictionaries for VIMspell
Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
Group: Applications/Editors/Vim
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description spell-en
English dictionaries for VIMspell.
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
Requires: mktemp
Requires: vim-editor = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description tutor
This package contains Vim tutorial.
з повністю графічним інтерфейсом та підтримкою миші.
%package -n gvim-motif
-Summary: Vim for X Window built with Motif
+Summary: Vim for X Window System built with Motif
Summary(hu.UTF-8): A Vim X Window verziója, a Motif felhasználásával
-Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif
+Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki Motif
Group: Applications/Editors/Vim
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
Requires: iconv
повністю графічним інтерфейсом та підтримкою миші.
%package -n gvim-gtk
-Summary: Vim for X Window built with gtk
-Summary(hu.UTF-8): A Vim X Window verziója, a GTK felhasználásával
-Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK
+Summary: Vim for X Window System built with GTK+
+Summary(hu.UTF-8): A Vim X Window verziója, a GTK+ felhasználásával
+Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki GTK+
Group: Applications/Editors/Vim
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
Requires: %{name}-rt-extras = %{epoch}:%{version}-%{release}
Requires: iconv
%description -n gvim-gtk
The classic Unix text editor now also under X Window System! This
-version is built with GTK.
+version is built with GTK+.
%description -n gvim-gtk -l hu.UTF-8
-A Vim X Window verziója, a GTK Widgetkészlet felhasználásával.
+A Vim X Window verziója, a GTK+ Widgetkészlet felhasználásával.
%description -n gvim-gtk -l pl.UTF-8
Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
-biblioteki GTK.
+biblioteki GTK+.
%description -n gvim-gtk -l ru.UTF-8
Этот пакет представляет собой версию VIM, собранную с библиотеками
графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
%package -n gvim-gnome
-Summary: Vim for X Window built with GNOME
-Summary(hu.UTF-8): A Vim X Window verziója, a GTK felhasználásával
-Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME
+Summary: Vim for X Window System built with GNOME
+Summary(hu.UTF-8): A Vim X Window verziója, a GNOME felhasználásával
+Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki GNOME
Group: Applications/Editors/Vim
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
Requires: %{name}-rt-extras = %{epoch}:%{version}-%{release}
Requires: iconv
повністю графічним інтерфейсом та підтримкою миші.
%package -n gvim-heavy
-Summary: Full featured build of Vim with X-window support
+Summary: Full featured build of Vim with X Window support
Summary(hu.UTF-8): A gvim legteljesebb verziója
-Summary(pl.UTF-8): W pełni funkcjonalna wersja Vima z interfejsem dla X-window
+Summary(pl.UTF-8): W pełni funkcjonalna wersja Vima z interfejsem dla X Window
Group: Applications/Editors/Vim
Requires(post,postun): gtk+2
Requires: %{name}-rt = %{epoch}:%{version}-%{release}
jak również GUI GTK+2.
%prep
-%setup -q -n %{name}72 -b1 -b2
+%setup -q -n %{name}74
# official patches
-%patchset_patch 1 %{patchlevel}
+# patches 7.4.802, 7.4.809 do not apply
+# 7.4.802 does not apply and 7.4.809 attempts to revert 7.4.802
+%patchset_patch 1 801
+%patchset_patch 803 808
+%patchset_patch 810 %{patchlevel}
%patch0 -p1
%patch1 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
-%patch16 -p0
%patch17 -p0
%patch18 -p1
%patch19 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
-
-# home etc
-%{?with_home_etc:%patch104 -p1}
+%{?with_home_etc:%patch26 -p1}
# autopaste patch - automatically switch to paste mode
# when `really fast typing' situation happens
-%patch105 -p1
-
-%patch106 -p1
-%patch107 -p0
-%patch108 -p1
-%patch109 -p1
-%patch110 -p1
-%patch111 -p1
-%patch112 -p1
-%patch113 -p1
-%patch114 -p1
-%patch115 -p1
-
-cp -a %{SOURCE20} runtime/syntax
-cp -a %{SOURCE22} runtime/syntax
-cp -a %{SOURCE23} runtime/syntax
-cp -a %{SOURCE30} runtime/colors
-cp -a %{SOURCE31} runtime/colors
-cp -a %{SOURCE32} runtime/colors
-
-%{__unzip} -qd runtime/doc %{SOURCE4}
+%patch27 -p1
+%patch28 -p1
+%patch29 -p1
+%patch30 -p1
+%patch32 -p1
+%patch33 -p1
+%patch34 -p1
+%patch35 -p1
+%patch36 -p1
+%patch37 -p1
+%patch38 -p1
+%patch39 -p1
+
+cp -p %{SOURCE20} runtime/syntax
+cp -p %{SOURCE22} runtime/syntax
+cp -p %{SOURCE30} runtime/colors
+cp -p %{SOURCE31} runtime/colors
+cp -p %{SOURCE32} runtime/colors
+
+%{__unzip} -qd runtime/doc %{SOURCE2}
# remove unsupported locales
-rm -f src/po/zh_{CN,TW}.UTF-8.po
-rm -f runtime/lang/menu_zh_{cn,tw}.utf-8.vim
+%{__rm} src/po/zh_{CN,TW}.UTF-8.po
+%{__rm} runtime/lang/menu_zh_{cn,tw}.utf-8.vim
# fix nb/no
-mv -f src/po/n{o,b}.po
-mv -f runtime/tutor/tutor.n{o,b}
-mv -f runtime/tutor/tutor.n{o,b}.utf-8
-mv -f runtime/lang/menu_n{o,b}.latin1.vim
-mv -f runtime/lang/menu_n{o,b}.utf-8.vim
-mv -f runtime/lang/menu_n{o,b}_no.latin1.vim
-mv -f runtime/lang/menu_n{o,b}_no.utf-8.vim
+%{__mv} src/po/n{o,b}.po
+%{__mv} runtime/tutor/tutor.n{o,b}
+%{__mv} runtime/tutor/tutor.n{o,b}.utf-8
+%{__mv} runtime/lang/menu_n{o,b}.latin1.vim
+%{__mv} runtime/lang/menu_n{o,b}.utf-8.vim
+%{__mv} runtime/lang/menu_n{o,b}_no.latin1.vim
+%{__mv} runtime/lang/menu_n{o,b}_no.utf-8.vim
%build
cd src
local target=$1
shift
- %{__make} distclean
+ %configure \
+%if "%{pld_release}" == "ac"
+ --with-tlib="ncurses -ltinfo"
+%else
+ --with-tlib="ncursesw"
+%endif
+
+ %{__make} -j1 distclean
# add common options, can override (disable) if needed with args
%configure \
--%{!?with_perl:dis}%{?with_perl:en}able-perlinterp \
--enable-gpm \
--enable-multibyte \
--enable-nls \
+%if "%{pld_release}" == "ac"
--with-tlib="ncurses -ltinfo" \
+%else
+ --with-tlib="ncursesw" \
+%endif
--with-modified-by="PLD Linux Distribution" \
--with-compiledby="PLD Linux Distribution" \
"$@"
LDFLAGS="%{rpmldflags}"
%endif
+%if %{with light}
+build vim.light \
+ --disable-gui \
+ --without-x \
+ --with-features=small \
+ --disable-perlinterp \
+ --disable-pythoninterp \
+ --disable-rubyinterp \
+ --disable-tclinterp \
+ --disable-cscope \
+ --disable-gpm \
+ --disable-nls
+%endif
+
build vim.ncurses \
--disable-gui \
--without-x \
--with-features=huge
+build vimx \
+ --disable-gui \
+ --with-x \
+ --with-features=huge
+
%if %{with athena}
build gvim.athena \
--with-features=huge \
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
- $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
+ $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim/ftdetect} \
$RPM_BUILD_ROOT%{_desktopdir}
%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
+# not supported locales added by 7.3.764 or later
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.sjis
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.euc-jp
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.UTF-8
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ru.cp1251
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sk.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk.cp1251
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.cp936
+
%find_lang %{name}
# use compressed docs, see :help gzip-helpfile
%{__gzip} -9 $RPM_BUILD_ROOT%{_datadir}/vim/doc/*.??x
%{__sed} -i -e 's=\(\t.*\.plx\)\t=\1.gz\t=' $RPM_BUILD_ROOT%{_datadir}/vim/doc/tags-pl
-rm -f $RPM_BUILD_ROOT%{_bindir}/*
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
%if %{with static}
install -p src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
install -p src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
%endif
+install -p src/bin/vimx $RPM_BUILD_ROOT%{_bindir}/vimx
install -p src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
install -p src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
-echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
-echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
+echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
+echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
# not supported directories
-rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
+%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/??.*/
mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/vimrc_example.vim,%{_sysconfdir}/vim/vimrc}
mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/gvimrc_example.vim,%{_sysconfdir}/vim/gvimrc}
-ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
-ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
ln -sf vi $RPM_BUILD_ROOT/bin/ex
ln -sf vi $RPM_BUILD_ROOT/bin/view
ln -sf vi $RPM_BUILD_ROOT/bin/rview
-cp -a %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
%if %{with athena}
install -p src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
-cp -a %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
%endif
%if %{with motif}
install -p src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
-cp -a %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
%endif
%if %{with gnome}
install -p src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
-cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
%endif
%if %{with gtk}
install -p src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
+ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/eview
+ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/evim
ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
-cp -a %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
%endif
%if %{with heavy}
install -p src/bin/vim.heavy $RPM_BUILD_ROOT%{_bindir}
install -p src/bin/gvim.heavy $RPM_BUILD_ROOT%{_bindir}
%endif
+%if %{with light}
+install -p src/bin/vim.light $RPM_BUILD_ROOT%{_bindir}
+%endif
install -d $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a runtime/vim48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/vim.png
+cp -p runtime/vim48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/vim.png
-bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
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
%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/{ftplugin,syntax}/spec.vim
# unuseful
-rm -rf $RPM_BUILD_ROOT%{_datadir}/vim/tools
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/tools
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/check_locales.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/fixdup.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/eview
-%attr(755,root,root) %{_bindir}/evim
%attr(755,root,root) %{_bindir}/rvim
%attr(755,root,root) %{_bindir}/vim
%attr(755,root,root) %{_bindir}/vimdiff
-%{_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/evim.1*
%lang(fr) %{_mandir}/fr/man1/rvim.1*
%lang(fr) %{_mandir}/fr/man1/vimdiff.1*
%lang(id) %{_mandir}/id/man1/rvim.1*
%lang(id) %{_mandir}/id/man1/vim.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/vim.1*
%lang(it) %{_mandir}/it/man1/vimdiff.1*
-%lang(pl) %{_mandir}/pl/man1/eview.1*
-%lang(pl) %{_mandir}/pl/man1/evim.1*
+%lang(ja) %{_mandir}/ja/man1/rvim.1*
+%lang(ja) %{_mandir}/ja/man1/vim.1*
+%lang(ja) %{_mandir}/ja/man1/vimdiff.1*
%lang(pl) %{_mandir}/pl/man1/rvim.1*
%lang(pl) %{_mandir}/pl/man1/vim.1*
%lang(pl) %{_mandir}/pl/man1/vimdiff.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/vim.1*
%lang(ru) %{_mandir}/ru/man1/vimdiff.1*
%files static
%endif
%defattr(644,root,root,755)
-%attr(755,root,root) /bin/*
+%attr(755,root,root) /bin/ex
+%attr(755,root,root) /bin/rview
+%attr(755,root,root) /bin/vi
+%attr(755,root,root) /bin/view
%{_mandir}/man1/vi.1*
%{_mandir}/man1/ex.1*
%{_mandir}/man1/view.1*
%lang(it) %{_mandir}/it/man1/ex.1*
%lang(it) %{_mandir}/it/man1/view.1*
%lang(it) %{_mandir}/it/man1/rview.1*
+%lang(ja) %{_mandir}/ja/man1/ex.1*
+%lang(ja) %{_mandir}/ja/man1/view.1*
+%lang(ja) %{_mandir}/ja/man1/rview.1*
%lang(pl) %{_mandir}/pl/man1/vi.1*
%lang(pl) %{_mandir}/pl/man1/ex.1*
%lang(pl) %{_mandir}/pl/man1/view.1*
%{_mandir}/man1/xxd.1*
%lang(fr) %{_mandir}/fr/man1/xxd.1*
%lang(it) %{_mandir}/it/man1/xxd.1*
+%lang(ja) %{_mandir}/ja/man1/xxd.1*
%lang(pl) %{_mandir}/pl/man1/xxd.1*
%lang(ru) %{_mandir}/ru/man1/xxd.1*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
%dir %{_datadir}/vim
+%dir %{_datadir}/vim/doc
+%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
+%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
+%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
%dir %{_datadir}/vim/vimfiles
%dir %{_datadir}/vim/vimfiles/doc
%dir %{_datadir}/vim/vimfiles/plugin
%dir %{_datadir}/vim/vimfiles/spell
%dir %{_datadir}/vim/vimfiles/syntax
-%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
%{_datadir}/vim/*.vim
%dir %{_datadir}/vim/autoload
%doc %{_datadir}/vim/autoload/README.txt
+%dir %{_datadir}/vim/ftdetect
+
%dir %{_datadir}/vim/ftplugin
%doc %{_datadir}/vim/ftplugin/README.txt
%{_datadir}/vim/ftplugin/*.vim
+%{_datadir}/vim/ftplugin/logtalk.dict
%dir %{_datadir}/vim/indent
%doc %{_datadir}/vim/indent/README.txt
%lang(zh_TW) %{_datadir}/vim/lang/menu_*taiwan*
%dir %{_datadir}/vim/spell
+%{_datadir}/vim/spell/spell.vim
%lang(he) %{_datadir}/vim/spell/he.*
%lang(yi) %{_datadir}/vim/spell/yi.*
-%{_mandir}/man1/rvim.1*
%{_mandir}/man1/vim.1*
-%lang(fi) %{_mandir}/fi/man1/rvim.1*
%lang(fi) %{_mandir}/fi/man1/vim.1*
-%lang(fr) %{_mandir}/fr/man1/rvim.1*
%lang(fr) %{_mandir}/fr/man1/vim.1*
%{_pixmapsdir}/vim.png
%files doc
%defattr(644,root,root,755)
-%dir %{_datadir}/vim/doc
-
# English
%{_datadir}/vim/doc/*.txt.gz
-%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
# Polish
%lang(pl) %{_datadir}/vim/doc/*.plx.gz
-%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
%files tutor
%defattr(644,root,root,755)
%dir %{_datadir}/vim/tutor/tutor
%{_datadir}/vim/tutor/README.txt
-%{_datadir}/vim/tutor/README.txt.info
-%{_datadir}/vim/tutor/tutor.info
%{_datadir}/vim/tutor/tutor.vim
%{_datadir}/vim/tutor/tutor.utf-8
%lang(el) %{_datadir}/vim/tutor/README.el.cp737.txt
%lang(el) %{_datadir}/vim/tutor/README.el.txt
+%lang(de) %{_datadir}/vim/tutor/tutor.bar
+%lang(de) %{_datadir}/vim/tutor/tutor.bar.utf-8
%lang(ca) %{_datadir}/vim/tutor/tutor.ca
%lang(ca) %{_datadir}/vim/tutor/tutor.ca.utf-8
%lang(cs) %{_datadir}/vim/tutor/tutor.cs
%lang(el) %{_datadir}/vim/tutor/tutor.el
%lang(el) %{_datadir}/vim/tutor/tutor.el.cp737
%lang(el) %{_datadir}/vim/tutor/tutor.el.utf-8
+%lang(eo) %{_datadir}/vim/tutor/tutor.eo
%lang(eo) %{_datadir}/vim/tutor/tutor.eo.utf-8
%lang(es) %{_datadir}/vim/tutor/tutor.es
%lang(es) %{_datadir}/vim/tutor/tutor.es.utf-8
%lang(hr) %{_datadir}/vim/tutor/tutor.hr.cp1250
%lang(hr) %{_datadir}/vim/tutor/tutor.hr.utf-8
%lang(hu) %{_datadir}/vim/tutor/tutor.hu
-%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
%lang(hu) %{_datadir}/vim/tutor/tutor.hu.cp1250
+%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
%lang(it) %{_datadir}/vim/tutor/tutor.it
%lang(it) %{_datadir}/vim/tutor/tutor.it.utf-8
%lang(ja) %{_datadir}/vim/tutor/tutor.ja.euc
%lang(ja) %{_datadir}/vim/tutor/tutor.ja.utf-8
%lang(ko) %{_datadir}/vim/tutor/tutor.ko.euc
%lang(ko) %{_datadir}/vim/tutor/tutor.ko.utf-8
+%lang(nl) %{_datadir}/vim/tutor/tutor.nl
+%lang(nl) %{_datadir}/vim/tutor/tutor.nl.utf-8
%lang(nb) %{_datadir}/vim/tutor/tutor.nb
%lang(nb) %{_datadir}/vim/tutor/tutor.nb.utf-8
%lang(pl) %{_datadir}/vim/tutor/tutor.pl
%lang(pl) %{_datadir}/vim/tutor/tutor.pl.cp1250
%lang(pl) %{_datadir}/vim/tutor/tutor.pl.utf-8
+%lang(pt) %{_datadir}/vim/tutor/tutor.pt
+%lang(pt) %{_datadir}/vim/tutor/tutor.pt.utf-8
%lang(ru) %{_datadir}/vim/tutor/tutor.ru
%lang(ru) %{_datadir}/vim/tutor/tutor.ru.cp1251
%lang(ru) %{_datadir}/vim/tutor/tutor.ru.utf-8
%lang(tr) %{_datadir}/vim/tutor/tutor.tr.iso9
%lang(tr) %{_datadir}/vim/tutor/tutor.tr.utf-8
%lang(vi) %{_datadir}/vim/tutor/tutor.vi.utf-8
+%lang(zh_CN) %{_datadir}/vim/tutor/tutor.zh_cn.utf-8
%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.big5
%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.euc
%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.utf-8
+%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh_tw.utf-8
%{_mandir}/man1/vimtutor.1*
%lang(fr) %{_mandir}/fr/man1/vimtutor.1*
%lang(it) %{_mandir}/it/man1/vimtutor.1*
+%lang(ja) %{_mandir}/ja/man1/vimtutor.1*
%lang(pl) %{_mandir}/pl/man1/vimtutor.1*
%lang(ru) %{_mandir}/ru/man1/vimtutor.1*
+%files -n vimx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vimx
+
%if %{with heavy}
%files heavy
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/vim.heavy
%endif
+%if %{with light}
+%files light
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vim.light
+%endif
+
%files spell-en
%defattr(644,root,root,755)
%{_datadir}/vim/spell/en.*.*
%files -n gvim-gtk
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gvim.gtk
-%attr(755,root,root) %{_bindir}/gvimdiff
+%attr(755,root,root) %verify(not link) %{_bindir}/gvim
+%attr(755,root,root) %{_bindir}/eview
+%attr(755,root,root) %{_bindir}/evim
%attr(755,root,root) %{_bindir}/gview
-%attr(755,root,root) %{_bindir}/rgvim
+%attr(755,root,root) %{_bindir}/gvimdiff
%attr(755,root,root) %{_bindir}/rgview
-%attr(755,root,root) %verify(not link) %{_bindir}/gvim
+%attr(755,root,root) %{_bindir}/rgvim
+%{_mandir}/man1/eview.1*
+%{_mandir}/man1/evim.1*
%{_mandir}/man1/gvi*
%{_mandir}/man1/rgv*
%lang(fi) %{_mandir}/fi/man1/gvi*
%lang(fi) %{_mandir}/fi/man1/rgv*
+%lang(fr) %{_mandir}/fr/man1/eview.1*
+%lang(fr) %{_mandir}/fr/man1/evim.1*
%lang(fr) %{_mandir}/fr/man1/gvi*
%lang(fr) %{_mandir}/fr/man1/rgv*
%lang(id) %{_mandir}/id/man1/gvi*
%lang(id) %{_mandir}/id/man1/rgv*
+%lang(it) %{_mandir}/it/man1/eview.1*
+%lang(it) %{_mandir}/it/man1/evim.1*
%lang(it) %{_mandir}/it/man1/gvi*
%lang(it) %{_mandir}/it/man1/rgv*
+%lang(ja) %{_mandir}/ja/man1/eview.1*
+%lang(ja) %{_mandir}/ja/man1/evim.1*
+%lang(ja) %{_mandir}/ja/man1/gvi*
+%lang(ja) %{_mandir}/ja/man1/rgv*
+%lang(pl) %{_mandir}/pl/man1/eview.1*
+%lang(pl) %{_mandir}/pl/man1/evim.1*
%lang(pl) %{_mandir}/pl/man1/gvi*
%lang(pl) %{_mandir}/pl/man1/rgv*
+%lang(ru) %{_mandir}/ru/man1/eview.1*
+%lang(ru) %{_mandir}/ru/man1/evim.1*
%lang(ru) %{_mandir}/ru/man1/gvi*
%lang(ru) %{_mandir}/ru/man1/rgv*
%{_desktopdir}/gvim-gtk.desktop