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