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
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: 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: Staticly linked Vim
80 Summary(pl): Statycznie zlinkowany Vim
81 Group: Applications/Editors/Vim
82 Group(de): Applikationen/Editors/Vim
83 Group(pl): Aplikacje/Edytory/Vim
86 Obsoletes: vim-minimal
89 Text editor similar to Vi. This version is build with minimal feature
90 and is installed in /bin as a rescue tool. The installation of this
91 package is STRONGLY recommended.
93 %description static -l pl
94 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
95 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
96 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
97 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
100 Summary: Vim runtime files
101 Summary(pl): Pliki przydatne edytorowi Vim
102 Group: Applications/Editors/Vim
103 Group(de): Applikationen/Editors/Vim
104 Group(pl): Aplikacje/Edytory/Vim
107 Obsoletes: vim-common
110 This package contains macros, documentation, syntax configuration and
111 manual pages for vim. If you want to take advantage of vim more
112 powerful features, you should install this package.
114 %description rt -l pl
115 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
116 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
117 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
119 %package -n gvim-athena
120 Summary: Vim for X Window built with Athena
121 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
122 Group: Applications/Editors/Vim
123 Group(de): Applikationen/Editors/Vim
124 Group(pl): Aplikacje/Edytory/Vim
125 Requires: %{name}-rt = %{version}
129 %description -n gvim-athena
130 The classic Unix text editor now also under X Window System! This
131 version is build with Athena Widget Set.
133 %description -n gvim-athena -l pl
134 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
135 biblioteki Athena Widget Set.
137 %package -n gvim-motif
138 Summary: Vim for X Window built with Motif
139 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
140 Group: Applications/Editors/Vim
141 Group(de): Applikationen/Editors/Vim
142 Group(pl): Aplikacje/Edytory/Vim
143 Requires: %{name}-rt = %{version}
147 %description -n gvim-motif
148 The classic Unix text editor now also under X Window System! This
149 version is build with Motif.
151 %description -n gvim-motif -l pl
152 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
156 Summary: Vim for X Window built with gtk
157 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
158 Group: Applications/Editors/Vim
159 Group(de): Applikationen/Editors/Vim
160 Group(pl): Aplikacje/Edytory/Vim
161 Requires: %{name}-rt = %{version}
165 %description -n gvim-gtk
166 The classic Unix text editor now also under X Window System! This
167 version is build with GTK and GNOME.
169 %description -n gvim-gtk -l pl
170 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
171 biblioteki GTK oraz GNOME.
173 %package -n gvim-gnome
174 Summary: Vim for X Window built with gnome
175 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GNOME
176 Group: Applications/Editors/Vim
177 Group(de): Applikationen/Editors/Vim
178 Group(pl): Aplikacje/Edytory/Vim
179 Requires: %{name}-rt = %{version}
183 %description -n gvim-gnome
184 The classic Unix text editor now also under X Window System! This
185 version is build with GNOME.
187 %description -n gvim-gnome -l pl
188 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
192 %setup -q -b 1 -b 3 -n %{name}%(echo %{version} | sed -e "s#\.##g")
205 --disable-perlinterp \
206 --disable-pythoninterp \
207 --disable-tclinterp \
208 --disable-rubyinterp \
211 --with-features=huge \
213 --with-tlib=ncurses \
217 mv -f vim vim.ncurses
219 %if %{!?_without_static:1}%{?_without_static:0}
221 LDFLAGS="%{rpmldflags} -static"
225 --disable-perlinterp \
226 --disable-pythoninterp \
227 --disable-tclinterp \
230 --disable-multibyte \
231 --with-features=small \
240 mv -f xxd/xxd xxd.static
242 %if %{!?_without_athena:1}%{?_without_athena:0}
244 LDFLAGS="%{rpmldflags}"
246 --with-features=huge \
247 --enable-gui=athena \
249 --disable-perlinterp \
250 --disable-pythoninterp \
251 --disable-tclinterp \
252 --disable-rubyinterp \
259 mv -f vim gvim.athena
262 %if %{!?_without_motif:1}%{?_without_motif:0}
265 --with-features=huge \
268 --disable-perlinterp \
269 --disable-pythoninterp \
270 --disable-tclinterp \
271 --disable-rubyinterp \
282 %if %{!?_without_gtk:1}%{?_without_gtk:0}
285 --with-features=huge \
288 --disable-perlinterp \
289 --disable-pythoninterp \
290 --disable-tclinterp \
291 --disable-rubyinterp \
300 %if %{!?_without_gnome:1}%{?_without_gnome:0}
303 --with-features=huge \
306 --disable-perlinterp \
307 --disable-pythoninterp \
308 --disable-tclinterp \
309 --disable-rubyinterp \
319 rm -rf $RPM_BUILD_ROOT
320 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
321 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
322 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
324 %{__make} install DESTDIR=$RPM_BUILD_ROOT
325 rm $RPM_BUILD_ROOT%{_bindir}/*
327 %{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
328 %{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
329 %{!?_without_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
330 %{?_without_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
331 install src/xxd.static $RPM_BUILD_ROOT/bin/xxd
332 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
334 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
336 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
337 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
339 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
341 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
342 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
343 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
344 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
345 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
347 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
348 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
350 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
351 ln -sf vi $RPM_BUILD_ROOT/bin/ex
352 ln -sf vi $RPM_BUILD_ROOT/bin/view
353 ln -sf vi $RPM_BUILD_ROOT/bin/rview
355 %{!?_without_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
356 %{!?_without_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
357 %{!?_without_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
358 %{!?_without_gnome: install src/gvim.gnome $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
360 %{!?_without_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
361 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
362 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
363 %{!?_without_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
365 %{!?_without_athena:install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
366 %{!?_without_motif: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
367 %{!?_without_gtk: install %{SOURCE6} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
368 %{!?_without_gnome: install %{SOURCE7} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
371 rm -rf $RPM_BUILD_ROOT
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_bindir}/vim
376 %attr(755,root,root) %{_bindir}/rvim
379 %defattr(644,root,root,755)
380 %attr(755,root,root) /bin/*
382 %{_mandir}/man1/vi.1*
383 %{_mandir}/man1/ex.1*
384 %{_mandir}/man1/xxd.1*
385 %{_mandir}/man1/view.1*
386 %{_mandir}/man1/rview.1*
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_bindir}/vimtutor
391 %dir %{_sysconfdir}/vim
392 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
393 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
396 %dir %{_datadir}/vim/v*
397 %{_datadir}/vim/v*/doc
398 %{_datadir}/vim/v*/ftplugin
399 %{_datadir}/vim/v*/indent
400 %{_datadir}/vim/v*/keymap
401 %dir %{_datadir}/vim/v*/lang
402 %{_datadir}/vim/v*/lang/README*
403 %lang(af) %{_datadir}/vim/v*/lang/*af*
404 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
405 %lang(de) %{_datadir}/vim/v*/lang/*de*
406 %lang(es) %{_datadir}/vim/v*/lang/es
407 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
408 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
409 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
410 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
411 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
412 %lang(it) %{_datadir}/vim/v*/lang/*it*
413 %lang(ja) %{_datadir}/vim/v*/lang/*ja*
414 %lang(ko) %{_datadir}/vim/v*/lang/*ko*
415 #%lang(pl) %{_datadir}/vim/v*/lang/*pl*
416 %lang(zh_TW) %{_datadir}/vim/v*/lang/*zh*
417 %{_datadir}/vim/v*/macros
418 %{_datadir}/vim/v*/plugin
419 %{_datadir}/vim/v*/syntax
420 %{_datadir}/vim/v*/tutor
421 %{_datadir}/vim/v*/*.vim
423 %{_mandir}/man1/vim.*
424 %{_mandir}/man1/rvim.*
426 %if %{!?_without_athena:1}%{?_without_athena:0}
427 %files -n gvim-athena
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
430 %{_applnkdir}/Development/Editors/gvim-athena.desktop
433 %if %{!?_without_motif:1}%{?_without_motif:0}
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
437 %{_applnkdir}/Development/Editors/gvim-motif.desktop
440 %if %{!?_without_gtk:1}%{?_without_gtk:0}
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
444 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
445 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
446 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
447 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
450 %if %{!?_without_gnome:1}%{?_without_gnome:0}
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
454 %{_applnkdir}/Development/Editors/gvim-gnome.desktop