]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- added ispell patch with online spell checking feature
[packages/vim.git] / vim.spec
1 #
2 # Conditional build:
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)
9 #
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ü
15 Name:           vim
16 Version:        6.0aq
17 Release:        1
18 Epoch:          2
19 License:        Charityware
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)
52
53 %description
54 Text editor similar to Vi. Important improvements: multiple windows,
55 multi-level undo, block highliting, and many other.
56
57 %description -l de
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
62 Standard-vi-Programm.
63
64 %description -l fr
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.
70
71 %description -l pl
72 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
73 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
74 i wiele innych.
75
76 %description -l tr
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.
79
80 %package -n xxd
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
86
87 %description -n xxd
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.
93
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.
100
101 %package static
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
107 Provides:       vi
108 Obsoletes:      vi
109 Obsoletes:      vim-minimal
110
111 %description static
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.
115
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.
121
122 %package rt
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
128 Requires:       mktemp
129 Requires:       which
130 Obsoletes:      vim-common
131
132 %description rt
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.
136
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.
141
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}
149 Requires:       iconv
150 Obsoletes:      vim-X11
151
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.
155
156 %description -n gvim-athena -l pl
157 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
158 biblioteki Athena Widget Set.
159
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}
167 Requires:       iconv
168 Obsoletes:      vim-X11
169
170 %description -n gvim-motif
171 The classic Unix text editor now also under X Window System! This
172 version is build with Motif.
173
174 %description -n gvim-motif -l pl
175 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
176 biblioteki Motif.
177
178 %package -n gvim-gtk
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}
185 Requires:       iconv
186 Obsoletes:      vim-X11
187
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.
191
192 %description -n gvim-gtk -l pl
193 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
194 biblioteki GTK oraz GNOME.
195
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}
203 Requires:       iconv
204 Obsoletes:      vim-X11
205
206 %description -n gvim-gnome
207 The classic Unix text editor now also under X Window System! This
208 version is build with GNOME.
209
210 %description -n gvim-gnome -l pl
211 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
212 biblioteki GNOME.
213
214 %prep
215 %setup -q -b1 -b2 -b3 -b4 -b5 -n %{name}%(echo %{version} | sed -e "s#\.##g")
216 %patch0 -p1
217 %patch1 -p1
218 %patch2 -p1
219 %patch3 -p1
220 %{?_with_ispell:%patch4 -p1}
221
222 %build
223 cd src
224 autoconf
225 %configure \
226         --disable-gui \
227         --without-x \
228         --disable-perlinterp \
229         --disable-pythoninterp \
230         --disable-tclinterp \
231         --disable-rubyinterp \
232         --enable-cscope \
233         --enable-gpm \
234         --with-features=huge \
235         --enable-multibyte \
236         --with-tlib=ncurses \
237         --enable-nls
238
239 %{__make} vim
240 mv -f vim vim.ncurses
241
242 %{__make} xxd/xxd
243
244 %if %{!?_without_static:1}%{?_without_static:0}
245 %{__make} distclean
246 LDFLAGS="%{rpmldflags} -static"
247 %configure \
248         --disable-gui \
249         --without-x \
250         --disable-perlinterp \
251         --disable-pythoninterp \
252         --disable-tclinterp \
253         --disable-cscope \
254         --disable-gpm \
255         --disable-multibyte \
256         --with-features=small \
257         --with-tlib=tinfo \
258         --disable-nls
259
260 %{__make} vim
261 mv -f vim vim.static
262 %endif
263
264 %if %{!?_without_athena:1}%{?_without_athena:0}
265 %{__make} distclean
266 LDFLAGS="%{rpmldflags}"
267 %configure \
268         --with-features=huge \
269         --enable-gui=athena \
270         --with-x \
271         --disable-perlinterp \
272         --disable-pythoninterp \
273         --disable-tclinterp \
274         --disable-rubyinterp \
275         --enable-cscope \
276         --enable-fontset \
277         --disable-gpm \
278         --without-gnome \
279         --enable-nls
280 %{__make} vim
281 mv -f vim gvim.athena
282 %endif
283
284 %if %{!?_without_motif:1}%{?_without_motif:0}
285 %{__make} distclean
286 %configure \
287         --with-features=huge \
288         --enable-gui=motif \
289         --with-x \
290         --disable-perlinterp \
291         --disable-pythoninterp \
292         --disable-tclinterp \
293         --disable-rubyinterp \
294         --enable-multibyte \
295         --enable-cscope \
296         --enable-fontset \
297         --disable-gpm \
298         --without-gnome \
299         --enable-nls
300 %{__make} vim
301 mv -f vim gvim.motif
302 %endif
303
304 %if %{!?_without_gtk:1}%{?_without_gtk:0}
305 %{__make} distclean
306 %configure \
307         --with-features=huge \
308         --enable-gui=gtk \
309         --with-x \
310         --disable-perlinterp \
311         --disable-pythoninterp \
312         --disable-tclinterp \
313         --disable-rubyinterp \
314         --disable-gpm \
315         --enable-cscope \
316         --enable-fontset \
317         --enable-nls
318 %{__make} vim
319 mv -f vim gvim.gtk
320 %endif
321
322 %if %{!?_without_gnome:1}%{?_without_gnome:0}
323 %{__make} distclean
324 %configure \
325         --with-features=huge \
326         --enable-gui=gnome \
327         --with-x \
328         --disable-perlinterp \
329         --disable-pythoninterp \
330         --disable-tclinterp \
331         --disable-rubyinterp \
332         --disable-gpm \
333         --enable-cscope \
334         --enable-fontset \
335         --enable-nls
336 %{__make} vim
337 mv -f vim gvim.gnome
338 %endif
339
340 %install
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}
345
346 %{__make} install DESTDIR=$RPM_BUILD_ROOT
347 rm $RPM_BUILD_ROOT%{_bindir}/*
348
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
355
356 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
357
358 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
359 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
360
361 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
362
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
368
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
371
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
376
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}
381
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}
386
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}
391
392 %clean
393 rm -rf $RPM_BUILD_ROOT
394
395 %files
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_bindir}/vim
398 %attr(755,root,root) %{_bindir}/rvim
399
400 %files -n xxd
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/xxd
403 %{_mandir}/man1/xxd.1*
404
405 %files static
406 %defattr(644,root,root,755)
407 %attr(755,root,root) /bin/*
408
409 %{_mandir}/man1/vi.1*
410 %{_mandir}/man1/ex.1*
411 %{_mandir}/man1/view.1*
412 %{_mandir}/man1/rview.1*
413
414 %files rt
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
420
421 %dir %{_datadir}/vim
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
449
450 %{_mandir}/man1/vim.*
451 %{_mandir}/man1/rvim.*
452
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
458 %endif
459
460 %if %{!?_without_motif:1}%{?_without_motif:0}
461 %files -n gvim-motif
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
464 %{_applnkdir}/Development/Editors/gvim-motif.desktop
465 %endif
466
467 %if %{!?_without_gtk:1}%{?_without_gtk:0}
468 %files -n gvim-gtk
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
475 %endif
476
477 %if %{!?_without_gnome:1}%{?_without_gnome:0}
478 %files -n gvim-gnome
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
481 %{_applnkdir}/Development/Editors/gvim-gnome.desktop
482 %endif
This page took 0.067894 seconds and 4 git commands to generate.