]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- updated to 1.20 (20051121)
[packages/vim.git] / vim.spec
1 #
2 # Conditional build:
3 %bcond_without  static          # don't build static version
4 %bcond_without  athena          # don't build Athena Widgets-based gvim
5 %bcond_without  motif           # don't build Motif-based gvim
6 %bcond_without  gtk             # don't build GTK+-based gvim support
7 %bcond_without  gnome           # don't build GNOME-based gvim support
8 %bcond_with     kde             # build kvim
9 %bcond_without  perl            # without Perl interp
10 %bcond_without  python          # without Python interp
11 %bcond_with     ruby            # with Ruby interp
12 %bcond_with     tcl             # with Tcl interp
13 %bcond_with     bonobo          # with bonobo component (breaks other things)
14 %bcond_without  selinux         # without selinux support
15 %bcond_without  ispell          # don't build vim.ispell
16 %bcond_without  home_etc        # without home_etc support
17 #
18 %define         _ver            6.4
19 %define         _patchlevel     001
20
21 Summary:        Vi IMproved - a Vi clone
22 Summary(de):    VIsual editor iMproved
23 Summary(es):    Editor visual incrementado
24 Summary(fr):    Editeur VIM : VIsual editor iMproved
25 Summary(pl):    Vi IMproved - klon edytora Vi
26 Summary(pt_BR): Editor visual incrementado
27 Summary(ru):    Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
28 Summary(tr):    Geliþmiþ bir vi sürümü
29 Summary(uk):    Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
30 Name:           vim
31 Version:        %{_ver}.%{_patchlevel}
32 Release:        2
33 Epoch:          4
34 License:        Charityware
35 Group:          Applications/Editors/Vim
36 Source0:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{_ver}.tar.bz2
37 # Source0-md5:  774c14d93ce58674b3b2c880edd12d77
38 Source1:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
39 # Source1-md5:  3cca6128fe5439e89d3828b5e708bddb
40 Source2:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-extra.tar.gz
41 # Source2-md5:  5f4489776cafcb3588223f79eb26e287
42 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
43 # Source4-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
44 Source5:        http://freenux.org/kvim/kvim-runtime-6.2.14.tar.bz2
45 # Source5-md5:  6f633e79bcf5f35918bb0bff6850a971
46 Source6:        http://skawina.eu.org/mikolaj/usr_doc_pl.zip
47 # Source6-md5:  ff96284b1c913d55cf0877839b34d490
48 Source10:       g%{name}-athena.desktop
49 Source11:       g%{name}-motif.desktop
50 Source12:       g%{name}-gtk.desktop
51 Source13:       g%{name}-gnome.desktop
52 Source14:       %{name}.desktop
53 # http://www.vim.org/scripts/script.php?script_id=1120
54 Source15:       php.vim
55 # http://www.vim.org/scripts/script.php?script_id=415 (1.13)
56 Source16:       zenburn.vim
57 Source17:       spec.vim
58 Patch0:         %{name}-sysconfdir.patch
59 Patch1:         %{name}-visual.patch
60 Patch2:         %{name}-paths.patch
61 Patch3:         %{name}-ispell.patch
62 Patch4:         %{name}-ispell-axp.patch
63 Patch5:         %{name}-%{name}rc.patch
64 Patch6:         %{name}-no_libelf.patch
65 Patch7:         %{name}-egrep.patch
66 Patch8:         k%{name}-desktop.patch
67 Patch9:         %{name}-awk.patch
68 Patch10:        %{name}-pl.po.patch
69 Patch11:        %{name}-bonobo.patch
70 Patch12:        %{name}-home_etc.patch
71 Patch13:        %{name}-selinux.patch
72 Patch16:        %{name}-filetype_vim-perl_tests.patch
73 Patch18:        %{name}-po-syntax.patch
74 Patch19:        %{name}-modprobe.patch
75 Patch20:        %{name}-CAN-2005-0069.patch
76 Patch21:        %{name}-gtkfilechooser.patch
77 Patch22:        %{name}-gtkfilechooser-bonobo.patch
78 Patch23:        %{name}-doubleparenthesis.patch
79 Patch24:        %{name}-lib64.patch
80 Patch25:        %{name}-syntax-fstab.patch
81 Patch26:        010_all_vim-6.3-vixie.patch
82 Patch27:        013_all_vim-7.0-cron-vars-79981.patch
83 Patch28:        014_all_vim-6.3-dns-syntax.patch
84 Patch29:        015_all_vim-6.3-screen.linux-is-dark-83416.patch
85 Patch30:        020_all_vim-7.0-fstab-tmpfs-size.patch
86 Patch31:        021_all_vim-7.0-fstab-bogus-errors.patch
87 Patch32:        024_all_vim-6.3-bash-83565.patch
88 Patch33:        027_all_vim-7.0-automake-substitutions-93378.patch
89 Patch99:        %{name}-bonobo-20050909.patch
90 Patch101:       ftp://ftp.vim.org/pub/editors/vim/patches/6.4/6.4.001
91 Patch999:       http://freenux.org/vim/%{name}2kvim-6.3b.diff.bz2
92 URL:            http://www.vim.org/
93 %{?with_athena:BuildRequires:   XFree86-devel}
94 BuildRequires:  acl-devel
95 BuildRequires:  autoconf
96 BuildRequires:  gettext-devel
97 BuildRequires:  gpm-devel
98 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.6.0}
99 %if %{with kde}
100 BuildRequires:  kdelibs-devel >= 9:3.0.0
101 %else
102 Obsoletes:      kvim
103 %endif
104 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
105 %{?with_selinux:BuildRequires:  libselinux-devel}
106 %{?with_motif:BuildRequires:    openmotif-devel}
107 BuildRequires:  ncurses-devel
108 %{?with_perl:BuildRequires:     perl-devel}
109 %{?with_python:BuildRequires:   python-devel}
110 %{?with_ruby:BuildRequires:     ruby}
111 %{?with_tcl:BuildRequires:      tcl-devel}
112 %if %{with bonobo}
113 BuildRequires:  libgnomeui-devel >= 2.2.0.1
114 BuildRequires:  ORBit2-devel
115 BuildRequires:  libbonoboui-devel >= 2.2.0
116 BuildRequires:  nautilus-devel >= 2.2.0
117 %endif
118 BuildRequires:  rpmbuild(macros) >= 1.210
119 %if %{with static}
120 BuildRequires:  acl-static
121 BuildRequires:  attr-static
122 BuildRequires:  glibc-static
123 %{?with_selinux:BuildRequires:  libselinux-static}
124 BuildRequires:  ncurses-static
125 %else
126 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
127 Obsoletes:      %{name}-static
128 Obsoletes:      elvis-static
129 Obsoletes:      nvi
130 Obsoletes:      vi
131 Obsoletes:      vim-minimal
132 %endif
133 BuildRequires:  unzip
134 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
135 Provides:       vi
136 Provides:       vi-editor
137 Obsoletes:      vim-enhanced
138 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
139
140 # that's example script
141 %define         _noautoreq      '/bin/csh'
142
143 %description
144 Text editor similar to Vi. Important improvements: multiple windows,
145 multi-level undo, block highliting, folding, and many other.
146
147 %description -l cs
148 ViM je nový a vylep¹ený editor vycházející z klasického editoru vi. Vi
149 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
150 populární. ViM je obohacený funkcemi jako: podpora více oken,
151 víceúrovòové undo, zvýrazòování blokù a øadu dal¹ích u¾iteèných
152 funkcí.
153
154 %description -l de
155 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
156 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
157 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
158 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
159 Standard-vi-Programm.
160
161 %description -l es
162 El editor Visual Mejorado es una versión actualizada y con nuevas
163 características adicionales del mundialmente famoso 'vi' que acompaña
164 prácticamente todos los sistemas UN*X. Posibilita trabajar con
165 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
166 otras muchas características del 'vi'.
167
168 %description -l fr
169 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
170 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
171 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
172 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
173 blocs et autres caractéristiques au vi de base.
174
175 %description -l id
176 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
177 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
178 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
179 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
180 windows, multi-level undo, block highlighting, dll.
181
182 %description -l is
183 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
184 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
185 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
186 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
187 fleira.
188
189 %description -l it
190 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
191 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
192 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
193 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
194 dei blocchi e altro.
195
196 %description -l pl
197 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
198 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
199 folding i wiele innych.
200
201 %description -l ja
202 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
203 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
204 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
205 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
206 de blocos e mais.
207
208 %description -l pt_BR
209 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
210 características do mundialmente famoso 'vi' que acompanha praticamente
211 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
212 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
213 outras características do 'vi'.
214
215 %description -l ru
216 VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
217 ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
218 UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
219 ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
220
221 %description -l sk
222 VIM (VIsual editor iMproved) je nov¹ia a vylep¹ená verzia editoru vi.
223 Vi bol prvým skutoène obrazovkovo orientovaným editorom pre UNIX a
224 stále je veµmi populárny. VIM má oproti vi vylep¹enia ako: prácu s
225 viacerými oknami, viacnásobné undo, zvýrazòovanie blokov textu a iné.
226
227 %description -l sv
228 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
229 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
230 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
231 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
232 ändå.
233
234 %description -l tr
235 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
236 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
237
238 %description -l uk
239 VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
240 ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
241 æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
242 ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
243
244 %package -n xxd
245 Summary:        Utility to convert files to hexdump or do the reverse
246 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
247 Group:          Applications/Editors/Vim
248
249 %description -n xxd
250 xxd creates a hex dump of a given file or standard input. It can also
251 convert a hex dump back to its original binary form. Like uuencode and
252 uudecode it allows the transmission of binary data in a `mail-safe'
253 ASCII representation, but has the advantage of decoding to standard
254 output. Moreover, it can be used to perform binary file patching.
255
256 %description -n xxd -l pl
257 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
258 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
259 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
260 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
261 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
262
263 %package static
264 Summary:        Statically linked Vim
265 Summary(pl):    Statycznie skonsolidowany Vim
266 Group:          Applications/Editors/Vim
267 Provides:       vi
268 Provides:       vi-editor
269 Obsoletes:      elvis-static
270 Obsoletes:      nvi
271 Obsoletes:      vim-minimal
272
273 %description static
274 Text editor similar to Vi. This version is built with minimal feature
275 and is installed in /bin as a rescue tool. The installation of this
276 package is STRONGLY recommended.
277
278 %description static -l pl
279 Edytor tekstu podobny do Vi. Ta wersja zosta³a skonsolidowana
280 statycznie i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin
281 jako narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
282 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
283
284 %description static -l ru
285 ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
286 ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
287 ÓÉÓÔÅÍÁ.
288
289 %description static -l uk
290 ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
291 ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
292
293 %package ispell
294 Summary:        Vim with ispell support
295 Summary(pl):    Vim z wsparciem dla ispella
296 Group:          Applications/Editors/Vim
297 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
298 Provides:       vi-editor
299 Conflicts:      ispell < 3.2.06
300 Conflicts:      ispell-pl < 20021127-2
301
302 %description ispell
303 Text editor similar to Vi. This version is built with ispell support.
304
305 %description ispell -l pl
306 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana ze
307 wsparciem dla ispella.
308
309 %package rt
310 Summary:        Vim runtime files
311 Summary(cs):    Soubory nezbytné pro libovolný editor ViM
312 Summary(da):    Fælles filer som er nødvendige for enhver version af VIM editoren
313 Summary(de):    Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
314 Summary(es):    Ficheros comunes a todas las versiones de VIM
315 Summary(fr):    Fichiers communs indispensables pour toute version de l'éditeur VIM
316 Summary(id):    File umum yang dibutuhkan oleh semua versi editor VIM
317 Summary(is):    Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
318 Summary(it):    File comuni necessari per tutte le versioni dell'editor VIM
319 Summary(ja):    ¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î VIM ¥¨¥Ç¥£¥¿¤ÇɬÍפȤµ¤ì¤ë¶¦ÄÌ¥Õ¥¡¥¤¥ë
320 Summary(nb):    Felles filer som er nødvendige for enhver versjon av VIM editoren
321 Summary(pl):    Pliki przydatne edytorowi Vim
322 Summary(pt):    Os ficheiros comuns necessários para qualquer versão do editor VIM
323 Summary(ru):    æÁÊÌÙ, ÔÒÅÂÕÅÍÙÅ ÄÌÑ ÌÀÂÏÊ ×ÅÒÓÉÉ ÒÅÄÁËÔÏÒÁ vim
324 Summary(sk):    Spoloèné súbory potrebné pre v¹etky verzie editoru VIM
325 Summary(sl):    Skupne datoteke, potrebne s katerokoli razlièico urejevalnika VIM
326 Summary(sv):    De gemensamma filerna som behövs av alla versioner av redigeraren VIM
327 Summary(uk):    æÁÊÌÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ÂÕÄØ-ÑËϧ ×ÅÒÓ¦§ ÒÅÄÁËÔÏÒÕ vim
328 Summary(zh_CN): Èκΰ汾µÄ VIM ±à¼­Æ÷ËùÐèµÄ¹«ÓÃÎļþ¡£
329 Group:          Applications/Editors/Vim
330 # mktemp and which are for vimtutor
331 Requires:       mktemp
332 Requires:       which
333 Requires:       vi-editor
334 Obsoletes:      vim-common
335
336 %description rt
337 This package contains macros, documentation, syntax configuration and
338 manual pages for Vim. If you want to take advantage of Vim more
339 powerful features, you should install this package.
340
341 %description rt -l cs
342 Tento balíèek obsahuje spoleèné soubory pro v¹echny dal¹í balíèky s
343 vim.
344
345 %description rt -l da
346 The vim-rt package contains files which every VIM binary will need in
347 order to run.
348
349 %description rt -l de
350 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
351 Ausführung benötigt.
352
353 %description rt -l fr
354 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
355 VIM a besoin pour fonctionner.
356
357 %description rt -l id
358 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
359 berjalan.
360
361 %description rt -l is
362 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
363 til að keyra.
364
365 %description rt -l it
366 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
367 per poter funzionare.
368
369 %description rt -l pl
370 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
371 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
372 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
373
374 %description rt -l pt
375 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
376 irão necessitar para correr.
377
378 %description rt -l ru
379 ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
380 ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
381
382 %description rt -l sk
383 Balík vim-rt obsahuje súbory, ktoré bude potrebova» pre správnu
384 funkciu ka¾dá verzia editoru VIM.
385
386 %description rt -l sv
387 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
388 köra.
389
390 %description rt -l uk
391 ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
392 ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
393
394 %package -n gvim-athena
395 Summary:        Vim for X Window built with Athena
396 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
397 Group:          Applications/Editors/Vim
398 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
399 Requires:       iconv
400 Provides:       vi-editor
401 Obsoletes:      vim-X11
402
403 %description -n gvim-athena
404 The classic Unix text editor now also under X Window System! This
405 version is built with Athena Widget Set.
406
407 %description -n gvim-athena -l pl
408 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
409 biblioteki Athena Widget Set.
410
411 %description -n gvim-athena -l ru
412 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
413 Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
414 System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
415
416 %description -n gvim-athena -l uk
417 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
418 Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
419 Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
420
421 %package -n gvim-motif
422 Summary:        Vim for X Window built with Motif
423 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
424 Group:          Applications/Editors/Vim
425 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
426 Requires:       iconv
427 Provides:       vi-editor
428 Obsoletes:      vim-X11
429
430 %description -n gvim-motif
431 The classic Unix text editor now also under X Window System! This
432 version is built with Motif.
433
434 %description -n gvim-motif -l pl
435 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
436 biblioteki Motif.
437
438 %description -n gvim-motif -l ru
439 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
440 Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
441 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
442
443 %description -n gvim-motif -l uk
444 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
445 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
446 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
447
448 %package -n kvim
449 Summary:        Vim for X Window built with KDE
450 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki KDE
451 Group:          Applications/Editors/Vim
452 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
453 Requires:       iconv
454 Provides:       vi-editor
455 Obsoletes:      vim-X11
456
457 %description -n kvim
458 The classic Unix text editor now also under X Window System! This
459 version is built with KDE.
460
461 %description -n kvim -l pl
462 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
463 biblioteki KDE.
464
465 %package -n gvim-gtk
466 Summary:        Vim for X Window built with gtk
467 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
468 Group:          Applications/Editors/Vim
469 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
470 Requires:       iconv
471 Provides:       vi-editor
472 Obsoletes:      vim-X11
473
474 %description -n gvim-gtk
475 The classic Unix text editor now also under X Window System! This
476 version is built with GTK.
477
478 %description -n gvim-gtk -l pl
479 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
480 biblioteki GTK.
481
482 %description -n gvim-gtk -l ru
483 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
484 GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
485 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
486 'gvim'...
487
488 %description -n gvim-gtk -l uk
489 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
490 ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
491 ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
492
493 %package -n gvim-gnome
494 Summary:        Vim for X Window built with GNOME
495 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
496 Group:          Applications/Editors/Vim
497 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
498 Requires:       iconv
499 Provides:       vi-editor
500 Obsoletes:      vim-X11
501
502 %description -n gvim-gnome
503 The classic Unix text editor now also under X Window System! This
504 version is build with GNOME.
505
506 %description -n gvim-gnome -l pl
507 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
508 bibliotek GNOME.
509
510 %description -n gvim-gnome -l ru
511 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
512 GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
513 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
514
515 %description -n gvim-gnome -l uk
516 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
517 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
518 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
519
520 %package -n gvim-bonobo
521 Summary:        Vim for X Window built as bonobo component
522 Summary(pl):    Vim dla X Window zbudowany jako element bonobo
523 Group:          Applications/Editors/Vim
524 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
525 Requires:       iconv
526 Provides:       vi-editor
527 Obsoletes:      vim-X11
528
529 %description -n gvim-bonobo
530 The classic Unix text editor now also under X Window System! This
531 version is build as bonobo component.
532
533 %description -n gvim-bonobo -l pl
534 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window, zbudowana jako
535 element bonobo.
536
537 %prep
538 %setup -q -b1 -b2 -a5 -n %{name}%(echo %{_ver} | tr -d .)
539
540 # official patches
541 %patch101 -p0
542
543 # kvim
544 %if %{with kde}
545 # FIXME kvim
546 %patch999 -p1
547 %patch8 -p1
548 %endif
549
550 %patch0 -p1
551 %{?with_bonobo:%patch99 -p1}
552 %patch1 -p1
553 %patch2 -p1
554 %patch3 -p1
555 %ifarch alpha
556 %patch4 -p1
557 %endif
558 %patch5 -p1
559 %patch6 -p1
560 %patch7 -p1
561 %patch9 -p1
562 %patch10 -p1
563 %{?with_bonobo:%patch11 -p1}
564 %{?with_home_etc:%patch12 -p1}
565 %{?with_selinux:%patch13 -p1}
566 %patch16 -p1
567 %patch18 -p1
568 %patch19 -p0 -b .modprobe
569 %patch20 -p1
570 %{!?with_bonobo:%patch21 -p0}
571 %{?with_bonobo:%patch22 -p1}
572 %patch23 -p1
573 %if "%{_lib}" == "lib64"
574 %patch24 -p1
575 %endif
576 %patch25 -p1
577 %patch26 -p0
578 %patch27 -p1
579 %patch28 -p1
580 %patch29 -p0
581 %patch30 -p1
582 %patch31 -p1
583 %patch32 -p0
584 %patch33 -p0
585
586 install %{SOURCE15} runtime/indent
587 install %{SOURCE16} runtime/colors
588 install %{SOURCE17} runtime/syntax
589
590 %build
591 cd src
592 %{__autoconf}
593 # needed to prevent deconfiguring
594 cp -f configure auto
595
596 install -d bin
597
598 %if %{with bonobo}
599 %{__make} distclean
600 %configure \
601         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
602         --with-features=huge \
603         --enable-gui=gnome2 \
604         --enable-bonobo \
605         --enable-gtk2-check \
606         --enable-gnome-check \
607         --with-x \
608         %{!?with_perl:--disable-perlinterp} \
609         %{?with_perl:--enable-perlinterp} \
610         %{!?with_python:--disable-pythoninterp} \
611         %{?with_python:--enable-pythoninterp} \
612         %{!?with_ruby:--disable-rubyinterp} \
613         %{?with_ruby:--enable-rubyinterp} \
614         %{!?with_tcl:--disable-tclinterp} \
615         %{?with_tcl:--enable-tclinterp} \
616         --disable-gpm \
617         --enable-cscope \
618         --enable-nls \
619         --with-modifiedby="PLD Linux Distribution" \
620         --with-compiledby="PLD Linux Distribution"
621
622 %{__make} vim-component vim-factory Vim_Control.server
623 mv vim-component vim-factory Vim_Control.server bin/
624 %endif
625
626 %if %{with static}
627 %{__make} distclean
628 LDFLAGS="%{rpmldflags} -static"
629 %configure \
630         --disable-gui \
631         --without-x \
632         --disable-perlinterp \
633         --disable-pythoninterp \
634         --disable-rubyinterp \
635         --disable-tclinterp \
636         --disable-cscope \
637         --disable-gpm \
638         --disable-multibyte \
639         %{?with_bonobo:--disable-bonobo} \
640         --with-features=small \
641         --with-tlib=tinfo \
642         --disable-nls \
643         --with-modifiedby="PLD Linux Distribution" \
644         --with-compiledby="PLD Linux Distribution"
645
646 %{__make} vim \
647         SPELL_OBJ=
648 mv -f vim bin/vim.static
649 LDFLAGS="%{rpmldflags}"
650 %endif
651
652 %{__make} distclean
653 %configure \
654         --disable-gui \
655         --without-x \
656         %{!?with_perl:--disable-perlinterp} \
657         %{?with_perl:--enable-perlinterp} \
658         %{!?with_python:--disable-pythoninterp} \
659         %{?with_python:--enable-pythoninterp} \
660         %{!?with_ruby:--disable-rubyinterp} \
661         %{?with_ruby:--enable-rubyinterp} \
662         %{!?with_tcl:--disable-tclinterp} \
663         %{?with_tcl:--enable-tclinterp} \
664         %{?with_bonobo:--disable-bonobo} \
665         --enable-cscope \
666         --enable-gpm \
667         --with-features=huge \
668         --enable-multibyte \
669         --with-tlib=ncurses \
670         --enable-nls \
671         --with-modifiedby="PLD Linux Distribution" \
672         --with-compiledby="PLD Linux Distribution"
673
674 %{__make} vim \
675         SPELL_OBJ=
676 mv -f vim bin/vim.ncurses
677 %if %{with ispell}
678 %{__make} distclean
679 %configure \
680         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
681         --disable-gui \
682         --without-x \
683         %{!?with_perl:--disable-perlinterp} \
684         %{?with_perl:--enable-perlinterp} \
685         %{!?with_python:--disable-pythoninterp} \
686         %{?with_python:--enable-pythoninterp} \
687         %{!?with_ruby:--disable-rubyinterp} \
688         %{?with_ruby:--enable-rubyinterp} \
689         %{!?with_tcl:--disable-tclinterp} \
690         %{?with_tcl:--enable-tclinterp} \
691         %{?with_bonobo:--disable-bonobo} \
692         --enable-cscope \
693         --enable-gpm \
694         --with-features=huge \
695         --enable-multibyte \
696         --with-tlib=ncurses \
697         --enable-nls \
698         --with-modifiedby="PLD Linux Distribution" \
699         --with-compiledby="PLD Linux Distribution"
700
701 %{__make} vim
702 mv -f vim bin/vim.ispell
703 %endif
704 %if %{with kde}
705 %{__make} distclean
706 %configure \
707         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
708         --with-features=huge \
709         --enable-gui=kde \
710         --with-x \
711         %{!?with_perl:--disable-perlinterp} \
712         %{?with_perl:--enable-perlinterp} \
713         %{!?with_python:--disable-pythoninterp} \
714         %{?with_python:--enable-pythoninterp} \
715         %{!?with_ruby:--disable-rubyinterp} \
716         %{?with_ruby:--enable-rubyinterp} \
717         %{!?with_tcl:--disable-tclinterp} \
718         %{?with_tcl:--enable-tclinterp} \
719         %{?with_bonobo:--disable-bonobo} \
720         --enable-cscope \
721         --with-qt-dir=%{_prefix} \
722         --with-qt-includes=%{_includedir}/qt \
723         --with-qt-libs=%{_libdir} \
724         --enable-fontset \
725         --disable-gpm \
726         --without-gnome \
727         --enable-nls \
728         --with-modifiedby="PLD Linux Distribution" \
729         --enable-kde-toolbar \
730         --with-compiledby="PLD Linux Distribution"
731
732 %{__make} -j1 vim
733 mv -f vim bin/kvim
734 %endif
735
736 %if %{with athena}
737 %{__make} distclean
738 %configure \
739         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
740         --with-features=huge \
741         --enable-gui=athena \
742         --with-x \
743         %{!?with_perl:--disable-perlinterp} \
744         %{?with_perl:--enable-perlinterp} \
745         %{!?with_python:--disable-pythoninterp} \
746         %{?with_python:--enable-pythoninterp} \
747         %{!?with_ruby:--disable-rubyinterp} \
748         %{?with_ruby:--enable-rubyinterp} \
749         %{!?with_tcl:--disable-tclinterp} \
750         %{?with_tcl:--enable-tclinterp} \
751         %{?with_bonobo:--disable-bonobo} \
752         --enable-cscope \
753         --enable-fontset \
754         --disable-gpm \
755         --without-gnome \
756         --enable-nls \
757         --with-modifiedby="PLD Linux Distribution" \
758         --with-compiledby="PLD Linux Distribution"
759
760 %{__make} vim
761 mv -f vim bin/gvim.athena
762 %endif
763
764
765 %if %{with motif}
766 %{__make} distclean
767 %configure \
768         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
769         --with-features=huge \
770         --enable-gui=motif \
771         --with-x \
772         %{!?with_perl:--disable-perlinterp} \
773         %{?with_perl:--enable-perlinterp} \
774         %{!?with_python:--disable-pythoninterp} \
775         %{?with_python:--enable-pythoninterp} \
776         %{!?with_ruby:--disable-rubyinterp} \
777         %{?with_ruby:--enable-rubyinterp} \
778         %{!?with_tcl:--disable-tclinterp} \
779         %{?with_tcl:--enable-tclinterp} \
780         %{?with_bonobo:--disable-bonobo} \
781         --enable-multibyte \
782         --enable-cscope \
783         --enable-fontset \
784         --disable-gpm \
785         --without-gnome \
786         --enable-nls \
787         --with-modifiedby="PLD Linux Distribution" \
788         --with-compiledby="PLD Linux Distribution"
789
790 %{__make} vim
791 mv -f vim bin/gvim.motif
792 %endif
793
794 %if %{with gtk}
795 %{__make} distclean
796 %configure \
797         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
798         --with-features=huge \
799         --enable-gui=gtk2 \
800         --enable-gtk2-check \
801         --with-x \
802         %{!?with_perl:--disable-perlinterp} \
803         %{?with_perl:--enable-perlinterp} \
804         %{!?with_python:--disable-pythoninterp} \
805         %{?with_python:--enable-pythoninterp} \
806         %{!?with_ruby:--disable-rubyinterp} \
807         %{?with_ruby:--enable-rubyinterp} \
808         %{!?with_tcl:--disable-tclinterp} \
809         %{?with_tcl:--enable-tclinterp} \
810         %{?with_bonobo:--disable-bonobo} \
811         --disable-gpm \
812         --enable-cscope \
813         --enable-nls \
814         --with-modifiedby="PLD Linux Distribution" \
815         --with-compiledby="PLD Linux Distribution"
816
817 %{__make} vim
818 mv -f vim bin/gvim.gtk
819 %endif
820
821 %if %{with gnome}
822 %{__make} distclean
823 %configure \
824         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
825         --with-features=huge \
826         --enable-gui=gnome2 \
827         %{?with_bonobo:--disable-bonobo} \
828         --enable-gtk2-check \
829         --enable-gnome-check \
830         --with-x \
831         %{!?with_perl:--disable-perlinterp} \
832         %{?with_perl:--enable-perlinterp} \
833         %{!?with_python:--disable-pythoninterp} \
834         %{?with_python:--enable-pythoninterp} \
835         %{!?with_ruby:--disable-rubyinterp} \
836         %{?with_ruby:--enable-rubyinterp} \
837         %{!?with_tcl:--disable-tclinterp} \
838         %{?with_tcl:--enable-tclinterp} \
839         --disable-gpm \
840         --enable-cscope \
841         --enable-nls \
842         --with-modifiedby="PLD Linux Distribution" \
843         --with-compiledby="PLD Linux Distribution"
844
845 %{__make} vim
846 mv -f vim bin/gvim.gnome
847 %endif
848
849
850 %{__make} xxd/xxd languages
851
852 %install
853 rm -rf $RPM_BUILD_ROOT
854 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
855         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
856         $RPM_BUILD_ROOT%{_desktopdir}
857
858 %{__make} install \
859         DESTDIR=$RPM_BUILD_ROOT
860
861 rm -f $RPM_BUILD_ROOT%{_bindir}/*
862
863 %if %{with static}
864 install src/bin/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim
865 install src/bin/vim.static      $RPM_BUILD_ROOT/bin/vi
866 %else
867 install src/bin/vim.ncurses     $RPM_BUILD_ROOT/bin/vi
868 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
869 %endif
870 %if %{with ispell}
871 install src/bin/vim.ispell      $RPM_BUILD_ROOT%{_bindir}/vim.ispell
872 %endif
873 install src/xxd/xxd     $RPM_BUILD_ROOT%{_bindir}/xxd
874 install src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
875
876 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
877
878 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
879 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
880
881 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
882
883 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
884 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
885 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
886 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
887 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
888
889 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
890 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
891
892 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
893 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
894 ln -sf vi  $RPM_BUILD_ROOT/bin/view
895 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
896
897 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
898
899 %if %{with athena}
900 install src/bin/gvim.athena     $RPM_BUILD_ROOT%{_bindir}/gvim.athena
901 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
902 %endif
903 %if %{with motif}
904 install src/bin/gvim.motif      $RPM_BUILD_ROOT%{_bindir}/gvim.motif
905 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
906 %endif
907 %if %{with gnome}
908 install src/bin/gvim.gnome      $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
909 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
910 %endif
911 %if %{with gtk}
912 install src/bin/gvim.gtk        $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
913 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
914 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
915 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
916 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
917 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
918 %endif
919
920 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
921 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
922 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
923 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
924
925 %if %{with kde}
926 install src/bin/kvim $RPM_BUILD_ROOT%{_bindir}/kvim
927 install -d $RPM_BUILD_ROOT%{_desktopdir}/kde
928 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22}/actions
929 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps
930 install runtime/hi16-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/actions
931 install runtime/hi22-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/actions
932 install runtime/kvim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/kvim.png
933 install runtime/kvim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/kvim.png
934 install runtime/kvim64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/kvim.png
935 install runtime/KVim.desktop $RPM_BUILD_ROOT%{_desktopdir}/kde
936 install -d $RPM_BUILD_ROOT%{_datadir}/apps/kvim
937 install runtime/kde-tips $RPM_BUILD_ROOT%{_datadir}/apps/kvim/tips
938 %endif
939
940 # Bonobo
941 %if %{with bonobo}
942 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
943 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
944 install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
945 %endif
946
947 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
948 unzip -d $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE6}
949
950 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,syntax}}
951 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
952
953 %clean
954 rm -rf $RPM_BUILD_ROOT
955
956 %post
957 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
958
959 %postun
960 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
961
962 %post -n gvim-athena
963 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
964
965 %postun -n gvim-athena
966 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
967
968 %post -n gvim-motif
969 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
970
971 %postun -n gvim-motif
972 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
973
974 %post -n gvim-gtk
975 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
976
977 %postun -n gvim-gtk
978 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
979
980 %post -n gvim-gnome
981 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
982
983 %postun -n gvim-gnome
984 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
985
986 %files
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_bindir}/vim
989 %attr(755,root,root) %{_bindir}/rvim
990 %{_desktopdir}/%{name}.desktop
991
992 %if %{with static}
993 %files static
994 %endif
995 %defattr(644,root,root,755)
996 %attr(755,root,root) /bin/*
997
998 %{_mandir}/man1/vi.1*
999 %{_mandir}/man1/ex.1*
1000 %{_mandir}/man1/view.1*
1001 %{_mandir}/man1/rview.1*
1002 %lang(fi) %{_mandir}/fi/man1/vi.1*
1003 %lang(fi) %{_mandir}/fi/man1/ex.1*
1004 %lang(fi) %{_mandir}/fi/man1/view.1*
1005 %lang(fi) %{_mandir}/fi/man1/rview.1*
1006 %lang(fr) %{_mandir}/fr/man1/vi.1*
1007 %lang(fr) %{_mandir}/fr/man1/ex.1*
1008 %lang(fr) %{_mandir}/fr/man1/view.1*
1009 %lang(fr) %{_mandir}/fr/man1/rview.1*
1010 %lang(id) %{_mandir}/id/man1/vi.1*
1011 %lang(id) %{_mandir}/id/man1/ex.1*
1012 %lang(id) %{_mandir}/id/man1/view.1*
1013 %lang(id) %{_mandir}/id/man1/rview.1*
1014 %lang(pl) %{_mandir}/pl/man1/vi.1*
1015 %lang(pl) %{_mandir}/pl/man1/ex.1*
1016 %lang(pl) %{_mandir}/pl/man1/view.1*
1017 %lang(pl) %{_mandir}/pl/man1/rview.1*
1018
1019 %if %{with ispell}
1020 %files ispell
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/vim.ispell
1023 %endif
1024
1025 %files -n xxd
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/xxd
1028 %{_mandir}/man1/xxd.1*
1029
1030 %files rt
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/vimtutor
1033 %dir %{_sysconfdir}/vim
1034 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1035 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
1036
1037 %dir %{_datadir}/vim
1038 %dir %{_datadir}/vim/v*
1039 %dir %{_datadir}/vim/v*/doc
1040 %doc %{_datadir}/vim/v*/doc/*.txt
1041 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1042 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1043 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
1044 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
1045 %{_datadir}/vim/v*/ftplugin
1046 %{_datadir}/vim/v*/indent
1047 %{_datadir}/vim/v*/keymap
1048 %dir %{_datadir}/vim/v*/lang
1049 %doc %{_datadir}/vim/v*/lang/README*
1050
1051 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
1052 %{_datadir}/vim/vimfiles/after
1053 %{_datadir}/vim/vimfiles/ftdetect
1054
1055 %lang(af) %{_datadir}/vim/v*/lang/af
1056 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB
1057 %lang(ca) %{_datadir}/vim/v*/lang/ca
1058 %lang(cs) %{_datadir}/vim/v*/lang/cs
1059 %lang(de) %{_datadir}/vim/v*/lang/de
1060 %lang(es) %{_datadir}/vim/v*/lang/es
1061 %lang(fr) %{_datadir}/vim/v*/lang/fr
1062 %lang(ga) %{_datadir}/vim/v*/lang/ga
1063 %lang(it) %{_datadir}/vim/v*/lang/it
1064 %lang(ja) %{_datadir}/vim/v*/lang/ja*
1065 %lang(ko) %{_datadir}/vim/v*/lang/ko
1066 %lang(pl) %{_datadir}/vim/v*/lang/pl
1067 %lang(ru) %{_datadir}/vim/v*/lang/ru
1068 %lang(sk) %{_datadir}/vim/v*/lang/sk
1069 %lang(sv) %{_datadir}/vim/v*/lang/sv
1070 %lang(nb) %{_datadir}/vim/v*/lang/no
1071 #%lang(tr) %{_datadir}/vim/v*/lang/tr
1072 %lang(uk) %{_datadir}/vim/v*/lang/uk
1073 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
1074 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW*
1075
1076 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
1077 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
1078 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1079 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
1080 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
1081 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
1082 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1083 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1084 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1085 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
1086 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1087 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1088 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1089 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1090 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1091 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1092 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1093 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1094 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1095 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1096 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1097 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1098 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1099 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1100 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1101 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1102 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1103 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1104 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1105 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1106 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1107 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1108 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1109 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1110
1111 %{_datadir}/vim/v*/macros
1112 %{_datadir}/vim/v*/plugin
1113 %{_datadir}/vim/v*/print
1114 %{_datadir}/vim/v*/syntax
1115 %{_datadir}/vim/v*/tools
1116 %{_datadir}/vim/v*/tutor
1117 %{_datadir}/vim/v*/colors
1118 %{_datadir}/vim/v*/compiler
1119 %{_datadir}/vim/v*/*.vim
1120
1121 %{_mandir}/man1/vim*
1122 %{_mandir}/man1/rvim.*
1123 %lang(fi) %{_mandir}/fi/man1/vim*
1124 %lang(fi) %{_mandir}/fi/man1/rvim.*
1125 %lang(fi) %{_mandir}/fi/man1/gvi*
1126 %lang(fi) %{_mandir}/fi/man1/rgv*
1127 %lang(fr) %{_mandir}/fr/man1/vim*
1128 %lang(fr) %{_mandir}/fr/man1/rvim.*
1129 %lang(fr) %{_mandir}/fr/man1/gvi*
1130 %lang(fr) %{_mandir}/fr/man1/rgv*
1131 %lang(id) %{_mandir}/id/man1/vim*
1132 %lang(id) %{_mandir}/id/man1/rvim.*
1133 %lang(id) %{_mandir}/id/man1/gvi*
1134 %lang(id) %{_mandir}/id/man1/rgv*
1135 %lang(it) %{_mandir}/it/man1/vim*
1136 %lang(pl) %{_mandir}/pl/man1/vim*
1137 %lang(pl) %{_mandir}/pl/man1/rvim.*
1138 %lang(pl) %{_mandir}/pl/man1/gvi*
1139 %lang(pl) %{_mandir}/pl/man1/rgv*
1140
1141 %{_iconsdir}/hicolor/16x16/apps/vim.png
1142 %{_iconsdir}/hicolor/32x32/apps/vim.png
1143 %{_iconsdir}/hicolor/48x48/apps/vim.png
1144
1145 %if %{with athena}
1146 %files -n gvim-athena
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_bindir}/gvim.athena
1149 %{_desktopdir}/gvim-athena.desktop
1150 %endif
1151
1152 %if %{with motif}
1153 %files -n gvim-motif
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_bindir}/gvim.motif
1156 %{_desktopdir}/gvim-motif.desktop
1157 %endif
1158
1159 %if %{with kde}
1160 %files -n kvim
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{_bindir}/kvim
1163 %{_desktopdir}/kde/KVim.desktop
1164 %{_iconsdir}/hicolor/*/apps/kvim.png
1165 %{_iconsdir}/hicolor/*/actions/*make*.png
1166 %{_datadir}/apps/kvim
1167 %endif
1168
1169
1170 %if %{with gtk}
1171 %files -n gvim-gtk
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_bindir}/gvim.gtk
1174 %attr(755,root,root) %{_bindir}/rgvim
1175 %attr(755,root,root) %{_bindir}/rgview
1176 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1177 %{_desktopdir}/gvim-gtk.desktop
1178 %endif
1179
1180 %if %{with gnome}
1181 %files -n gvim-gnome
1182 %defattr(644,root,root,755)
1183 %attr(755,root,root) %{_bindir}/gvim.gnome
1184 %{_desktopdir}/gvim-gnome.desktop
1185 %endif
1186
1187 %if %{with bonobo}
1188 %files -n gvim-bonobo
1189 %defattr(644,root,root,755)
1190 %attr(755,root,root) %{_bindir}/vim-component
1191 %attr(755,root,root) %{_bindir}/vim-factory
1192 %{_libdir}/bonobo/servers/*
1193 %endif
This page took 0.128497 seconds and 3 git commands to generate.