]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- pl patch with fixes for SEGV and some nasty mistakes in pl messages
[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:        3
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 Patch5:         %{name}-pl.patch
39 URL:            http://www.vim.org/
40 BuildRequires:  gpm-devel
41 BuildRequires:  ncurses-devel
42 %{!?_without_athena:BuildRequires:      Xaw3d-devel}
43 %{!?_without_gnome:BuildRequires:       esound-devel}
44 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
45 %{!?_without_gtk:BuildRequires: gtk+-devel}
46 %{!?_without_motif:BuildRequires:       motif-devel}
47 %{!?_without_static:BuildRequires:      glibc-static}
48 %{!?_without_static:BuildRequires:      ncurses-static}
49 Requires:       %{name}-rt = %{version}
50 %{?_without_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 -n xxd
82 Summary:        Utility to convert files to hexdump or do the reverse
83 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
84 Group:          Applications/Editors/Vim
85 Group(de):      Applikationen/Editors/Vim
86 Group(pl):      Aplikacje/Edytory/Vim
87
88 %description -n xxd
89 xxd creates a hex dump of a given file or standard input. It can also
90 convert a hex dump back to its original binary form. Like uuencode and
91 uudecode it allows the transmission of binary data in a `mail-safe'
92 ASCII representation, but has the advantage of decoding to standard
93 output. Moreover, it can be used to perform binary file patching.
94
95 %description -n xxd -l pl
96 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
97 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
98 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
99 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
100 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
101
102 %package static
103 Summary:        Staticly linked Vim
104 Summary(pl):    Statycznie zlinkowany Vim
105 Group:          Applications/Editors/Vim
106 Group(de):      Applikationen/Editors/Vim
107 Group(pl):      Aplikacje/Edytory/Vim
108 Provides:       vi
109 Obsoletes:      vi
110 Obsoletes:      vim-minimal
111
112 %description static
113 Text editor similar to Vi. This version is build with minimal feature
114 and is installed in /bin as a rescue tool. The installation of this
115 package is STRONGLY recommended.
116
117 %description static -l pl
118 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
119 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
120 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
121 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
122
123 %package rt
124 Summary:        Vim runtime files
125 Summary(pl):    Pliki przydatne edytorowi Vim
126 Group:          Applications/Editors/Vim
127 Group(de):      Applikationen/Editors/Vim
128 Group(pl):      Aplikacje/Edytory/Vim
129 Requires:       mktemp
130 Requires:       which
131 Obsoletes:      vim-common
132
133 %description rt
134 This package contains macros, documentation, syntax configuration and
135 manual pages for vim. If you want to take advantage of vim more
136 powerful features, you should install this package.
137
138 %description rt -l pl
139 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
140 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
141 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
142
143 %package -n gvim-athena
144 Summary:        Vim for X Window built with Athena
145 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
146 Group:          Applications/Editors/Vim
147 Group(de):      Applikationen/Editors/Vim
148 Group(pl):      Aplikacje/Edytory/Vim
149 Requires:       %{name}-rt = %{version}
150 Requires:       iconv
151 Obsoletes:      vim-X11
152
153 %description -n gvim-athena
154 The classic Unix text editor now also under X Window System! This
155 version is build with Athena Widget Set.
156
157 %description -n gvim-athena -l pl
158 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
159 biblioteki Athena Widget Set.
160
161 %package -n gvim-motif
162 Summary:        Vim for X Window built with Motif
163 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
164 Group:          Applications/Editors/Vim
165 Group(de):      Applikationen/Editors/Vim
166 Group(pl):      Aplikacje/Edytory/Vim
167 Requires:       %{name}-rt = %{version}
168 Requires:       iconv
169 Obsoletes:      vim-X11
170
171 %description -n gvim-motif
172 The classic Unix text editor now also under X Window System! This
173 version is build with Motif.
174
175 %description -n gvim-motif -l pl
176 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
177 biblioteki Motif.
178
179 %package -n gvim-gtk
180 Summary:        Vim for X Window built with gtk
181 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
182 Group:          Applications/Editors/Vim
183 Group(de):      Applikationen/Editors/Vim
184 Group(pl):      Aplikacje/Edytory/Vim
185 Requires:       %{name}-rt = %{version}
186 Requires:       iconv
187 Obsoletes:      vim-X11
188
189 %description -n gvim-gtk
190 The classic Unix text editor now also under X Window System! This
191 version is build with GTK and GNOME.
192
193 %description -n gvim-gtk -l pl
194 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
195 biblioteki GTK oraz GNOME.
196
197 %package -n gvim-gnome
198 Summary:        Vim for X Window built with gnome
199 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
200 Group:          Applications/Editors/Vim
201 Group(de):      Applikationen/Editors/Vim
202 Group(pl):      Aplikacje/Edytory/Vim
203 Requires:       %{name}-rt = %{version}
204 Requires:       iconv
205 Obsoletes:      vim-X11
206
207 %description -n gvim-gnome
208 The classic Unix text editor now also under X Window System! This
209 version is build with GNOME.
210
211 %description -n gvim-gnome -l pl
212 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
213 biblioteki GNOME.
214
215 %prep
216 %setup -q -b1 -b2 -b3 -b4 -b5 -n %{name}%(echo %{version} | sed -e "s#\.##g")
217 %patch0 -p1
218 %patch1 -p1
219 %patch2 -p1
220 %patch3 -p1
221 %{?_with_ispell:%patch4 -p1}
222 %patch5 -p1
223
224 %build
225 cd src
226 autoconf
227 %configure \
228         --disable-gui \
229         --without-x \
230         --disable-perlinterp \
231         --disable-pythoninterp \
232         --disable-tclinterp \
233         --disable-rubyinterp \
234         --enable-cscope \
235         --enable-gpm \
236         --with-features=huge \
237         --enable-multibyte \
238         --with-tlib=ncurses \
239         --enable-nls
240
241 %{__make} vim
242 mv -f vim vim.ncurses
243
244 %{__make} xxd/xxd
245
246 %if %{!?_without_static:1}%{?_without_static:0}
247 %{__make} distclean
248 LDFLAGS="%{rpmldflags} -static"
249 %configure \
250         --disable-gui \
251         --without-x \
252         --disable-perlinterp \
253         --disable-pythoninterp \
254         --disable-tclinterp \
255         --disable-cscope \
256         --disable-gpm \
257         --disable-multibyte \
258         --with-features=small \
259         --with-tlib=tinfo \
260         --disable-nls
261
262 %{__make} vim
263 mv -f vim vim.static
264 %endif
265
266 %if %{!?_without_athena:1}%{?_without_athena:0}
267 %{__make} distclean
268 LDFLAGS="%{rpmldflags}"
269 %configure \
270         --with-features=huge \
271         --enable-gui=athena \
272         --with-x \
273         --disable-perlinterp \
274         --disable-pythoninterp \
275         --disable-tclinterp \
276         --disable-rubyinterp \
277         --enable-cscope \
278         --enable-fontset \
279         --disable-gpm \
280         --without-gnome \
281         --enable-nls
282 %{__make} vim
283 mv -f vim gvim.athena
284 %endif
285
286 %if %{!?_without_motif:1}%{?_without_motif:0}
287 %{__make} distclean
288 %configure \
289         --with-features=huge \
290         --enable-gui=motif \
291         --with-x \
292         --disable-perlinterp \
293         --disable-pythoninterp \
294         --disable-tclinterp \
295         --disable-rubyinterp \
296         --enable-multibyte \
297         --enable-cscope \
298         --enable-fontset \
299         --disable-gpm \
300         --without-gnome \
301         --enable-nls
302 %{__make} vim
303 mv -f vim gvim.motif
304 %endif
305
306 %if %{!?_without_gtk:1}%{?_without_gtk:0}
307 %{__make} distclean
308 %configure \
309         --with-features=huge \
310         --enable-gui=gtk \
311         --with-x \
312         --disable-perlinterp \
313         --disable-pythoninterp \
314         --disable-tclinterp \
315         --disable-rubyinterp \
316         --disable-gpm \
317         --enable-cscope \
318         --enable-fontset \
319         --enable-nls
320 %{__make} vim
321 mv -f vim gvim.gtk
322 %endif
323
324 %if %{!?_without_gnome:1}%{?_without_gnome:0}
325 %{__make} distclean
326 %configure \
327         --with-features=huge \
328         --enable-gui=gnome \
329         --with-x \
330         --disable-perlinterp \
331         --disable-pythoninterp \
332         --disable-tclinterp \
333         --disable-rubyinterp \
334         --disable-gpm \
335         --enable-cscope \
336         --enable-fontset \
337         --enable-nls
338 %{__make} vim
339 mv -f vim gvim.gnome
340 %endif
341
342 %install
343 rm -rf $RPM_BUILD_ROOT
344 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
345         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
346         $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
347
348 %{__make} install DESTDIR=$RPM_BUILD_ROOT
349 rm $RPM_BUILD_ROOT%{_bindir}/*
350
351 %{!?_without_static:install src/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim}
352 %{?_without_static:install src/vim.ncurses      $RPM_BUILD_ROOT/bin/vi}
353 %{!?_without_static:install src/vim.static      $RPM_BUILD_ROOT/bin/vi}
354 %{?_without_static:ln -sf /bin/vi               $RPM_BUILD_ROOT%{_bindir}/vim}
355 install src/xxd/xxd                             $RPM_BUILD_ROOT%{_bindir}/xxd
356 install src/vimtutor                            $RPM_BUILD_ROOT%{_bindir}/vimtutor
357
358 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
359
360 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
361 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
362
363 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
364
365 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
367 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
368 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
369 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
370
371 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
372 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
373
374 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
375 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
376 ln -sf vi  $RPM_BUILD_ROOT/bin/view
377 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
378
379 %{!?_without_athena:install src/gvim.athena     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
380 %{!?_without_motif: install src/gvim.motif      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
381 %{!?_without_gtk:   install src/gvim.gtk        $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
382 %{!?_without_gnome: install src/gvim.gnome      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
383
384 %{!?_without_gtk:ln -sf gvim.gtk                $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
385 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
386 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
387 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
388
389 %{!?_without_athena:install %{SOURCE6}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
390 %{!?_without_motif: install %{SOURCE7}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
391 %{!?_without_gtk:   install %{SOURCE8}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
392 %{!?_without_gnome: install %{SOURCE9}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
393
394 %clean
395 rm -rf $RPM_BUILD_ROOT
396
397 %files
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/vim
400 %attr(755,root,root) %{_bindir}/rvim
401
402 %files -n xxd
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_bindir}/xxd
405 %{_mandir}/man1/xxd.1*
406
407 %files static
408 %defattr(644,root,root,755)
409 %attr(755,root,root) /bin/*
410
411 %{_mandir}/man1/vi.1*
412 %{_mandir}/man1/ex.1*
413 %{_mandir}/man1/view.1*
414 %{_mandir}/man1/rview.1*
415
416 %files rt
417 %defattr(644,root,root,755)
418 %attr(755,root,root) %{_bindir}/vimtutor
419 %dir %{_sysconfdir}/vim
420 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
421 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
422
423 %dir %{_datadir}/vim
424 %dir %{_datadir}/vim/v*
425 %{_datadir}/vim/v*/doc
426 %{_datadir}/vim/v*/ftplugin
427 %{_datadir}/vim/v*/indent
428 %{_datadir}/vim/v*/keymap
429 %dir %{_datadir}/vim/v*/lang
430 %{_datadir}/vim/v*/lang/README*
431 %lang(af) %{_datadir}/vim/v*/lang/*af*
432 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
433 %lang(de) %{_datadir}/vim/v*/lang/*de*
434 %lang(es) %{_datadir}/vim/v*/lang/es
435 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
436 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
437 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
438 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
439 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
440 %lang(it) %{_datadir}/vim/v*/lang/*it*
441 %lang(ja) %{_datadir}/vim/v*/lang/*ja*
442 %lang(ko) %{_datadir}/vim/v*/lang/*ko*
443 %lang(pl) %{_datadir}/vim/v*/lang/*pl*
444 %lang(zh_TW) %{_datadir}/vim/v*/lang/*zh*
445 %{_datadir}/vim/v*/macros
446 %{_datadir}/vim/v*/plugin
447 %{_datadir}/vim/v*/syntax
448 %{_datadir}/vim/v*/tutor
449 %{_datadir}/vim/v*/colors
450 %{_datadir}/vim/v*/*.vim
451
452 %{_mandir}/man1/vim.*
453 %{_mandir}/man1/rvim.*
454
455 %if %{!?_without_athena:1}%{?_without_athena:0}
456 %files -n gvim-athena
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
459 %{_applnkdir}/Development/Editors/gvim-athena.desktop
460 %endif
461
462 %if %{!?_without_motif:1}%{?_without_motif:0}
463 %files -n gvim-motif
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
466 %{_applnkdir}/Development/Editors/gvim-motif.desktop
467 %endif
468
469 %if %{!?_without_gtk:1}%{?_without_gtk:0}
470 %files -n gvim-gtk
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
473 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
474 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
475 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
476 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
477 %endif
478
479 %if %{!?_without_gnome:1}%{?_without_gnome:0}
480 %files -n gvim-gnome
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
483 %{_applnkdir}/Development/Editors/gvim-gnome.desktop
484 %endif
This page took 0.082329 seconds and 3 git commands to generate.