]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- Release 4.
[packages/vim.git] / vim.spec
1 #
2 # Conditional build:
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 support
7 # bcond_off_gnome       - without gnome-based gvim support
8 #
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ü
14 Name:           vim
15 Version:        6.0z
16 Release:        4
17 Epoch:          1
18 License:        Charityware
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 Patch6:         %{name}-gettext.patch
37 URL:            http://www.vim.org/
38 BuildRequires:  ncurses-devel
39 %{!?bcond_off_static:BuildRequires:     ncurses-static}
40 %{!?bcond_off_static:BuildRequires:     glibc-static}
41 BuildRequires:  gpm-devel
42 %{!?bcond_off_athena:BuildRequires:     Xaw3d-devel}
43 %{!?bcond_off_motif:BuildRequires:      motif-devel}
44 %{!?bcond_off_gtk:BuildRequires:        gtk+-devel}
45 %{!?bcond_off_gnome:BuildRequires:      gnome-libs-devel}
46 %{!?bcond_off_gnome:BuildRequires:      esound-devel}
47 BuildRequires:  iconv
48 Requires:       %{name}-rt = %{version}
49 Requires:       iconv
50 %{?bcond_off_static:Requires:   %{name}-static = %{version}}
51 Obsoletes:      vim-enhanced
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 Text editor similar to Vi. Important improvements: multiple windows,
56 multi-level undo, block highliting, and many other.
57
58 %description -l de
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
63 Standard-vi-Programm.
64
65 %description -l fr
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.
71
72 %description -l pl
73 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
74 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
75 i wiele innych.
76
77 %description -l tr
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.
80
81 %package static
82 Summary:        Staticly linked Vim
83 Summary(pl):    Statycznie zlinkowany Vim
84 Group:          Applications/Editors/Vim
85 Group(de):      Applikationen/Editors/Vim
86 Group(pl):      Aplikacje/Edytory/Vim
87 Provides:       vi
88 Obsoletes:      vi
89 Obsoletes:      vim-minimal
90  
91 %description static
92 Text editor similar to Vi. This version is build with minimal feature
93 and is installed in /bin as a rescue tool. The installation of this
94 package is STRONGLY recommended.
95
96 %description static -l pl
97 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
98 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
99 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
100 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
101
102 %package rt 
103 Summary:        Vim runtime files
104 Summary(pl):    Pliki przydatne edytorowi Vim 
105 Group:          Applications/Editors/Vim
106 Group(de):      Applikationen/Editors/Vim
107 Group(pl):      Aplikacje/Edytory/Vim
108 Requires:       mktemp
109 Obsoletes:      vim-common
110
111 %description rt
112 This package contains macros, documentation, syntax configuration and
113 manual pages for vim. If you want to take advantage of vim more
114 powerful features, you should install this package.
115
116 %description rt -l pl
117 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
118 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
119 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
120
121 %package -n gvim-athena
122 Summary:        Vim for X Window built with Athena
123 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
124 Group:          Applications/Editors/Vim
125 Group(de):      Applikationen/Editors/Vim
126 Group(pl):      Aplikacje/Edytory/Vim
127 Requires:       %{name}-rt = %{version}
128 Requires:       iconv
129 Obsoletes:      vim-X11
130
131 %description -n gvim-athena
132 The classic Unix text editor now also under X Window System! This
133 version is build with Athena Widget Set.
134
135 %description -n gvim-athena -l pl
136 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
137 biblioteki Athena Widget Set.
138
139 %package -n gvim-motif
140 Summary:        Vim for X Window built with Motif
141 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
142 Group:          Applications/Editors/Vim
143 Group(de):      Applikationen/Editors/Vim
144 Group(pl):      Aplikacje/Edytory/Vim
145 Requires:       %{name}-rt = %{version}
146 Requires:       iconv
147 Obsoletes:      vim-X11
148
149 %description -n gvim-motif
150 The classic Unix text editor now also under X Window System! This
151 version is build with Motif.
152
153 %description -n gvim-motif -l pl
154 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
155 biblioteki Motif.
156
157 %package -n gvim-gtk
158 Summary:        Vim for X Window built with gtk
159 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
160 Group:          Applications/Editors/Vim
161 Group(de):      Applikationen/Editors/Vim
162 Group(pl):      Aplikacje/Edytory/Vim
163 Requires:       %{name}-rt = %{version}
164 Requires:       iconv
165 Obsoletes:      vim-X11
166
167 %description -n gvim-gtk
168 The classic Unix text editor now also under X Window System! This
169 version is build with GTK and GNOME.
170
171 %description -n gvim-gtk -l pl
172 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
173 biblioteki GTK oraz GNOME.
174
175 %package -n gvim-gnome
176 Summary:        Vim for X Window built with gnome
177 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
178 Group:          Applications/Editors/Vim
179 Group(de):      Applikationen/Editors/Vim
180 Group(pl):      Aplikacje/Edytory/Vim
181 Requires:       %{name}-rt = %{version}
182 Requires:       iconv
183 Obsoletes:      vim-X11
184
185 %description -n gvim-gnome
186 The classic Unix text editor now also under X Window System! This
187 version is build with GNOME.
188
189 %description -n gvim-gnome -l pl
190 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
191 biblioteki GNOME.
192
193 %prep
194 %setup -q -b 1 -b 2 -b 3 -n %{name}%(echo %{version} | sed -e "s#\.##g")
195 %patch0 -p1
196 %patch1 -p1
197 %patch2 -p1
198 %patch3 -p1
199 %patch4 -p1
200 %patch5 -p1
201 %patch6 -p1
202
203 %build
204 cd src
205 %configure \
206         --disable-gui \
207         --without-x \
208         --disable-perlinterp \
209         --disable-pythoninterp \
210         --disable-tclinterp \
211         --disable-rubyinterp \
212         --enable-cscope \
213         --enable-gmp \
214         --enable-max-features \
215         --enable-multibyte \
216         --with-tlib=ncurses \
217         --enable-nls
218
219 %{__make} vim
220 mv -f vim vim.ncurses
221
222 %{?bcond_off_static:#}%{__make} distclean
223 %{?bcond_off_static:#}%configure \
224         --disable-gui \
225         --without-x \
226         --disable-perlinterp \
227         --disable-pythoninterp \
228         --disable-tclinterp \
229         --disable-cscope \
230         --disable-gpm \
231         --disable-multibyte \
232         --enable-min-features \
233         --with-tlib=tinfo \
234         --disable-nls
235
236 %{?bcond_off_static:#}%{__make} vim
237 %{__make} xxd/xxd
238 %{?bcond_off_static:#}mv -f vim vim.static
239 mv -f xxd/xxd xxd.static
240
241 %{?bcond_off_athena:#}%{__make} distclean
242 %{?bcond_off_athena:#}%configure \
243         --enable-max-features \
244         --enable-gui=athena \
245         --with-x \
246         --disable-perlinterp \
247         --disable-pythoninterp \
248         --disable-tclinterp \
249         --disable-rubyinterp \
250         --enable-cscope \
251         --enable-fontset \
252         --disable-gpm \
253         --without-gnome \
254         --enable-nls
255 %{?bcond_off_athena:#}%{__make} vim
256 %{?bcond_off_athena:#}mv -f vim gvim.athena
257
258 %{?bcond_off_motif:#}%{__make} distclean
259 %{?bcond_off_motif:#}%configure \
260         --enable-max-features \
261         --enable-gui=motif \
262         --with-x \
263         --disable-perlinterp \
264         --disable-pythoninterp \
265         --disable-tclinterp \
266         --disable-rubyinterp \
267         --enable-multibyte \
268         --enable-cscope \
269         --enable-fontset \
270         --disable-gpm \
271         --without-gnome \
272         --enable-nls
273 %{?bcond_off_motif:#}%{__make} vim
274 %{?bcond_off_motif:#}mv -f vim gvim.motif
275
276 %{?bcond_off_gtk:#}%{__make} distclean
277 %{?bcond_off_gtk:#}%configure \
278         --enable-max-features \
279         --enable-gui=gtk \
280         --with-x \
281         --disable-perlinterp \
282         --disable-pythoninterp \
283         --disable-tclinterp \
284         --disable-rubyinterp \
285         --disable-gpm \
286         --enable-cscope \
287         --enable-fontset \
288         --enable-nls
289 %{?bcond_off_gtk:#}%{__make} vim
290 %{?bcond_off_gtk:#}mv -f vim gvim.gtk
291
292 %{?bcond_off_gnome:#}%{__make} distclean
293 %{?bcond_off_gnome:#}%configure \
294         --enable-max-features \
295         --enable-gui=gnome \
296         --with-x \
297         --disable-perlinterp \
298         --disable-pythoninterp \
299         --disable-tclinterp \
300         --disable-rubyinterp \
301         --disable-gpm \
302         --enable-cscope \
303         --enable-fontset \
304         --enable-nls
305 %{?bcond_off_gnome:#}%{__make} vim
306 %{?bcond_off_gnome:#}mv -f vim gvim.gnome
307
308 %install
309 rm -rf $RPM_BUILD_ROOT
310 install -d $RPM_BUILD_ROOT{%{_var}/lib/vim,%{_sysconfdir}/vim,%{_bindir}} \
311         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
312         $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
313
314 %{__make} install DESTDIR=$RPM_BUILD_ROOT
315 rm $RPM_BUILD_ROOT%{_bindir}/*
316
317 %{!?bcond_off_static:install src/vim.ncurses    $RPM_BUILD_ROOT%{_bindir}/vim}
318 %{?bcond_off_static:install src/vim.ncurses     $RPM_BUILD_ROOT/bin/vi}
319 %{!?bcond_off_static:install src/vim.static     $RPM_BUILD_ROOT/bin/vi}
320 %{?bcond_off_static:ln -sf /bin/vi              $RPM_BUILD_ROOT%{_bindir}/vim}
321 install src/xxd.static                          $RPM_BUILD_ROOT/bin/xxd
322 install src/vimtutor                            $RPM_BUILD_ROOT%{_bindir}/vimtutor
323
324 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
325
326 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
327 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
328
329 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
330
331 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
332 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
333 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
334 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
335 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
336
337 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
338 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
339
340 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
341 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
342 ln -sf vi  $RPM_BUILD_ROOT/bin/view
343 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
344
345 %{!?bcond_off_athena:install src/gvim.athena    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
346 %{!?bcond_off_motif: install src/gvim.motif     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
347 %{!?bcond_off_gtk:   install src/gvim.gtk       $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
348 %{!?bcond_off_gnome: install src/gvim.gnome     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
349
350 %{!?bcond_off_gtk:ln -sf gvim.gtk               $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
351 %{!?bcond_off_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
352 %{!?bcond_off_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
353 %{!?bcond_off_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
354
355 %{!?bcond_off_athena:install %{SOURCE4}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
356 %{!?bcond_off_motif: install %{SOURCE5}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
357 %{!?bcond_off_gtk:   install %{SOURCE6}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
358 %{!?bcond_off_gnome: install %{SOURCE7}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
359
360 %clean
361 rm -rf $RPM_BUILD_ROOT
362
363 %files
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_bindir}/vim
366 %attr(755,root,root) %{_bindir}/rvim
367
368 %files static
369 %defattr(644,root,root,755)
370 %attr(755,root,root) /bin/*
371
372 %{_mandir}/man1/vi.1*
373 %{_mandir}/man1/ex.1*
374 %{_mandir}/man1/xxd.1*
375 %{_mandir}/man1/view.1*
376 %{_mandir}/man1/rview.1*
377
378 %files rt
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_bindir}/vimtutor
381 %dir %{_sysconfdir}/vim
382 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
383 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
384
385 %dir %{_var}/lib/vim
386
387 %dir %{_datadir}/vim
388 %dir %{_datadir}/vim/v*
389 %{_datadir}/vim/v*/doc
390 %{_datadir}/vim/v*/ftplugin
391 %{_datadir}/vim/v*/indent
392 %{_datadir}/vim/v*/keymap
393 %dir %{_datadir}/vim/v*/lang
394 %{_datadir}/vim/v*/lang/README*
395 %lang(af) %{_datadir}/vim/v*/lang/*af*
396 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
397 %lang(de) %{_datadir}/vim/v*/lang/*de*
398 %lang(es) %{_datadir}/vim/v*/lang/es
399 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
400 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
401 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
402 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
403 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
404 %lang(it) %{_datadir}/vim/v*/lang/*it*
405 %lang(ja) %{_datadir}/vim/v*/lang/*ja*
406 %lang(ko) %{_datadir}/vim/v*/lang/*ko*
407 #%lang(pl) %{_datadir}/vim/v*/lang/*pl*
408 %lang(zh_TW) %{_datadir}/vim/v*/lang/*zh*
409 %{_datadir}/vim/v*/macros
410 %{_datadir}/vim/v*/plugin
411 %{_datadir}/vim/v*/syntax
412 %{_datadir}/vim/v*/tutor
413 %{_datadir}/vim/v*/*.vim
414
415 %{_mandir}/man1/vim.*
416 %{_mandir}/man1/rvim.*
417
418 %{!?bcond_off_athena:%files -n gvim-athena}
419 %{!?bcond_off_athena:%defattr(644,root,root,755)}
420 %{!?bcond_off_athena:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena}
421 %{!?bcond_off_athena:%{_applnkdir}/Development/Editors/gvim-athena.desktop}
422
423 %{!?bcond_off_motif:%files -n gvim-motif}
424 %{!?bcond_off_motif:%defattr(644,root,root,755)}
425 %{!?bcond_off_motif:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif}
426 %{!?bcond_off_motif:%{_applnkdir}/Development/Editors/gvim-motif.desktop}
427
428 %{!?bcond_off_gtk:%files -n gvim-gtk}
429 %{!?bcond_off_gtk:%defattr(644,root,root,755)}
430 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk}
431 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgvim}
432 %{!?bcond_off_gtk:%attr(755,root,root) %{_prefix}/X11R6/bin/rgview}
433 %{!?bcond_off_gtk:%attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim}
434 %{!?bcond_off_gtk:%{_applnkdir}/Development/Editors/gvim-gtk.desktop}
435
436 %{!?bcond_off_gnome:%files -n gvim-gnome}
437 %{!?bcond_off_gnome:%defattr(644,root,root,755)}
438 %{!?bcond_off_gnome:%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome}
439 %{!?bcond_off_gnome:%{_applnkdir}/Development/Editors/gvim-gnome.desktop}
This page took 0.070905 seconds and 4 git commands to generate.