3 # _without_static - without static version
4 # _without_athena - without Athena Widgets-based gvim
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)
10 Summary: Vi IMproved - a Vi clone
11 Summary(de): VIsual editor iMproved
12 Summary(fr): editeur VIM : VIsual editor iMproved
13 Summary(pl): Vi IMproved - klon edytora Vi
14 Summary(tr): Geliþmiþ bir vi sürümü
20 Group: Applications/Editors/Vim
21 Group(de): Applikationen/Editors/Vim
22 Group(pl): Aplikacje/Edytory/Vim
23 Source0: ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}.tar.bz2
24 Source1: ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-lang.tar.gz
25 #Source2: ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-extra.tar.gz
26 Source3: g%{name}-athena.desktop
27 Source4: g%{name}-motif.desktop
28 Source5: g%{name}-gtk.desktop
29 Source6: g%{name}-gnome.desktop
30 Patch0: %{name}-sysconfdir.patch
31 Patch1: %{name}-visual.patch
32 Patch2: %{name}-phphighlight.patch
33 Patch3: %{name}-paths.patch
34 Patch4: %{name}-ispell.patch
35 Patch5: %{name}-pl.patch
36 Patch6: %{name}-shsyntax.patch
37 URL: http://www.vim.org/
38 BuildRequires: autoconf
39 BuildRequires: gettext-devel
40 BuildRequires: gpm-devel
41 BuildRequires: ncurses-devel
42 %{!?_without_athena:BuildRequires: Xaw3d-devel}
43 %{!?_without_gnome:BuildRequires: esound-devel}
44 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
45 %{!?_without_gtk:BuildRequires: gtk+-devel}
46 %{!?_without_motif:BuildRequires: motif-devel}
47 %{!?_without_static:BuildRequires: glibc-static}
48 %{!?_without_static:BuildRequires: ncurses-static}
49 Requires: %{name}-rt = %{version}
50 %{?_without_static:Requires: %{name}-static = %{version}}
51 Obsoletes: vim-enhanced
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Text editor similar to Vi. Important improvements: multiple windows,
56 multi-level undo, block highliting, and many other.
59 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
60 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
61 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
62 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
66 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
67 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
68 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
69 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
70 blocs et autres caractéristiques au vi de base.
73 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
74 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
78 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
79 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
82 Summary: Utility to convert files to hexdump or do the reverse
83 Summary(pl): Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
84 Group: Applications/Editors/Vim
85 Group(de): Applikationen/Editors/Vim
86 Group(pl): Aplikacje/Edytory/Vim
89 xxd creates a hex dump of a given file or standard input. It can also
90 convert a hex dump back to its original binary form. Like uuencode and
91 uudecode it allows the transmission of binary data in a `mail-safe'
92 ASCII representation, but has the advantage of decoding to standard
93 output. Moreover, it can be used to perform binary file patching.
95 %description -n xxd -l pl
96 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
97 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
98 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
99 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
100 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
103 Summary: Staticly linked Vim
104 Summary(pl): Statycznie zlinkowany Vim
105 Group: Applications/Editors/Vim
106 Group(de): Applikationen/Editors/Vim
107 Group(pl): Aplikacje/Edytory/Vim
110 Obsoletes: vim-minimal
113 Text editor similar to Vi. This version is build with minimal feature
114 and is installed in /bin as a rescue tool. The installation of this
115 package is STRONGLY recommended.
117 %description static -l pl
118 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
119 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
120 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
121 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
124 Summary: Vim runtime files
125 Summary(pl): Pliki przydatne edytorowi Vim
126 Group: Applications/Editors/Vim
127 Group(de): Applikationen/Editors/Vim
128 Group(pl): Aplikacje/Edytory/Vim
131 Obsoletes: vim-common
134 This package contains macros, documentation, syntax configuration and
135 manual pages for vim. If you want to take advantage of vim more
136 powerful features, you should install this package.
138 %description rt -l pl
139 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
140 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
141 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
143 %package -n gvim-athena
144 Summary: Vim for X Window built with Athena
145 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
146 Group: Applications/Editors/Vim
147 Group(de): Applikationen/Editors/Vim
148 Group(pl): Aplikacje/Edytory/Vim
149 Requires: %{name}-rt = %{version}
153 %description -n gvim-athena
154 The classic Unix text editor now also under X Window System! This
155 version is build with Athena Widget Set.
157 %description -n gvim-athena -l pl
158 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
159 biblioteki Athena Widget Set.
161 %package -n gvim-motif
162 Summary: Vim for X Window built with Motif
163 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
164 Group: Applications/Editors/Vim
165 Group(de): Applikationen/Editors/Vim
166 Group(pl): Aplikacje/Edytory/Vim
167 Requires: %{name}-rt = %{version}
171 %description -n gvim-motif
172 The classic Unix text editor now also under X Window System! This
173 version is build with Motif.
175 %description -n gvim-motif -l pl
176 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
180 Summary: Vim for X Window built with gtk
181 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
182 Group: Applications/Editors/Vim
183 Group(de): Applikationen/Editors/Vim
184 Group(pl): Aplikacje/Edytory/Vim
185 Requires: %{name}-rt = %{version}
189 %description -n gvim-gtk
190 The classic Unix text editor now also under X Window System! This
191 version is build with GTK.
193 %description -n gvim-gtk -l pl
194 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
197 %package -n gvim-gnome
198 Summary: Vim for X Window built with gnome
199 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
200 Group: Applications/Editors/Vim
201 Group(de): Applikationen/Editors/Vim
202 Group(pl): Aplikacje/Edytory/Vim
203 Requires: %{name}-rt = %{version}
207 %description -n gvim-gnome
208 The classic Unix text editor now also under X Window System! This
209 version is build with GNOME.
211 %description -n gvim-gnome -l pl
212 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
216 %setup -q -b1 -n %{name}%(echo %{version} | sed -e "s#\.##g")
221 %{?_with_ispell:%patch4 -p1}
231 --disable-perlinterp \
232 --disable-pythoninterp \
233 --disable-tclinterp \
234 --disable-rubyinterp \
237 --with-features=huge \
239 --with-tlib=ncurses \
243 mv -f vim vim.ncurses
247 %if %{!?_without_static:1}%{?_without_static:0}
249 LDFLAGS="%{rpmldflags} -static"
253 --disable-perlinterp \
254 --disable-pythoninterp \
255 --disable-tclinterp \
258 --disable-multibyte \
259 --with-features=small \
267 %if %{!?_without_athena:1}%{?_without_athena:0}
269 LDFLAGS="%{rpmldflags}"
271 --with-features=huge \
272 --enable-gui=athena \
274 --disable-perlinterp \
275 --disable-pythoninterp \
276 --disable-tclinterp \
277 --disable-rubyinterp \
284 mv -f vim gvim.athena
287 %if %{!?_without_motif:1}%{?_without_motif:0}
290 --with-features=huge \
293 --disable-perlinterp \
294 --disable-pythoninterp \
295 --disable-tclinterp \
296 --disable-rubyinterp \
307 %if %{!?_without_gtk:1}%{?_without_gtk:0}
310 --with-features=huge \
313 --disable-perlinterp \
314 --disable-pythoninterp \
315 --disable-tclinterp \
316 --disable-rubyinterp \
325 %if %{!?_without_gnome:1}%{?_without_gnome:0}
328 --with-features=huge \
331 --disable-perlinterp \
332 --disable-pythoninterp \
333 --disable-tclinterp \
334 --disable-rubyinterp \
344 rm -rf $RPM_BUILD_ROOT
345 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
346 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
347 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
349 %{__make} install DESTDIR=$RPM_BUILD_ROOT
350 rm $RPM_BUILD_ROOT%{_bindir}/*
352 %{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
353 %{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
354 %{!?_without_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
355 %{?_without_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
356 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
357 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
359 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
361 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
362 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
364 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
367 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
368 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
369 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
370 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
372 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
373 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
375 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
376 ln -sf vi $RPM_BUILD_ROOT/bin/ex
377 ln -sf vi $RPM_BUILD_ROOT/bin/view
378 ln -sf vi $RPM_BUILD_ROOT/bin/rview
380 %{!?_without_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
381 %{!?_without_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
382 %{!?_without_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
383 %{!?_without_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
385 %{!?_without_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
386 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
387 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
388 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
390 %{!?_without_athena:install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
391 %{!?_without_motif: install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
392 %{!?_without_gtk: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
393 %{!?_without_gnome: install %{SOURCE6} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
396 rm -rf $RPM_BUILD_ROOT
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_bindir}/vim
401 %attr(755,root,root) %{_bindir}/rvim
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_bindir}/xxd
406 %{_mandir}/man1/xxd.1*
409 %defattr(644,root,root,755)
410 %attr(755,root,root) /bin/*
412 %{_mandir}/man1/vi.1*
413 %{_mandir}/man1/ex.1*
414 %{_mandir}/man1/view.1*
415 %{_mandir}/man1/rview.1*
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_bindir}/vimtutor
420 %dir %{_sysconfdir}/vim
421 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
422 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
425 %dir %{_datadir}/vim/v*
426 %{_datadir}/vim/v*/doc
427 %{_datadir}/vim/v*/ftplugin
428 %{_datadir}/vim/v*/indent
429 %{_datadir}/vim/v*/keymap
430 %dir %{_datadir}/vim/v*/lang
431 %{_datadir}/vim/v*/lang/README*
433 %lang(af) %{_datadir}/vim/v*/lang/af
434 %lang(de) %{_datadir}/vim/v*/lang/de
435 %lang(es) %{_datadir}/vim/v*/lang/es
436 %lang(fr) %{_datadir}/vim/v*/lang/fr
437 %lang(it) %{_datadir}/vim/v*/lang/it
438 %lang(ja) %{_datadir}/vim/v*/lang/ja*
439 %lang(ko) %{_datadir}/vim/v*/lang/ko
440 %lang(pl) %{_datadir}/vim/v*/lang/pl
441 %lang(sk) %{_datadir}/vim/v*/lang/sk
442 %lang(tr) %{_datadir}/vim/v*/lang/tr
443 %lang(uk) %{_datadir}/vim/v*/lang/uk
444 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
445 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW
447 %lang(af) %{_datadir}/vim/v*/lang/menu_af_af*
448 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs_cz*
449 %lang(de) %{_datadir}/vim/v*/lang/menu_de_de*
450 %lang(es) %{_datadir}/vim/v*/lang/menu_es_es*
451 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr_fr*
452 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu_hu*
453 %lang(it) %{_datadir}/vim/v*/lang/menu_it_it*
454 %lang(jp) %{_datadir}/vim/v*/lang/menu_ja_jp*
455 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko_kr*
456 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl_nl*
457 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl_pl*
458 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk_sk*
459 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
460 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
462 %{_datadir}/vim/v*/macros
463 %{_datadir}/vim/v*/plugin
464 %{_datadir}/vim/v*/syntax
465 %{_datadir}/vim/v*/tutor
466 %{_datadir}/vim/v*/colors
467 %{_datadir}/vim/v*/compiler
468 %{_datadir}/vim/v*/*.vim
469 %{_datadir}/vim/v*/*.ps
472 %{_mandir}/man1/rvim.*
474 %if %{!?_without_athena:1}%{?_without_athena:0}
475 %files -n gvim-athena
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
478 %{_applnkdir}/Development/Editors/gvim-athena.desktop
481 %if %{!?_without_motif:1}%{?_without_motif:0}
483 %defattr(644,root,root,755)
484 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
485 %{_applnkdir}/Development/Editors/gvim-motif.desktop
488 %if %{!?_without_gtk:1}%{?_without_gtk:0}
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
492 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
493 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
494 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
495 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
498 %if %{!?_without_gnome:1}%{?_without_gnome:0}
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
502 %{_applnkdir}/Development/Editors/gvim-gnome.desktop