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