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