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