3 # bcond_off_static - without static version
4 # bcond_off_athena - without Athena Widgets-based gvim
5 # bcond_off_motif - without Motif-based gvim
6 # bcond_off_gtk - without gtk+-based gvim support
7 # bcond_off_gnome - without gnome-based gvim support
9 Summary: Vi IMproved - a Vi clone
10 Summary(de): VIsual editor iMproved
11 Summary(fr): editeur VIM : VIsual editor iMproved
12 Summary(pl): Vi IMproved - klon edytora Vi
13 Summary(tr): Geliþmiþ bir vi sürümü
19 Group: Applications/Editors/Vim
20 Group(de): Applikationen/Editors/Vim
21 Group(pl): Aplikacje/Edytory/Vim
22 Source0: ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-src.tar.gz
23 Source1: ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-rt.tar.gz
24 Source2: ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-extra.tar.gz
25 Source3: ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-lang.tar.gz
26 Source4: g%{name}-athena.desktop
27 Source5: g%{name}-motif.desktop
28 Source6: g%{name}-gtk.desktop
29 Source7: g%{name}-gnome.desktop
30 Patch0: %{name}-sysconfdir.patch
31 Patch1: %{name}-visual.patch
32 Patch2: %{name}-lilo.patch
33 Patch3: %{name}-phphighlight.patch
34 Patch4: %{name}-paths.patch
35 #Patch5: %{name}-speed_t.patch
36 URL: http://www.vim.org/
37 BuildRequires: ncurses-devel
38 %{!?bcond_off_static:BuildRequires: ncurses-static}
39 %{!?bcond_off_static:BuildRequires: glibc-static}
40 BuildRequires: gpm-devel
41 %{!?bcond_off_athena:BuildRequires: Xaw3d-devel}
42 %{!?bcond_off_motif:BuildRequires: motif-devel}
43 %{!?bcond_off_gtk:BuildRequires: gtk+-devel}
44 %{!?bcond_off_gnome:BuildRequires: gnome-libs-devel}
45 %{!?bcond_off_gnome:BuildRequires: esound-devel}
47 Requires: %{name}-rt = %{version}
49 %{?bcond_off_static:Requires: %{name}-static = %{version}}
50 Obsoletes: vim-enhanced
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Text editor similar to Vi. Important improvements: multiple windows,
55 multi-level undo, block highliting, and many other.
58 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
59 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
60 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
61 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
65 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
66 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
67 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
68 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
69 blocs et autres caractéristiques au vi de base.
72 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
73 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
77 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
78 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
81 Summary: Staticly linked Vim
82 Summary(pl): Statycznie zlinkowany Vim
83 Group: Applications/Editors/Vim
84 Group(de): Applikationen/Editors/Vim
85 Group(pl): Aplikacje/Edytory/Vim
88 Obsoletes: vim-minimal
91 Text editor similar to Vi. This version is build with minimal feature
92 and is installed in /bin as a rescue tool. The installation of this
93 package is STRONGLY recommended.
95 %description static -l pl
96 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
97 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
98 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
99 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
102 Summary: Vim runtime files
103 Summary(pl): Pliki przydatne edytorowi Vim
104 Group: Applications/Editors/Vim
105 Group(de): Applikationen/Editors/Vim
106 Group(pl): Aplikacje/Edytory/Vim
108 Obsoletes: vim-common
111 This package contains macros, documentation, syntax configuration and
112 manual pages for vim. If you want to take advantage of vim more
113 powerful features, you should install this package.
115 %description rt -l pl
116 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
117 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
118 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
120 %package -n gvim-athena
121 Summary: Vim for X Window built with Athena
122 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
123 Group: Applications/Editors/Vim
124 Group(de): Applikationen/Editors/Vim
125 Group(pl): Aplikacje/Edytory/Vim
126 Requires: %{name}-rt = %{version}
130 %description -n gvim-athena
131 The classic Unix text editor now also under X Window System! This
132 version is build with Athena Widget Set.
134 %description -n gvim-athena -l pl
135 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
136 biblioteki Athena Widget Set.
138 %package -n gvim-motif
139 Summary: Vim for X Window built with Motif
140 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
141 Group: Applications/Editors/Vim
142 Group(de): Applikationen/Editors/Vim
143 Group(pl): Aplikacje/Edytory/Vim
144 Requires: %{name}-rt = %{version}
148 %description -n gvim-motif
149 The classic Unix text editor now also under X Window System! This
150 version is build with Motif.
152 %description -n gvim-motif -l pl
153 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
157 Summary: Vim for X Window built with gtk
158 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
159 Group: Applications/Editors/Vim
160 Group(de): Applikationen/Editors/Vim
161 Group(pl): Aplikacje/Edytory/Vim
162 Requires: %{name}-rt = %{version}
166 %description -n gvim-gtk
167 The classic Unix text editor now also under X Window System! This
168 version is build with GTK and GNOME.
170 %description -n gvim-gtk -l pl
171 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
172 biblioteki GTK oraz GNOME.
174 %package -n gvim-gnome
175 Summary: Vim for X Window built with gnome
176 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
177 Group: Applications/Editors/Vim
178 Group(de): Applikationen/Editors/Vim
179 Group(pl): Aplikacje/Edytory/Vim
180 Requires: %{name}-rt = %{version}
184 %description -n gvim-gnome
185 The classic Unix text editor now also under X Window System! This
186 version is build with GNOME.
188 %description -n gvim-gnome -l pl
189 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
193 %setup -q -b 1 -b 2 -b 3 -n %{name}%(echo %{version} | sed -e "s#\.##g")
206 --disable-perlinterp \
207 --disable-pythoninterp \
208 --disable-tclinterp \
209 --disable-rubyinterp \
212 --enable-max-features \
214 --with-tlib=ncurses \
218 mv -f vim vim.ncurses
220 %{?bcond_off_static:#}%{__make} distclean
221 %{?bcond_off_static:#}%configure \
224 --disable-perlinterp \
225 --disable-pythoninterp \
226 --disable-tclinterp \
229 --disable-multibyte \
230 --enable-min-features \
234 %{?bcond_off_static:#}%{__make} vim
236 %{?bcond_off_static:#}mv -f vim vim.static
237 mv -f xxd/xxd xxd.static
239 %{?bcond_off_athena:#}%{__make} distclean
240 %{?bcond_off_athena:#}%configure \
241 --enable-max-features \
242 --enable-gui=athena \
244 --disable-perlinterp \
245 --disable-pythoninterp \
246 --disable-tclinterp \
247 --disable-rubyinterp \
253 %{?bcond_off_athena:#}%{__make} vim
254 %{?bcond_off_athena:#}mv -f vim gvim.athena
256 %{?bcond_off_motif:#}%{__make} distclean
257 %{?bcond_off_motif:#}%configure \
258 --enable-max-features \
261 --disable-perlinterp \
262 --disable-pythoninterp \
263 --disable-tclinterp \
264 --disable-rubyinterp \
271 %{?bcond_off_motif:#}%{__make} vim
272 %{?bcond_off_motif:#}mv -f vim gvim.motif
274 %{?bcond_off_gtk:#}%{__make} distclean
275 %{?bcond_off_gtk:#}%configure \
276 --enable-max-features \
279 --disable-perlinterp \
280 --disable-pythoninterp \
281 --disable-tclinterp \
282 --disable-rubyinterp \
287 %{?bcond_off_gtk:#}%{__make} vim
288 %{?bcond_off_gtk:#}mv -f vim gvim.gtk
290 %{?bcond_off_gnome:#}%{__make} distclean
291 %{?bcond_off_gnome:#}%configure \
292 --enable-max-features \
295 --disable-perlinterp \
296 --disable-pythoninterp \
297 --disable-tclinterp \
298 --disable-rubyinterp \
303 %{?bcond_off_gnome:#}%{__make} vim
304 %{?bcond_off_gnome:#}mv -f vim gvim.gnome
307 rm -rf $RPM_BUILD_ROOT
308 install -d $RPM_BUILD_ROOT{%{_var}/lib/vim,%{_sysconfdir}/vim,%{_bindir}} \
309 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
310 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
312 %{__make} install DESTDIR=$RPM_BUILD_ROOT
313 rm $RPM_BUILD_ROOT%{_bindir}/*
315 %{!?bcond_off_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
316 %{?bcond_off_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
317 %{!?bcond_off_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
318 %{?bcond_off_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
319 install src/xxd.static $RPM_BUILD_ROOT/bin/xxd
320 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
322 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
324 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
325 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
327 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
329 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
330 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
331 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
332 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
333 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
335 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
336 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
338 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
339 ln -sf vi $RPM_BUILD_ROOT/bin/ex
340 ln -sf vi $RPM_BUILD_ROOT/bin/view
341 ln -sf vi $RPM_BUILD_ROOT/bin/rview
343 %{!?bcond_off_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
344 %{!?bcond_off_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
345 %{!?bcond_off_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
346 %{!?bcond_off_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
348 %{!?bcond_off_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
349 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
350 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
351 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
353 %{!?bcond_off_athena:install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
354 %{!?bcond_off_motif: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
355 %{!?bcond_off_gtk: install %{SOURCE6} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
356 %{!?bcond_off_gnome: install %{SOURCE7} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
359 rm -rf $RPM_BUILD_ROOT
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_bindir}/vim
364 %attr(755,root,root) %{_bindir}/rvim
367 %defattr(644,root,root,755)
368 %attr(755,root,root) /bin/*
370 %{_mandir}/man1/vi.1*
371 %{_mandir}/man1/ex.1*
372 %{_mandir}/man1/xxd.1*
373 %{_mandir}/man1/view.1*
374 %{_mandir}/man1/rview.1*
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_bindir}/vimtutor
379 %dir %{_sysconfdir}/vim
380 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
381 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
386 %dir %{_datadir}/vim/v*
387 %{_datadir}/vim/v*/doc
388 %{_datadir}/vim/v*/ftplugin
389 %{_datadir}/vim/v*/indent
390 %{_datadir}/vim/v*/keymap
391 %dir %{_datadir}/vim/v*/lang
392 %{_datadir}/vim/v*/lang/README*
393 %lang(af) %{_datadir}/vim/v*/lang/*af*
394 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
395 %lang(de) %{_datadir}/vim/v*/lang/*de*
396 %lang(es) %{_datadir}/vim/v*/lang/es
397 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
398 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
399 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
400 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
401 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
402 %lang(it) %{_datadir}/vim/v*/lang/*it*
403 %lang(ja) %{_datadir}/vim/v*/lang/*ja*
404 %lang(ko) %{_datadir}/vim/v*/lang/*ko*
405 #%lang(pl) %{_datadir}/vim/v*/lang/*pl*
406 %lang(zh_TW) %{_datadir}/vim/v*/lang/*zh*
407 %{_datadir}/vim/v*/macros
408 %{_datadir}/vim/v*/plugin
409 %{_datadir}/vim/v*/syntax
410 %{_datadir}/vim/v*/tutor
411 %{_datadir}/vim/v*/*.vim
413 %{_mandir}/man1/vim.*
414 %{_mandir}/man1/rvim.*
416 %{!?bcond_off_athena:%files -n gvim-athena}
417 %{!?bcond_off_athena:%defattr(644,root,root,755)}
418 %{!?bcond_off_athena:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena}
419 %{!?bcond_off_athena:%{_applnkdir}/Development/Editors/gvim-athena.desktop}
421 %{!?bcond_off_motif:%files -n gvim-motif}
422 %{!?bcond_off_motif:%defattr(644,root,root,755)}
423 %{!?bcond_off_motif:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif}
424 %{!?bcond_off_motif:%{_applnkdir}/Development/Editors/gvim-motif.desktop}
426 %{!?bcond_off_gtk:%files -n gvim-gtk}
427 %{!?bcond_off_gtk:%defattr(644,root,root,755)}
428 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk}
429 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgvim}
430 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgview}
431 %{!?bcond_off_gtk:%attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim}
432 %{!?bcond_off_gtk:%{_applnkdir}/Development/Editors/gvim-gtk.desktop}
434 %{!?bcond_off_gnome:%files -n gvim-gnome}
435 %{!?bcond_off_gnome:%defattr(644,root,root,755)}
436 %{!?bcond_off_gnome:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome}
437 %{!?bcond_off_gnome:%{_applnkdir}/Development/Editors/gvim-gnome.desktop}