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/unreleased/unix/%{name}-%{version}-src1.tar.gz
24 Source1: ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-src2.tar.gz
25 Source2: ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-rt1.tar.gz
26 Source3: ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-rt2.tar.gz
27 Source4: ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-extra.tar.gz
28 Source5: ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-lang.tar.gz
29 Source6: g%{name}-athena.desktop
30 Source7: g%{name}-motif.desktop
31 Source8: g%{name}-gtk.desktop
32 Source9: g%{name}-gnome.desktop
33 Patch0: %{name}-sysconfdir.patch
34 Patch1: %{name}-visual.patch
35 Patch2: %{name}-phphighlight.patch
36 Patch3: %{name}-paths.patch
37 Patch4: %{name}-ispell.patch
38 URL: http://www.vim.org/
39 BuildRequires: gpm-devel
40 BuildRequires: ncurses-devel
41 %{!?_without_athena:BuildRequires: Xaw3d-devel}
42 %{!?_without_gnome:BuildRequires: esound-devel}
43 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
44 %{!?_without_gtk:BuildRequires: gtk+-devel}
45 %{!?_without_motif:BuildRequires: motif-devel}
46 %{!?_without_static:BuildRequires: glibc-static}
47 %{!?_without_static:BuildRequires: ncurses-static}
48 Requires: %{name}-rt = %{version}
49 %{?_without_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: Utility to convert files to hexdump or do the reverse
82 Summary(pl): Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
83 Group: Applications/Editors/Vim
84 Group(de): Applikationen/Editors/Vim
85 Group(pl): Aplikacje/Edytory/Vim
88 xxd creates a hex dump of a given file or standard input. It can also
89 convert a hex dump back to its original binary form. Like uuencode and
90 uudecode it allows the transmission of binary data in a `mail-safe'
91 ASCII representation, but has the advantage of decoding to standard
92 output. Moreover, it can be used to perform binary file patching.
94 %description -n xxd -l pl
95 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
96 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
97 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
98 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
99 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
102 Summary: Staticly linked Vim
103 Summary(pl): Statycznie zlinkowany Vim
104 Group: Applications/Editors/Vim
105 Group(de): Applikationen/Editors/Vim
106 Group(pl): Aplikacje/Edytory/Vim
109 Obsoletes: vim-minimal
112 Text editor similar to Vi. This version is build with minimal feature
113 and is installed in /bin as a rescue tool. The installation of this
114 package is STRONGLY recommended.
116 %description static -l pl
117 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
118 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
119 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
120 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
123 Summary: Vim runtime files
124 Summary(pl): Pliki przydatne edytorowi Vim
125 Group: Applications/Editors/Vim
126 Group(de): Applikationen/Editors/Vim
127 Group(pl): Aplikacje/Edytory/Vim
130 Obsoletes: vim-common
133 This package contains macros, documentation, syntax configuration and
134 manual pages for vim. If you want to take advantage of vim more
135 powerful features, you should install this package.
137 %description rt -l pl
138 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
139 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
140 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
142 %package -n gvim-athena
143 Summary: Vim for X Window built with Athena
144 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
145 Group: Applications/Editors/Vim
146 Group(de): Applikationen/Editors/Vim
147 Group(pl): Aplikacje/Edytory/Vim
148 Requires: %{name}-rt = %{version}
152 %description -n gvim-athena
153 The classic Unix text editor now also under X Window System! This
154 version is build with Athena Widget Set.
156 %description -n gvim-athena -l pl
157 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
158 biblioteki Athena Widget Set.
160 %package -n gvim-motif
161 Summary: Vim for X Window built with Motif
162 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
163 Group: Applications/Editors/Vim
164 Group(de): Applikationen/Editors/Vim
165 Group(pl): Aplikacje/Edytory/Vim
166 Requires: %{name}-rt = %{version}
170 %description -n gvim-motif
171 The classic Unix text editor now also under X Window System! This
172 version is build with Motif.
174 %description -n gvim-motif -l pl
175 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
179 Summary: Vim for X Window built with gtk
180 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
181 Group: Applications/Editors/Vim
182 Group(de): Applikationen/Editors/Vim
183 Group(pl): Aplikacje/Edytory/Vim
184 Requires: %{name}-rt = %{version}
188 %description -n gvim-gtk
189 The classic Unix text editor now also under X Window System! This
190 version is build with GTK and GNOME.
192 %description -n gvim-gtk -l pl
193 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
194 biblioteki GTK oraz GNOME.
196 %package -n gvim-gnome
197 Summary: Vim for X Window built with gnome
198 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
199 Group: Applications/Editors/Vim
200 Group(de): Applikationen/Editors/Vim
201 Group(pl): Aplikacje/Edytory/Vim
202 Requires: %{name}-rt = %{version}
206 %description -n gvim-gnome
207 The classic Unix text editor now also under X Window System! This
208 version is build with GNOME.
210 %description -n gvim-gnome -l pl
211 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
215 %setup -q -b1 -b2 -b3 -b4 -b5 -n %{name}%(echo %{version} | sed -e "s#\.##g")
220 %{?_with_ispell:%patch4 -p1}
228 --disable-perlinterp \
229 --disable-pythoninterp \
230 --disable-tclinterp \
231 --disable-rubyinterp \
234 --with-features=huge \
236 --with-tlib=ncurses \
240 mv -f vim vim.ncurses
244 %if %{!?_without_static:1}%{?_without_static:0}
246 LDFLAGS="%{rpmldflags} -static"
250 --disable-perlinterp \
251 --disable-pythoninterp \
252 --disable-tclinterp \
255 --disable-multibyte \
256 --with-features=small \
264 %if %{!?_without_athena:1}%{?_without_athena:0}
266 LDFLAGS="%{rpmldflags}"
268 --with-features=huge \
269 --enable-gui=athena \
271 --disable-perlinterp \
272 --disable-pythoninterp \
273 --disable-tclinterp \
274 --disable-rubyinterp \
281 mv -f vim gvim.athena
284 %if %{!?_without_motif:1}%{?_without_motif:0}
287 --with-features=huge \
290 --disable-perlinterp \
291 --disable-pythoninterp \
292 --disable-tclinterp \
293 --disable-rubyinterp \
304 %if %{!?_without_gtk:1}%{?_without_gtk:0}
307 --with-features=huge \
310 --disable-perlinterp \
311 --disable-pythoninterp \
312 --disable-tclinterp \
313 --disable-rubyinterp \
322 %if %{!?_without_gnome:1}%{?_without_gnome:0}
325 --with-features=huge \
328 --disable-perlinterp \
329 --disable-pythoninterp \
330 --disable-tclinterp \
331 --disable-rubyinterp \
341 rm -rf $RPM_BUILD_ROOT
342 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
343 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
344 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
346 %{__make} install DESTDIR=$RPM_BUILD_ROOT
347 rm $RPM_BUILD_ROOT%{_bindir}/*
349 %{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
350 %{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
351 %{!?_without_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
352 %{?_without_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
353 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
354 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
356 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
358 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
359 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
361 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
363 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
364 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
365 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
367 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
369 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
370 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
372 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
373 ln -sf vi $RPM_BUILD_ROOT/bin/ex
374 ln -sf vi $RPM_BUILD_ROOT/bin/view
375 ln -sf vi $RPM_BUILD_ROOT/bin/rview
377 %{!?_without_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
378 %{!?_without_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
379 %{!?_without_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
380 %{!?_without_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
382 %{!?_without_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
383 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
384 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
385 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
387 %{!?_without_athena:install %{SOURCE6} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
388 %{!?_without_motif: install %{SOURCE7} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
389 %{!?_without_gtk: install %{SOURCE8} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
390 %{!?_without_gnome: install %{SOURCE9} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
393 rm -rf $RPM_BUILD_ROOT
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_bindir}/vim
398 %attr(755,root,root) %{_bindir}/rvim
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/xxd
403 %{_mandir}/man1/xxd.1*
406 %defattr(644,root,root,755)
407 %attr(755,root,root) /bin/*
409 %{_mandir}/man1/vi.1*
410 %{_mandir}/man1/ex.1*
411 %{_mandir}/man1/view.1*
412 %{_mandir}/man1/rview.1*
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_bindir}/vimtutor
417 %dir %{_sysconfdir}/vim
418 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
419 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
422 %dir %{_datadir}/vim/v*
423 %{_datadir}/vim/v*/doc
424 %{_datadir}/vim/v*/ftplugin
425 %{_datadir}/vim/v*/indent
426 %{_datadir}/vim/v*/keymap
427 %dir %{_datadir}/vim/v*/lang
428 %{_datadir}/vim/v*/lang/README*
429 %lang(af) %{_datadir}/vim/v*/lang/*af*
430 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
431 %lang(de) %{_datadir}/vim/v*/lang/*de*
432 %lang(es) %{_datadir}/vim/v*/lang/es
433 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
434 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
435 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
436 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
437 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
438 %lang(it) %{_datadir}/vim/v*/lang/*it*
439 %lang(ja) %{_datadir}/vim/v*/lang/*ja*
440 %lang(ko) %{_datadir}/vim/v*/lang/*ko*
441 %lang(pl) %{_datadir}/vim/v*/lang/*pl*
442 %lang(zh_TW) %{_datadir}/vim/v*/lang/*zh*
443 %{_datadir}/vim/v*/macros
444 %{_datadir}/vim/v*/plugin
445 %{_datadir}/vim/v*/syntax
446 %{_datadir}/vim/v*/tutor
447 %{_datadir}/vim/v*/colors
448 %{_datadir}/vim/v*/*.vim
450 %{_mandir}/man1/vim.*
451 %{_mandir}/man1/rvim.*
453 %if %{!?_without_athena:1}%{?_without_athena:0}
454 %files -n gvim-athena
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
457 %{_applnkdir}/Development/Editors/gvim-athena.desktop
460 %if %{!?_without_motif:1}%{?_without_motif:0}
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
464 %{_applnkdir}/Development/Editors/gvim-motif.desktop
467 %if %{!?_without_gtk:1}%{?_without_gtk:0}
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
471 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
472 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
473 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
474 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
477 %if %{!?_without_gnome:1}%{?_without_gnome:0}
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
481 %{_applnkdir}/Development/Editors/gvim-gnome.desktop