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