]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- there *are* es files; added the rest of .mo files
[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.0
17 Release:        1
18 Epoch:          4
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/unix/%{name}-%{version}.tar.bz2
24 Source1:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-lang.tar.gz
25 #Source2:       ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-extra.tar.gz
26 Source3:        g%{name}-athena.desktop
27 Source4:        g%{name}-motif.desktop
28 Source5:        g%{name}-gtk.desktop
29 Source6:        g%{name}-gnome.desktop
30 Patch0:         %{name}-sysconfdir.patch
31 Patch1:         %{name}-visual.patch
32 Patch2:         %{name}-phphighlight.patch
33 Patch3:         %{name}-paths.patch
34 Patch4:         %{name}-ispell.patch
35 Patch5:         %{name}-pl.patch
36 Patch6:         %{name}-shsyntax.patch
37 URL:            http://www.vim.org/
38 BuildRequires:  autoconf
39 BuildRequires:  gettext-devel
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.
192
193 %description -n gvim-gtk -l pl
194 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
195 biblioteki GTK.
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 bibliotek GNOME.
214
215 %prep
216 %setup -q -b1 -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 %patch6 -p1
224
225 %build
226 cd src
227 autoconf
228 %configure \
229         --disable-gui \
230         --without-x \
231         --disable-perlinterp \
232         --disable-pythoninterp \
233         --disable-tclinterp \
234         --disable-rubyinterp \
235         --enable-cscope \
236         --enable-gpm \
237         --with-features=huge \
238         --enable-multibyte \
239         --with-tlib=ncurses \
240         --enable-nls
241
242 %{__make} vim
243 mv -f vim vim.ncurses
244
245 %{__make} xxd/xxd
246
247 %if %{!?_without_static:1}%{?_without_static:0}
248 %{__make} distclean
249 LDFLAGS="%{rpmldflags} -static"
250 %configure \
251         --disable-gui \
252         --without-x \
253         --disable-perlinterp \
254         --disable-pythoninterp \
255         --disable-tclinterp \
256         --disable-cscope \
257         --disable-gpm \
258         --disable-multibyte \
259         --with-features=small \
260         --with-tlib=tinfo \
261         --disable-nls
262
263 %{__make} vim
264 mv -f vim vim.static
265 %endif
266
267 %if %{!?_without_athena:1}%{?_without_athena:0}
268 %{__make} distclean
269 LDFLAGS="%{rpmldflags}"
270 %configure \
271         --with-features=huge \
272         --enable-gui=athena \
273         --with-x \
274         --disable-perlinterp \
275         --disable-pythoninterp \
276         --disable-tclinterp \
277         --disable-rubyinterp \
278         --enable-cscope \
279         --enable-fontset \
280         --disable-gpm \
281         --without-gnome \
282         --enable-nls
283 %{__make} vim
284 mv -f vim gvim.athena
285 %endif
286
287 %if %{!?_without_motif:1}%{?_without_motif:0}
288 %{__make} distclean
289 %configure \
290         --with-features=huge \
291         --enable-gui=motif \
292         --with-x \
293         --disable-perlinterp \
294         --disable-pythoninterp \
295         --disable-tclinterp \
296         --disable-rubyinterp \
297         --enable-multibyte \
298         --enable-cscope \
299         --enable-fontset \
300         --disable-gpm \
301         --without-gnome \
302         --enable-nls
303 %{__make} vim
304 mv -f vim gvim.motif
305 %endif
306
307 %if %{!?_without_gtk:1}%{?_without_gtk:0}
308 %{__make} distclean
309 %configure \
310         --with-features=huge \
311         --enable-gui=gtk \
312         --with-x \
313         --disable-perlinterp \
314         --disable-pythoninterp \
315         --disable-tclinterp \
316         --disable-rubyinterp \
317         --disable-gpm \
318         --enable-cscope \
319         --enable-fontset \
320         --enable-nls
321 %{__make} vim
322 mv -f vim gvim.gtk
323 %endif
324
325 %if %{!?_without_gnome:1}%{?_without_gnome:0}
326 %{__make} distclean
327 %configure \
328         --with-features=huge \
329         --enable-gui=gnome \
330         --with-x \
331         --disable-perlinterp \
332         --disable-pythoninterp \
333         --disable-tclinterp \
334         --disable-rubyinterp \
335         --disable-gpm \
336         --enable-cscope \
337         --enable-fontset \
338         --enable-nls
339 %{__make} vim
340 mv -f vim gvim.gnome
341 %endif
342
343 %install
344 rm -rf $RPM_BUILD_ROOT
345 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
346         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
347         $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
348
349 %{__make} install DESTDIR=$RPM_BUILD_ROOT
350 rm $RPM_BUILD_ROOT%{_bindir}/*
351
352 %{!?_without_static:install src/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim}
353 %{?_without_static:install src/vim.ncurses      $RPM_BUILD_ROOT/bin/vi}
354 %{!?_without_static:install src/vim.static      $RPM_BUILD_ROOT/bin/vi}
355 %{?_without_static:ln -sf /bin/vi               $RPM_BUILD_ROOT%{_bindir}/vim}
356 install src/xxd/xxd                             $RPM_BUILD_ROOT%{_bindir}/xxd
357 install src/vimtutor                            $RPM_BUILD_ROOT%{_bindir}/vimtutor
358
359 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
360
361 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
362 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
363
364 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
365
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
367 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
368 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
369 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
370 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
371
372 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
373 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
374
375 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
376 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
377 ln -sf vi  $RPM_BUILD_ROOT/bin/view
378 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
379
380 %{!?_without_athena:install src/gvim.athena     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
381 %{!?_without_motif: install src/gvim.motif      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
382 %{!?_without_gtk:   install src/gvim.gtk        $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
383 %{!?_without_gnome: install src/gvim.gnome      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
384
385 %{!?_without_gtk:ln -sf gvim.gtk                $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
386 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
387 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
388 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
389
390 %{!?_without_athena:install %{SOURCE3}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
391 %{!?_without_motif: install %{SOURCE4}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
392 %{!?_without_gtk:   install %{SOURCE5}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
393 %{!?_without_gnome: install %{SOURCE6}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
394
395 %clean
396 rm -rf $RPM_BUILD_ROOT
397
398 %files
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_bindir}/vim
401 %attr(755,root,root) %{_bindir}/rvim
402
403 %files -n xxd
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_bindir}/xxd
406 %{_mandir}/man1/xxd.1*
407
408 %files static
409 %defattr(644,root,root,755)
410 %attr(755,root,root) /bin/*
411
412 %{_mandir}/man1/vi.1*
413 %{_mandir}/man1/ex.1*
414 %{_mandir}/man1/view.1*
415 %{_mandir}/man1/rview.1*
416
417 %files rt
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_bindir}/vimtutor
420 %dir %{_sysconfdir}/vim
421 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
422 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
423
424 %dir %{_datadir}/vim
425 %dir %{_datadir}/vim/v*
426 %{_datadir}/vim/v*/doc
427 %{_datadir}/vim/v*/ftplugin
428 %{_datadir}/vim/v*/indent
429 %{_datadir}/vim/v*/keymap
430 %dir %{_datadir}/vim/v*/lang
431 %{_datadir}/vim/v*/lang/README*
432
433 %lang(af) %{_datadir}/vim/v*/lang/af
434 %lang(de) %{_datadir}/vim/v*/lang/de
435 %lang(es) %{_datadir}/vim/v*/lang/es
436 %lang(fr) %{_datadir}/vim/v*/lang/fr
437 %lang(it) %{_datadir}/vim/v*/lang/it
438 %lang(ja) %{_datadir}/vim/v*/lang/ja*
439 %lang(ko) %{_datadir}/vim/v*/lang/ko
440 %lang(pl) %{_datadir}/vim/v*/lang/pl
441 %lang(sk) %{_datadir}/vim/v*/lang/sk
442 %lang(tr) %{_datadir}/vim/v*/lang/tr
443 %lang(uk) %{_datadir}/vim/v*/lang/uk
444 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
445 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW
446
447 %lang(af) %{_datadir}/vim/v*/lang/menu_af_af*
448 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs_cz*
449 %lang(de) %{_datadir}/vim/v*/lang/menu_de_de*
450 %lang(es) %{_datadir}/vim/v*/lang/menu_es_es*
451 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr_fr*
452 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu_hu*
453 %lang(it) %{_datadir}/vim/v*/lang/menu_it_it*
454 %lang(jp) %{_datadir}/vim/v*/lang/menu_ja_jp*
455 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko_kr*
456 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl_nl*
457 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl_pl*
458 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk_sk*
459 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
460 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
461
462 %{_datadir}/vim/v*/macros
463 %{_datadir}/vim/v*/plugin
464 %{_datadir}/vim/v*/syntax
465 %{_datadir}/vim/v*/tutor
466 %{_datadir}/vim/v*/colors
467 %{_datadir}/vim/v*/compiler
468 %{_datadir}/vim/v*/*.vim
469 %{_datadir}/vim/v*/*.ps
470
471 %{_mandir}/man1/vim*
472 %{_mandir}/man1/rvim.*
473
474 %if %{!?_without_athena:1}%{?_without_athena:0}
475 %files -n gvim-athena
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
478 %{_applnkdir}/Development/Editors/gvim-athena.desktop
479 %endif
480
481 %if %{!?_without_motif:1}%{?_without_motif:0}
482 %files -n gvim-motif
483 %defattr(644,root,root,755)
484 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
485 %{_applnkdir}/Development/Editors/gvim-motif.desktop
486 %endif
487
488 %if %{!?_without_gtk:1}%{?_without_gtk:0}
489 %files -n gvim-gtk
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
492 %attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
493 %attr(755,root,root) %{_prefix}/X11R6/bin/rgview
494 %attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
495 %{_applnkdir}/Development/Editors/gvim-gtk.desktop
496 %endif
497
498 %if %{!?_without_gnome:1}%{?_without_gnome:0}
499 %files -n gvim-gnome
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
502 %{_applnkdir}/Development/Editors/gvim-gnome.desktop
503 %endif
This page took 0.075627 seconds and 3 git commands to generate.