3 # _without_static - without static version
4 # _without_athena - without Athena Widgets-based gvim. DOESN'T WORK.
5 # _without_motif - without Motif-based gvim
6 # _without_gtk - without gtk+-based gvim support
7 # _without_gnome - without gnome-based gvim support
8 # _with_ispell - with spell checking (non-standard feature; disables RIGHTLEFT and FKMAP)
9 # _with_perl - with perl interp
10 # _with_python - with python interp
11 # _with_ruby - with ruby interp
12 # _with_tcl - with tcl interp
15 %define _patchlevel 208
16 Summary: Vi IMproved - a Vi clone
17 Summary(de): VIsual editor iMproved
18 Summary(es): Editor visual incrementado
19 Summary(fr): editeur VIM : VIsual editor iMproved
20 Summary(pl): Vi IMproved - klon edytora Vi
21 Summary(pt_BR): Editor visual incrementado
22 Summary(tr): Geliþmiþ bir vi sürümü
24 Version: 6.0.%{_patchlevel}
28 Group: Applications/Editors/Vim
29 Group(de): Applikationen/Editors/Vim
30 Group(pl): Aplikacje/Edytory/Vim
31 Source0: ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{_ver}.tar.bz2
32 Source1: ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
33 Source2: g%{name}-athena.desktop
34 Source3: g%{name}-motif.desktop
35 Source4: g%{name}-gtk.desktop
36 Source5: g%{name}-gnome.desktop
37 #packed from ftp://ftp.vim.org/pub/editors/vim/patches/6.0.*
38 Source6: %{name}-patches-%{_ver}.%{_patchlevel}.tar.bz2
39 Patch0: %{name}-sysconfdir.patch
40 Patch1: %{name}-visual.patch
41 Patch2: %{name}-phphighlight.patch
42 Patch3: %{name}-paths.patch
43 Patch4: %{name}-ispell.patch
44 URL: http://www.vim.org/
45 BuildRequires: autoconf
46 BuildRequires: gettext-devel
47 BuildRequires: gpm-devel
48 BuildRequires: ncurses-devel
49 %{!?_without_athena:BuildRequires: Xaw3d-devel}
50 %{!?_without_gnome:BuildRequires: esound-devel}
51 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
52 %{!?_without_gtk:BuildRequires: gtk+-devel}
53 %{!?_without_motif:BuildRequires: motif-devel}
54 %{!?_without_static:BuildRequires: glibc-static}
55 %{!?_without_static:BuildRequires: ncurses-static}
56 %{?_with_perl:BuildRequires: perl-devel}
57 %{?_with_python:BuildRequires: python-devel}
58 %{?_with_ruby:BuildRequires: ruby}
59 %{?_with_tcl:BuildRequires: tcl-devel}
60 Requires: %{name}-rt = %{version}
61 %{?_without_static:Requires: %{name}-static = %{version}}
62 Obsoletes: vim-enhanced
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 Text editor similar to Vi. Important improvements: multiple windows,
67 multi-level undo, block highliting, folding, and many other.
70 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
71 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
72 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
73 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
77 El editor Visual Mejorado es una versión actualizada y con nuevas
78 características adicionales del mundialmente famoso 'vi' que acompaña
79 prácticamente todos los sistemas UN*X. Posibilita trabajar con
80 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
81 otras muchas características del 'vi'.
84 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
85 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
86 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
87 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
88 blocs et autres caractéristiques au vi de base.
91 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
92 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
93 folding i wiele innych.
96 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
97 características do mundialmente famoso 'vi' que acompanha praticamente
98 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
99 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
100 outras características do 'vi'.
103 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
104 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
107 Summary: Utility to convert files to hexdump or do the reverse
108 Summary(pl): Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
109 Group: Applications/Editors/Vim
110 Group(de): Applikationen/Editors/Vim
111 Group(pl): Aplikacje/Edytory/Vim
114 xxd creates a hex dump of a given file or standard input. It can also
115 convert a hex dump back to its original binary form. Like uuencode and
116 uudecode it allows the transmission of binary data in a `mail-safe'
117 ASCII representation, but has the advantage of decoding to standard
118 output. Moreover, it can be used to perform binary file patching.
120 %description -n xxd -l pl
121 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
122 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
123 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
124 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
125 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
128 Summary: Statically linked Vim
129 Summary(pl): Statycznie zlinkowany Vim
130 Group: Applications/Editors/Vim
131 Group(de): Applikationen/Editors/Vim
132 Group(pl): Aplikacje/Edytory/Vim
135 Obsoletes: vim-minimal
138 Text editor similar to Vi. This version is built with minimal feature
139 and is installed in /bin as a rescue tool. The installation of this
140 package is STRONGLY recommended.
142 %description static -l pl
143 Edytor tekstu podobny do Vi. Ta wersja zosta³a zlinkowana statycznie i
144 posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
145 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
146 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
149 Summary: Vim runtime files
150 Summary(pl): Pliki przydatne edytorowi Vim
151 Group: Applications/Editors/Vim
152 Group(de): Applikationen/Editors/Vim
153 Group(pl): Aplikacje/Edytory/Vim
156 Obsoletes: vim-common
159 This package contains macros, documentation, syntax configuration and
160 manual pages for Vim. If you want to take advantage of Vim more
161 powerful features, you should install this package.
163 %description rt -l pl
164 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
165 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
166 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
168 %package -n gvim-athena
169 Summary: Vim for X Window built with Athena
170 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
171 Group: Applications/Editors/Vim
172 Group(de): Applikationen/Editors/Vim
173 Group(pl): Aplikacje/Edytory/Vim
174 Requires: %{name}-rt = %{version}
178 %description -n gvim-athena
179 The classic Unix text editor now also under X Window System! This
180 version is built with Athena Widget Set.
182 %description -n gvim-athena -l pl
183 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
184 biblioteki Athena Widget Set.
186 %package -n gvim-motif
187 Summary: Vim for X Window built with Motif
188 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
189 Group: Applications/Editors/Vim
190 Group(de): Applikationen/Editors/Vim
191 Group(pl): Aplikacje/Edytory/Vim
192 Requires: %{name}-rt = %{version}
196 %description -n gvim-motif
197 The classic Unix text editor now also under X Window System! This
198 version is built with Motif.
200 %description -n gvim-motif -l pl
201 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
205 Summary: Vim for X Window built with gtk
206 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
207 Group: Applications/Editors/Vim
208 Group(de): Applikationen/Editors/Vim
209 Group(pl): Aplikacje/Edytory/Vim
210 Requires: %{name}-rt = %{version}
214 %description -n gvim-gtk
215 The classic Unix text editor now also under X Window System! This
216 version is built with GTK.
218 %description -n gvim-gtk -l pl
219 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
222 %package -n gvim-gnome
223 Summary: Vim for X Window built with gnome
224 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
225 Group: Applications/Editors/Vim
226 Group(de): Applikationen/Editors/Vim
227 Group(pl): Aplikacje/Edytory/Vim
228 Requires: %{name}-rt = %{version}
232 %description -n gvim-gnome
233 The classic Unix text editor now also under X Window System! This
234 version is build with GNOME.
236 %description -n gvim-gnome -l pl
237 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
241 %setup -q -b1 -a6 -n %{name}%(echo %{_ver} | sed -e "s#\.##g")
246 %{?_with_ispell:%patch4 -p1}
248 # these patches are to "extra" package which we don't need (nor use)
249 rm -f patches/6.0.{027,048,053,064,070,073,093,106,107,115,116,117,119,123,121,122,125,135,161,162,164,165,179,186,188,205,207}
250 # apply the rest of official patches
251 for f in patches/6.0.* ; do
252 echo "Applying official patch `basename $f` ..."
262 %{!?_with_perl:--disable-perlinterp} \
263 %{?_with_perl:--enable-perlinterp} \
264 %{!?_with_python:--disable-pythoninterp} \
265 %{?_with_python:--enable-pythoninterp} \
266 %{!?_with_ruby:--disable-rubyinterp} \
267 %{?_with_ruby:--enable-rubyinterp} \
268 %{!?_with_tcl:--disable-tclinterp} \
269 %{?_with_tcl:--enable-tclinterp} \
272 --with-features=huge \
274 --with-tlib=ncurses \
278 mv -f vim vim.ncurses
282 %if %{!?_without_static:1}%{?_without_static:0}
284 LDFLAGS="%{rpmldflags} -static"
288 --disable-perlinterp \
289 --disable-pythoninterp \
290 --disable-rubyinterp \
291 --disable-tclinterp \
294 --disable-multibyte \
295 --with-features=small \
303 %if %{!?_without_athena:1}%{?_without_athena:0}
305 LDFLAGS="%{rpmldflags}"
307 --with-features=huge \
308 --enable-gui=athena \
310 %{!?_with_perl:--disable-perlinterp} \
311 %{?_with_perl:--enable-perlinterp} \
312 %{!?_with_python:--disable-pythoninterp} \
313 %{?_with_python:--enable-pythoninterp} \
314 %{!?_with_ruby:--disable-rubyinterp} \
315 %{?_with_ruby:--enable-rubyinterp} \
316 %{!?_with_tcl:--disable-tclinterp} \
317 %{?_with_tcl:--enable-tclinterp} \
324 mv -f vim gvim.athena
327 %if %{!?_without_motif:1}%{?_without_motif:0}
330 --with-features=huge \
333 %{!?_with_perl:--disable-perlinterp} \
334 %{?_with_perl:--enable-perlinterp} \
335 %{!?_with_python:--disable-pythoninterp} \
336 %{?_with_python:--enable-pythoninterp} \
337 %{!?_with_ruby:--disable-rubyinterp} \
338 %{?_with_ruby:--enable-rubyinterp} \
339 %{!?_with_tcl:--disable-tclinterp} \
340 %{?_with_tcl:--enable-tclinterp} \
351 %if %{!?_without_gtk:1}%{?_without_gtk:0}
354 --with-features=huge \
357 %{!?_with_perl:--disable-perlinterp} \
358 %{?_with_perl:--enable-perlinterp} \
359 %{!?_with_python:--disable-pythoninterp} \
360 %{?_with_python:--enable-pythoninterp} \
361 %{!?_with_ruby:--disable-rubyinterp} \
362 %{?_with_ruby:--enable-rubyinterp} \
363 %{!?_with_tcl:--disable-tclinterp} \
364 %{?_with_tcl:--enable-tclinterp} \
373 %if %{!?_without_gnome:1}%{?_without_gnome:0}
376 --with-features=huge \
379 %{!?_with_perl:--disable-perlinterp} \
380 %{?_with_perl:--enable-perlinterp} \
381 %{!?_with_python:--disable-pythoninterp} \
382 %{?_with_python:--enable-pythoninterp} \
383 %{!?_with_ruby:--disable-rubyinterp} \
384 %{?_with_ruby:--enable-rubyinterp} \
385 %{!?_with_tcl:--disable-tclinterp} \
386 %{?_with_tcl:--enable-tclinterp} \
396 rm -rf $RPM_BUILD_ROOT
397 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
398 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
399 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
401 %{__make} install DESTDIR=$RPM_BUILD_ROOT
402 rm -f $RPM_BUILD_ROOT%{_bindir}/*
404 %{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
405 %{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
406 %{!?_without_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
407 %{?_without_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
408 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
409 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
411 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
413 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
414 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
416 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
418 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
419 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
420 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
421 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
422 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
424 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
425 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
427 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
428 ln -sf vi $RPM_BUILD_ROOT/bin/ex
429 ln -sf vi $RPM_BUILD_ROOT/bin/view
430 ln -sf vi $RPM_BUILD_ROOT/bin/rview
432 %{!?_without_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
433 %{!?_without_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
434 %{!?_without_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
435 %{!?_without_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
437 %{!?_without_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
438 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
439 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
440 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
442 %{!?_without_athena:install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
443 %{!?_without_motif: install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
444 %{!?_without_gtk: install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
445 %{!?_without_gnome: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
448 rm -rf $RPM_BUILD_ROOT
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_bindir}/vim
453 %attr(755,root,root) %{_bindir}/rvim
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_bindir}/xxd
458 %{_mandir}/man1/xxd.1*
461 %defattr(644,root,root,755)
462 %attr(755,root,root) /bin/*
464 %{_mandir}/man1/vi.1*
465 %{_mandir}/man1/ex.1*
466 %{_mandir}/man1/view.1*
467 %{_mandir}/man1/rview.1*
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_bindir}/vimtutor
472 %dir %{_sysconfdir}/vim
473 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
474 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
477 %dir %{_datadir}/vim/v*
478 %{_datadir}/vim/v*/doc
479 %{_datadir}/vim/v*/ftplugin
480 %{_datadir}/vim/v*/indent
481 %{_datadir}/vim/v*/keymap
482 %dir %{_datadir}/vim/v*/lang
483 %{_datadir}/vim/v*/lang/README*
485 %lang(af) %{_datadir}/vim/v*/lang/af
486 %lang(de) %{_datadir}/vim/v*/lang/de
487 %lang(es) %{_datadir}/vim/v*/lang/es
488 %lang(fr) %{_datadir}/vim/v*/lang/fr
489 %lang(it) %{_datadir}/vim/v*/lang/it
490 %lang(ja) %{_datadir}/vim/v*/lang/ja*
491 %lang(ko) %{_datadir}/vim/v*/lang/ko
492 %lang(pl) %{_datadir}/vim/v*/lang/pl
493 %lang(sk) %{_datadir}/vim/v*/lang/sk
494 #%lang(tr) %{_datadir}/vim/v*/lang/tr
495 %lang(uk) %{_datadir}/vim/v*/lang/uk
496 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
497 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW
499 %lang(af) %{_datadir}/vim/v*/lang/menu_af_af*
500 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs_cz*
501 %lang(de) %{_datadir}/vim/v*/lang/menu_de_de*
502 %lang(es) %{_datadir}/vim/v*/lang/menu_es_es*
503 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr_fr*
504 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu_hu*
505 %lang(it) %{_datadir}/vim/v*/lang/menu_it_it*
506 %lang(jp) %{_datadir}/vim/v*/lang/menu_ja_jp*
507 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko_kr*
508 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl_nl*
509 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl_pl*
510 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk_sk*
511 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
512 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
514 %{_datadir}/vim/v*/macros
515 %{_datadir}/vim/v*/plugin
516 %{_datadir}/vim/v*/syntax
517 %{_datadir}/vim/v*/tutor
518 %{_datadir}/vim/v*/colors
519 %{_datadir}/vim/v*/compiler
520 %{_datadir}/vim/v*/*.vim
521 %{_datadir}/vim/v*/*.ps
524 %{_mandir}/man1/rvim.*
526 %if %{!?_without_athena:1}%{?_without_athena:0}
527 %files -n gvim-athena
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
530 %{_applnkdir}/Development/Editors/gvim-athena.desktop
533 %if %{!?_without_motif:1}%{?_without_motif:0}
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
537 %{_applnkdir}/Development/Editors/gvim-motif.desktop
540 %if %{!?_without_gtk:1}%{?_without_gtk:0}
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
544 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
545 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
546 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
547 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
550 %if %{!?_without_gnome:1}%{?_without_gnome:0}
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
554 %{_applnkdir}/Development/Editors/gvim-gnome.desktop