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