3 # bcond_off_static - without static version
4 # bcond_off_athena - without Athena Widgets-based gvim
5 # bcond_off_motif - without Motif-based gvim
6 # bcond_off_gtk - without gtk+-based gvim
8 Summary: Vi IMproved - a Vi clone
9 Summary(de): VIsual editor iMproved
10 Summary(fr): editeur VIM : VIsual editor iMproved
11 Summary(pl): Vi IMproved - klon edytora Vi
12 Summary(tr): Geliþmiþ bir vi sürümü
18 Group: Applications/Editors/Vim
19 Group(de): Applikationen/Editors/Vim
20 Group(pl): Aplikacje/Edytory/Vim
21 Source0: ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-src.tar.gz
22 Source1: ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-rt.tar.gz
23 Source2: ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-extra.tar.gz
24 Source3: g%{name}-athena.desktop
25 Source4: g%{name}-motif.desktop
26 Source5: g%{name}-gtk.desktop
27 Patch0: %{name}-fhs.patch
28 Patch1: %{name}-visual.patch
29 Patch2: %{name}-sysconfdir.patch
30 Patch3: %{name}-docpath.patch
31 Patch4: %{name}-speed_t.patch
32 Patch5: ftp://ftp.home.vim.org/pub/vim/patches/5.7.001
33 Patch6: ftp://ftp.home.vim.org/pub/vim/patches/5.7.002
34 Patch7: ftp://ftp.home.vim.org/pub/vim/patches/5.7.003
35 Patch8: ftp://ftp.home.vim.org/pub/vim/patches/5.7.004
36 Patch9: ftp://ftp.home.vim.org/pub/vim/patches/5.7.005
37 Patch10: ftp://ftp.home.vim.org/pub/vim/patches/5.7.006
38 Patch11: ftp://ftp.home.vim.org/pub/vim/patches/5.7.007
39 Patch12: ftp://ftp.home.vim.org/pub/vim/patches/5.7.008
40 Patch13: ftp://ftp.home.vim.org/pub/vim/patches/5.7.009
41 Patch14: ftp://ftp.home.vim.org/pub/vim/patches/5.7.010
42 Patch15: ftp://ftp.home.vim.org/pub/vim/patches/5.7.011
43 Patch16: ftp://ftp.home.vim.org/pub/vim/patches/5.7.012
44 Patch17: ftp://ftp.home.vim.org/pub/vim/patches/5.7.013
45 Patch18: ftp://ftp.home.vim.org/pub/vim/patches/5.7.014
46 Patch19: ftp://ftp.home.vim.org/pub/vim/patches/5.7.015
47 Patch20: ftp://ftp.home.vim.org/pub/vim/patches/5.7.016
48 Patch21: ftp://ftp.home.vim.org/pub/vim/patches/5.7.017
49 Patch22: ftp://ftp.home.vim.org/pub/vim/patches/5.7.018
50 Patch23: ftp://ftp.home.vim.org/pub/vim/patches/5.7.019
51 Patch24: ftp://ftp.home.vim.org/pub/vim/patches/5.7.020
52 Patch25: ftp://ftp.home.vim.org/pub/vim/patches/5.7.021
53 Patch26: ftp://ftp.home.vim.org/pub/vim/patches/5.7.022
54 Patch27: ftp://ftp.home.vim.org/pub/vim/patches/5.7.023
55 Patch28: %{name}-mktemp.patch
56 Patch29: ftp://ftp.home.vim.org/pub/vim/patches/5.7.024
57 URL: http://www.vim.org/
58 BuildRequires: ncurses-devel
59 %{!?bcond_off_static:BuildRequires: ncurses-static}
60 %{!?bcond_off_static:BuildRequires: glibc-static}
61 BuildRequires: gpm-devel
62 %{!?bcond_off_athena:BuildRequires: Xaw3d-devel}
63 %{!?bcond_off_motif:BuildRequires: motif-devel}
64 %{!?bcond_off_gtk:BuildRequires: gtk+-devel}
65 Requires: %{name}-rt = %{version}
66 %{?bcond_off_static:Requires: %{name}-static = %{version}}
67 Obsoletes: vim-enhanced
68 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71 Text editor similar to Vi. Important improvements: multiple windows,
72 multi-level undo, block highliting, and many other.
75 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
76 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
77 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
78 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
82 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
83 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
84 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
85 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
86 blocs et autres caractéristiques au vi de base.
89 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
90 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
94 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
95 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
98 Summary: Staticly linked Vim
99 Summary(pl): Statycznie zlinkowany Vim
100 Group: Applications/Editors/Vim
101 Group(de): Applikationen/Editors/Vim
102 Group(pl): Aplikacje/Edytory/Vim
105 Obsoletes: vim-minimal
108 Text editor similar to Vi. This version is build with minimal feature
109 and is installed in /bin as a rescue tool. The installation of this
110 package is STRONGLY recommended.
112 %description static -l pl
113 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
114 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
115 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
116 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
119 Summary: Vim runtime files
120 Summary(pl): Pliki przydatne edytorowi Vim
121 Group: Applications/Editors/Vim
122 Group(de): Applikationen/Editors/Vim
123 Group(pl): Aplikacje/Edytory/Vim
125 Obsoletes: vim-common
128 This package contains macros, documentation, syntax configuration and
129 manual pages for vim. If you want to take advantage of vim more
130 powerful features, you should install this package.
132 %description rt -l pl
133 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
134 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
135 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
137 %package -n gvim-athena
138 Summary: Vim for X Window built with Athena
139 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Athena
140 Group: Applications/Editors/Vim
141 Group(de): Applikationen/Editors/Vim
142 Group(pl): Aplikacje/Edytory/Vim
143 Requires: %{name}-rt = %{version}
146 %description -n gvim-athena
147 The classic Unix text editor now also under X Window System! This
148 version is build with Athena Widget Set.
150 %description -n gvim-athena -l pl
151 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
152 biblioteki Athena Widget Set.
154 %package -n gvim-motif
155 Summary: Vim for X Window built with Motif
156 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki Motif
157 Group: Applications/Editors/Vim
158 Group(de): Applikationen/Editors/Vim
159 Group(pl): Aplikacje/Edytory/Vim
160 Requires: %{name}-rt = %{version}
163 %description -n gvim-motif
164 The classic Unix text editor now also under X Window System! This
165 version is build with Motif.
167 %description -n gvim-motif -l pl
168 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
172 Summary: Vim for X Window built with gtk
173 Summary(pl): Vim dla X Window korzystaj±cy z biblioteki GTK
174 Group: Applications/Editors/Vim
175 Group(de): Applikationen/Editors/Vim
176 Group(pl): Aplikacje/Edytory/Vim
177 Requires: %{name}-rt = %{version}
180 %description -n gvim-gtk
181 The classic Unix text editor now also under X Window System! This
182 version is build with GTK.
184 %description -n gvim-gtk -l pl
185 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
226 --disable-perlinterp \
227 --disable-pythoninterp \
228 --disable-tclinterp \
231 --enable-max-features \
234 mv -f vim vim.ncurses
236 %{?bcond_off_static:#}%{__make} distclean
237 %{?bcond_off_static:#}%configure \
240 --disable-perlinterp \
241 --disable-pythoninterp \
242 --disable-tclinterp \
245 --disable-multibyte \
246 --enable-min-features \
249 %{?bcond_off_static:#}%{__make} vim
251 %{?bcond_off_static:#}mv -f vim vim.static
252 mv -f xxd/xxd xxd.static
254 %{?bcond_off_athena:#}%{__make} distclean
255 %{?bcond_off_athena:#}%configure \
256 --enable-max-features \
257 --enable-gui=athena \
259 --disable-perlinterp \
260 --disable-pythoninterp \
261 --disable-tclinterp \
264 %{?bcond_off_athena:#}%{__make} vim
265 %{?bcond_off_athena:#}mv -f vim gvim.athena
267 %{?bcond_off_motif:#}%{__make} distclean
268 %{?bcond_off_motif:#}%configure \
269 --enable-max-features \
272 --disable-perlinterp \
273 --disable-pythoninterp \
274 --disable-tclinterp \
277 %{?bcond_off_motif:#}%{__make} vim
278 %{?bcond_off_motif:#}mv -f vim gvim.motif
280 %{?bcond_off_gtk:#}%{__make} distclean
281 %{?bcond_off_gtk:#}%configure \
282 --enable-max-features \
285 --disable-perlinterp \
286 --disable-pythoninterp \
287 --disable-tclinterp \
290 %{?bcond_off_gtk:#}%{__make} vim
291 %{?bcond_off_gtk:#}mv -f vim gvim.gtk
294 rm -rf $RPM_BUILD_ROOT
295 install -d $RPM_BUILD_ROOT{%{_var}/lib/vim,%{_sysconfdir}/vim,%{_bindir}} \
296 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim/{doc,tutor}} \
297 $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
299 %{!?bcond_off_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
300 %{?bcond_off_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}
302 %{!?bcond_off_static:install src/vim.static $RPM_BUILD_ROOT/bin/vi}
303 %{?bcond_off_static:ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim}
304 install src/xxd.static $RPM_BUILD_ROOT/bin/xxd
306 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
308 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
310 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
311 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
313 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
315 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
316 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
317 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
318 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
319 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
321 cp -a runtime/macros $RPM_BUILD_ROOT%{_datadir}/vim/macros
322 cp -a runtime/syntax $RPM_BUILD_ROOT%{_datadir}/vim/syntax
323 cp -a runtime/tutor/tutor $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor
325 install runtime/*.vim $RPM_BUILD_ROOT%{_datadir}/vim
326 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
327 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
329 install runtime/doc/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/doc
330 install runtime/doc/tags $RPM_BUILD_ROOT%{_datadir}/vim/doc
332 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
334 ln -sf vi $RPM_BUILD_ROOT/bin/ex
335 ln -sf vi $RPM_BUILD_ROOT/bin/view
336 ln -sf vi $RPM_BUILD_ROOT/bin/rview
338 %{!?bcond_off_athena:install src/gvim.athena $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
339 %{!?bcond_off_motif: install src/gvim.motif $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
340 %{!?bcond_off_gtk: install src/gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
342 %{!?bcond_off_gtk:ln -sf gvim.gtk $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
343 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
344 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
345 %{!?bcond_off_gtk:ln -sf gvim $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
347 %{!?bcond_off_athena:install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
348 %{!?bcond_off_motif: install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
349 %{!?bcond_off_gtk: install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
352 rm -rf $RPM_BUILD_ROOT
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_bindir}/vim
357 %attr(755,root,root) %{_bindir}/rvim
360 %defattr(644,root,root,755)
361 %attr(755,root,root) /bin/*
363 %{_mandir}/man1/vi.1*
364 %{_mandir}/man1/ex.1*
365 %{_mandir}/man1/xxd.1*
366 %{_mandir}/man1/view.1*
367 %{_mandir}/man1/rview.1*
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_bindir}/vimtutor
372 %dir %{_sysconfdir}/vim
373 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
374 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
380 %{_datadir}/vim/macros
381 %{_datadir}/vim/syntax
382 %{_datadir}/vim/tutor
384 %{_datadir}/vim/*.vim
386 %{_mandir}/man1/vim.*
387 %{_mandir}/man1/rvim.*
389 %{!?bcond_off_athena:%files -n gvim-athena}
390 %{!?bcond_off_athena:%defattr(644,root,root,755)}
391 %{!?bcond_off_athena:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena}
392 %{!?bcond_off_athena:%{_applnkdir}/Development/Editors/gvim-athena.desktop}
394 %{!?bcond_off_motif:%files -n gvim-motif}
395 %{!?bcond_off_motif:%defattr(644,root,root,755)}
396 %{!?bcond_off_motif:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif}
397 %{!?bcond_off_motif:%{_applnkdir}/Development/Editors/gvim-motif.desktop}
399 %{!?bcond_off_gtk:%files -n gvim-gtk}
400 %{!?bcond_off_gtk:%defattr(644,root,root,755)}
401 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk}
402 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgvim}
403 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgview}
404 %{!?bcond_off_gtk:%attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim}
405 %{!?bcond_off_gtk:%{_applnkdir}/Development/Editors/gvim-gtk.desktop}