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