]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- switched to smaller .tar.bz2 source (instead of 4 .tar.gz 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.0at
17 Release:        2
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}.tar.bz2
24 Source1:        ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-lang.tar.gz
25 #Source2:       ftp://ftp.vim.org/pub/editors/vim/unreleased/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 URL:            http://www.vim.org/
37 BuildRequires:  gpm-devel
38 BuildRequires:  ncurses-devel
39 %{!?_without_athena:BuildRequires:      Xaw3d-devel}
40 %{!?_without_gnome:BuildRequires:       esound-devel}
41 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
42 %{!?_without_gtk:BuildRequires: gtk+-devel}
43 %{!?_without_motif:BuildRequires:       motif-devel}
44 %{!?_without_static:BuildRequires:      glibc-static}
45 %{!?_without_static:BuildRequires:      ncurses-static}
46 Requires:       %{name}-rt = %{version}
47 %{?_without_static:Requires:    %{name}-static = %{version}}
48 Obsoletes:      vim-enhanced
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 Text editor similar to Vi. Important improvements: multiple windows,
53 multi-level undo, block highliting, and many other.
54
55 %description -l de
56 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
57 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
58 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
59 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
60 Standard-vi-Programm.
61
62 %description -l fr
63 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
64 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
65 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
66 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
67 blocs et autres caractéristiques au vi de base.
68
69 %description -l pl
70 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
71 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni
72 i wiele innych.
73
74 %description -l tr
75 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
76 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
77
78 %package -n xxd
79 Summary:        Utility to convert files to hexdump or do the reverse
80 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
81 Group:          Applications/Editors/Vim
82 Group(de):      Applikationen/Editors/Vim
83 Group(pl):      Aplikacje/Edytory/Vim
84
85 %description -n xxd
86 xxd creates a hex dump of a given file or standard input. It can also
87 convert a hex dump back to its original binary form. Like uuencode and
88 uudecode it allows the transmission of binary data in a `mail-safe'
89 ASCII representation, but has the advantage of decoding to standard
90 output. Moreover, it can be used to perform binary file patching.
91
92 %description -n xxd -l pl
93 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
94 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
95 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
96 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
97 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
98
99 %package static
100 Summary:        Staticly linked Vim
101 Summary(pl):    Statycznie zlinkowany Vim
102 Group:          Applications/Editors/Vim
103 Group(de):      Applikationen/Editors/Vim
104 Group(pl):      Aplikacje/Edytory/Vim
105 Provides:       vi
106 Obsoletes:      vi
107 Obsoletes:      vim-minimal
108
109 %description static
110 Text editor similar to Vi. This version is build with minimal feature
111 and is installed in /bin as a rescue tool. The installation of this
112 package is STRONGLY recommended.
113
114 %description static -l pl
115 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie
116 i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
117 narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
118 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
119
120 %package rt
121 Summary:        Vim runtime files
122 Summary(pl):    Pliki przydatne edytorowi Vim
123 Group:          Applications/Editors/Vim
124 Group(de):      Applikationen/Editors/Vim
125 Group(pl):      Aplikacje/Edytory/Vim
126 Requires:       mktemp
127 Requires:       which
128 Obsoletes:      vim-common
129
130 %description rt
131 This package contains macros, documentation, syntax configuration and
132 manual pages for vim. If you want to take advantage of vim more
133 powerful features, you should install this package.
134
135 %description rt -l pl
136 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
137 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z
138 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
139
140 %package -n gvim-athena
141 Summary:        Vim for X Window built with Athena
142 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
143 Group:          Applications/Editors/Vim
144 Group(de):      Applikationen/Editors/Vim
145 Group(pl):      Aplikacje/Edytory/Vim
146 Requires:       %{name}-rt = %{version}
147 Requires:       iconv
148 Obsoletes:      vim-X11
149
150 %description -n gvim-athena
151 The classic Unix text editor now also under X Window System! This
152 version is build with Athena Widget Set.
153
154 %description -n gvim-athena -l pl
155 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
156 biblioteki Athena Widget Set.
157
158 %package -n gvim-motif
159 Summary:        Vim for X Window built with Motif
160 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
161 Group:          Applications/Editors/Vim
162 Group(de):      Applikationen/Editors/Vim
163 Group(pl):      Aplikacje/Edytory/Vim
164 Requires:       %{name}-rt = %{version}
165 Requires:       iconv
166 Obsoletes:      vim-X11
167
168 %description -n gvim-motif
169 The classic Unix text editor now also under X Window System! This
170 version is build with Motif.
171
172 %description -n gvim-motif -l pl
173 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
174 biblioteki Motif.
175
176 %package -n gvim-gtk
177 Summary:        Vim for X Window built with gtk
178 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
179 Group:          Applications/Editors/Vim
180 Group(de):      Applikationen/Editors/Vim
181 Group(pl):      Aplikacje/Edytory/Vim
182 Requires:       %{name}-rt = %{version}
183 Requires:       iconv
184 Obsoletes:      vim-X11
185
186 %description -n gvim-gtk
187 The classic Unix text editor now also under X Window System! This
188 version is build with GTK.
189
190 %description -n gvim-gtk -l pl
191 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
192 biblioteki GTK.
193
194 %package -n gvim-gnome
195 Summary:        Vim for X Window built with gnome
196 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
197 Group:          Applications/Editors/Vim
198 Group(de):      Applikationen/Editors/Vim
199 Group(pl):      Aplikacje/Edytory/Vim
200 Requires:       %{name}-rt = %{version}
201 Requires:       iconv
202 Obsoletes:      vim-X11
203
204 %description -n gvim-gnome
205 The classic Unix text editor now also under X Window System! This
206 version is build with GNOME.
207
208 %description -n gvim-gnome -l pl
209 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
210 bibliotek GNOME.
211
212 %prep
213 %setup -q -b1 -n %{name}%(echo %{version} | sed -e "s#\.##g")
214 %patch0 -p1
215 %patch1 -p1
216 %patch2 -p1
217 %patch3 -p1
218 %{?_with_ispell:%patch4 -p1}
219 %patch5 -p1
220
221 %build
222 cd src
223 autoconf
224 %configure \
225         --disable-gui \
226         --without-x \
227         --disable-perlinterp \
228         --disable-pythoninterp \
229         --disable-tclinterp \
230         --disable-rubyinterp \
231         --enable-cscope \
232         --enable-gpm \
233         --with-features=huge \
234         --enable-multibyte \
235         --with-tlib=ncurses \
236         --enable-nls
237
238 %{__make} vim
239 mv -f vim vim.ncurses
240
241 %{__make} xxd/xxd
242
243 %if %{!?_without_static:1}%{?_without_static:0}
244 %{__make} distclean
245 LDFLAGS="%{rpmldflags} -static"
246 %configure \
247         --disable-gui \
248         --without-x \
249         --disable-perlinterp \
250         --disable-pythoninterp \
251         --disable-tclinterp \
252         --disable-cscope \
253         --disable-gpm \
254         --disable-multibyte \
255         --with-features=small \
256         --with-tlib=tinfo \
257         --disable-nls
258
259 %{__make} vim
260 mv -f vim vim.static
261 %endif
262
263 %if %{!?_without_athena:1}%{?_without_athena:0}
264 %{__make} distclean
265 LDFLAGS="%{rpmldflags}"
266 %configure \
267         --with-features=huge \
268         --enable-gui=athena \
269         --with-x \
270         --disable-perlinterp \
271         --disable-pythoninterp \
272         --disable-tclinterp \
273         --disable-rubyinterp \
274         --enable-cscope \
275         --enable-fontset \
276         --disable-gpm \
277         --without-gnome \
278         --enable-nls
279 %{__make} vim
280 mv -f vim gvim.athena
281 %endif
282
283 %if %{!?_without_motif:1}%{?_without_motif:0}
284 %{__make} distclean
285 %configure \
286         --with-features=huge \
287         --enable-gui=motif \
288         --with-x \
289         --disable-perlinterp \
290         --disable-pythoninterp \
291         --disable-tclinterp \
292         --disable-rubyinterp \
293         --enable-multibyte \
294         --enable-cscope \
295         --enable-fontset \
296         --disable-gpm \
297         --without-gnome \
298         --enable-nls
299 %{__make} vim
300 mv -f vim gvim.motif
301 %endif
302
303 %if %{!?_without_gtk:1}%{?_without_gtk:0}
304 %{__make} distclean
305 %configure \
306         --with-features=huge \
307         --enable-gui=gtk \
308         --with-x \
309         --disable-perlinterp \
310         --disable-pythoninterp \
311         --disable-tclinterp \
312         --disable-rubyinterp \
313         --disable-gpm \
314         --enable-cscope \
315         --enable-fontset \
316         --enable-nls
317 %{__make} vim
318 mv -f vim gvim.gtk
319 %endif
320
321 %if %{!?_without_gnome:1}%{?_without_gnome:0}
322 %{__make} distclean
323 %configure \
324         --with-features=huge \
325         --enable-gui=gnome \
326         --with-x \
327         --disable-perlinterp \
328         --disable-pythoninterp \
329         --disable-tclinterp \
330         --disable-rubyinterp \
331         --disable-gpm \
332         --enable-cscope \
333         --enable-fontset \
334         --enable-nls
335 %{__make} vim
336 mv -f vim gvim.gnome
337 %endif
338
339 %install
340 rm -rf $RPM_BUILD_ROOT
341 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
342         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
343         $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
344
345 %{__make} install DESTDIR=$RPM_BUILD_ROOT
346 rm $RPM_BUILD_ROOT%{_bindir}/*
347
348 %{!?_without_static:install src/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim}
349 %{?_without_static:install src/vim.ncurses      $RPM_BUILD_ROOT/bin/vi}
350 %{!?_without_static:install src/vim.static      $RPM_BUILD_ROOT/bin/vi}
351 %{?_without_static:ln -sf /bin/vi               $RPM_BUILD_ROOT%{_bindir}/vim}
352 install src/xxd/xxd                             $RPM_BUILD_ROOT%{_bindir}/xxd
353 install src/vimtutor                            $RPM_BUILD_ROOT%{_bindir}/vimtutor
354
355 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
356
357 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
358 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
359
360 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
361
362 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
363 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
364 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
365 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
366 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
367
368 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
369 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
370
371 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
372 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
373 ln -sf vi  $RPM_BUILD_ROOT/bin/view
374 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
375
376 %{!?_without_athena:install src/gvim.athena     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
377 %{!?_without_motif: install src/gvim.motif      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
378 %{!?_without_gtk:   install src/gvim.gtk        $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
379 %{!?_without_gnome: install src/gvim.gnome      $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
380
381 %{!?_without_gtk:ln -sf gvim.gtk                $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
382 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
383 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
384 %{!?_without_gtk:ln -sf gvim                    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
385
386 %{!?_without_athena:install %{SOURCE3}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
387 %{!?_without_motif: install %{SOURCE4}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
388 %{!?_without_gtk:   install %{SOURCE5}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
389 %{!?_without_gnome: install %{SOURCE6}          $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
390
391 %clean
392 rm -rf $RPM_BUILD_ROOT
393
394 %files
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_bindir}/vim
397 %attr(755,root,root) %{_bindir}/rvim
398
399 %files -n xxd
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/xxd
402 %{_mandir}/man1/xxd.1*
403
404 %files static
405 %defattr(644,root,root,755)
406 %attr(755,root,root) /bin/*
407
408 %{_mandir}/man1/vi.1*
409 %{_mandir}/man1/ex.1*
410 %{_mandir}/man1/view.1*
411 %{_mandir}/man1/rview.1*
412
413 %files rt
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_bindir}/vimtutor
416 %dir %{_sysconfdir}/vim
417 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
418 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
419
420 %dir %{_datadir}/vim
421 %dir %{_datadir}/vim/v*
422 %{_datadir}/vim/v*/doc
423 %{_datadir}/vim/v*/ftplugin
424 %{_datadir}/vim/v*/indent
425 %{_datadir}/vim/v*/keymap
426 %dir %{_datadir}/vim/v*/lang
427 %{_datadir}/vim/v*/lang/README*
428 %lang(af) %{_datadir}/vim/v*/lang/*af*
429 %lang(cs) %{_datadir}/vim/v*/lang/*cs*
430 %lang(de) %{_datadir}/vim/v*/lang/*de*
431 %lang(es) %{_datadir}/vim/v*/lang/es
432 %lang(es) %{_datadir}/vim/v*/lang/*es_es*
433 %lang(es) %{_datadir}/vim/v*/lang/*spanish*
434 %lang(fr) %{_datadir}/vim/v*/lang/*fr*
435 %lang(hu) %{_datadir}/vim/v*/lang/*hu*
436 %lang(nl) %{_datadir}/vim/v*/lang/*nl*
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(zh_TW) %{_datadir}/vim/v*/lang/*zh*
442 %{_datadir}/vim/v*/macros
443 %{_datadir}/vim/v*/plugin
444 %{_datadir}/vim/v*/syntax
445 %{_datadir}/vim/v*/tutor
446 %{_datadir}/vim/v*/colors
447 %{_datadir}/vim/v*/compiler
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.183341 seconds and 3 git commands to generate.