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}.tar.bz2
24 Source1: ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-lang.tar.gz
25 #Source2: ftp://ftp.vim.org/pub/editors/vim/unreleased/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 URL: http://www.vim.org/
37 BuildRequires: gpm-devel
38 BuildRequires: ncurses-devel
39 %{!?_without_athena:BuildRequires: Xaw3d-devel}
40 %{!?_without_gnome:BuildRequires: esound-devel}
41 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
42 %{!?_without_gtk:BuildRequires: gtk+-devel}
43 %{!?_without_motif:BuildRequires: motif-devel}
44 %{!?_without_static:BuildRequires: glibc-static}
45 %{!?_without_static:BuildRequires: ncurses-static}
46 Requires: %{name}-rt = %{version}
47 %{?_without_static:Requires: %{name}-static = %{version}}
48 Obsoletes: vim-enhanced
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Text editor similar to Vi. Important improvements: multiple windows,
53 multi-level undo, block highliting, and many other.
56 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
57 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
58 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
59 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
63 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
64 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
65 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
66 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
67 blocs et autres caractéristiques au vi de base.
70 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
71 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
75 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
76 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
79 Summary: Utility to convert files to hexdump or do the reverse
80 Summary(pl): Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
81 Group: Applications/Editors/Vim
82 Group(de): Applikationen/Editors/Vim
83 Group(pl): Aplikacje/Edytory/Vim
86 xxd creates a hex dump of a given file or standard input. It can also
87 convert a hex dump back to its original binary form. Like uuencode and
88 uudecode it allows the transmission of binary data in a `mail-safe'
89 ASCII representation, but has the advantage of decoding to standard
90 output. Moreover, it can be used to perform binary file patching.
92 %description -n xxd -l pl
93 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
94 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
95 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
96 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
97 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
100 Summary: Staticly linked Vim
101 Summary(pl): Statycznie zlinkowany Vim
102 Group: Applications/Editors/Vim
103 Group(de): Applikationen/Editors/Vim
104 Group(pl): Aplikacje/Edytory/Vim
107 Obsoletes: vim-minimal
110 Text editor similar to Vi. This version is build with minimal feature
111 and is installed in /bin as a rescue tool. The installation of this
112 package is STRONGLY recommended.
114 %description static -l pl
115 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
116 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
117 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
118 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
121 Summary: Vim runtime files
122 Summary(pl): Pliki przydatne edytorowi Vim
123 Group: Applications/Editors/Vim
124 Group(de): Applikationen/Editors/Vim
125 Group(pl): Aplikacje/Edytory/Vim
128 Obsoletes: vim-common
131 This package contains macros, documentation, syntax configuration and
132 manual pages for vim. If you want to take advantage of vim more
133 powerful features, you should install this package.
135 %description rt -l pl
136 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
137 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
138 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
140 %package -n gvim-athena
141 Summary: Vim for X Window built with Athena
142 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
143 Group: Applications/Editors/Vim
144 Group(de): Applikationen/Editors/Vim
145 Group(pl): Aplikacje/Edytory/Vim
146 Requires: %{name}-rt = %{version}
150 %description -n gvim-athena
151 The classic Unix text editor now also under X Window System! This
152 version is build with Athena Widget Set.
154 %description -n gvim-athena -l pl
155 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
156 biblioteki Athena Widget Set.
158 %package -n gvim-motif
159 Summary: Vim for X Window built with Motif
160 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
161 Group: Applications/Editors/Vim
162 Group(de): Applikationen/Editors/Vim
163 Group(pl): Aplikacje/Edytory/Vim
164 Requires: %{name}-rt = %{version}
168 %description -n gvim-motif
169 The classic Unix text editor now also under X Window System! This
170 version is build with Motif.
172 %description -n gvim-motif -l pl
173 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
177 Summary: Vim for X Window built with gtk
178 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
179 Group: Applications/Editors/Vim
180 Group(de): Applikationen/Editors/Vim
181 Group(pl): Aplikacje/Edytory/Vim
182 Requires: %{name}-rt = %{version}
186 %description -n gvim-gtk
187 The classic Unix text editor now also under X Window System! This
188 version is build with GTK.
190 %description -n gvim-gtk -l pl
191 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
194 %package -n gvim-gnome
195 Summary: Vim for X Window built with gnome
196 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
197 Group: Applications/Editors/Vim
198 Group(de): Applikationen/Editors/Vim
199 Group(pl): Aplikacje/Edytory/Vim
200 Requires: %{name}-rt = %{version}
204 %description -n gvim-gnome
205 The classic Unix text editor now also under X Window System! This
206 version is build with GNOME.
208 %description -n gvim-gnome -l pl
209 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
213 %setup -q -b1 -n %{name}%(echo %{version} | sed -e "s#\.##g")
218 %{?_with_ispell:%patch4 -p1}
227 --disable-perlinterp \
228 --disable-pythoninterp \
229 --disable-tclinterp \
230 --disable-rubyinterp \
233 --with-features=huge \
235 --with-tlib=ncurses \
239 mv -f vim vim.ncurses
243 %if %{!?_without_static:1}%{?_without_static:0}
245 LDFLAGS="%{rpmldflags} -static"
249 --disable-perlinterp \
250 --disable-pythoninterp \
251 --disable-tclinterp \
254 --disable-multibyte \
255 --with-features=small \
263 %if %{!?_without_athena:1}%{?_without_athena:0}
265 LDFLAGS="%{rpmldflags}"
267 --with-features=huge \
268 --enable-gui=athena \
270 --disable-perlinterp \
271 --disable-pythoninterp \
272 --disable-tclinterp \
273 --disable-rubyinterp \
280 mv -f vim gvim.athena
283 %if %{!?_without_motif:1}%{?_without_motif:0}
286 --with-features=huge \
289 --disable-perlinterp \
290 --disable-pythoninterp \
291 --disable-tclinterp \
292 --disable-rubyinterp \
303 %if %{!?_without_gtk:1}%{?_without_gtk:0}
306 --with-features=huge \
309 --disable-perlinterp \
310 --disable-pythoninterp \
311 --disable-tclinterp \
312 --disable-rubyinterp \
321 %if %{!?_without_gnome:1}%{?_without_gnome:0}
324 --with-features=huge \
327 --disable-perlinterp \
328 --disable-pythoninterp \
329 --disable-tclinterp \
330 --disable-rubyinterp \
340 rm -rf $RPM_BUILD_ROOT
341 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
342 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
343 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
345 %{__make} install DESTDIR=$RPM_BUILD_ROOT
346 rm $RPM_BUILD_ROOT%{_bindir}/*
348 %{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
349 %{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
350 %{!?_without_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
351 %{?_without_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
352 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
353 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
355 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
357 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
358 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
360 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
362 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
363 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
364 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
365 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
368 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
369 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
371 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
372 ln -sf vi $RPM_BUILD_ROOT/bin/ex
373 ln -sf vi $RPM_BUILD_ROOT/bin/view
374 ln -sf vi $RPM_BUILD_ROOT/bin/rview
376 %{!?_without_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
377 %{!?_without_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
378 %{!?_without_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
379 %{!?_without_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
381 %{!?_without_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
382 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
383 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
384 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
386 %{!?_without_athena:install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
387 %{!?_without_motif: install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
388 %{!?_without_gtk: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
389 %{!?_without_gnome: install %{SOURCE6} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
392 rm -rf $RPM_BUILD_ROOT
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_bindir}/vim
397 %attr(755,root,root) %{_bindir}/rvim
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/xxd
402 %{_mandir}/man1/xxd.1*
405 %defattr(644,root,root,755)
406 %attr(755,root,root) /bin/*
408 %{_mandir}/man1/vi.1*
409 %{_mandir}/man1/ex.1*
410 %{_mandir}/man1/view.1*
411 %{_mandir}/man1/rview.1*
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_bindir}/vimtutor
416 %dir %{_sysconfdir}/vim
417 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
418 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
421 %dir %{_datadir}/vim/v*
422 %{_datadir}/vim/v*/doc
423 %{_datadir}/vim/v*/ftplugin
424 %{_datadir}/vim/v*/indent
425 %{_datadir}/vim/v*/keymap
426 %dir %{_datadir}/vim/v*/lang
427 %{_datadir}/vim/v*/lang/README*
428 %lang(af) %{_datadir}/vim/v*/lang/*af*
429 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
430 %lang(de) %{_datadir}/vim/v*/lang/*de*
431 %lang(es) %{_datadir}/vim/v*/lang/es
432 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
433 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
434 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
435 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
436 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
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(zh_TW) %{_datadir}/vim/v*/lang/*zh*
442 %{_datadir}/vim/v*/macros
443 %{_datadir}/vim/v*/plugin
444 %{_datadir}/vim/v*/syntax
445 %{_datadir}/vim/v*/tutor
446 %{_datadir}/vim/v*/colors
447 %{_datadir}/vim/v*/compiler
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