]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- 7.0 + todolist
[packages/vim.git] / vim.spec
1 # TODO:
2 # - some nice icon
3 # - %%files
4 # - fix perl build
5 # - patches cleanup
6 #
7 # Conditional build:
8 %bcond_without  static          # don't build static version
9 %bcond_without  athena          # don't build Athena Widgets-based gvim
10 %bcond_without  motif           # don't build Motif-based gvim
11 %bcond_without  gtk             # don't build GTK+-based gvim support
12 %bcond_without  gnome           # don't build GNOME-based gvim support
13 %bcond_with     kde             # build kvim
14 %bcond_without  perl            # without Perl interp
15 %bcond_without  python          # without Python interp
16 %bcond_with     ruby            # with Ruby interp
17 %bcond_with     tcl             # with Tcl interp
18 %bcond_with     bonobo          # with bonobo component (breaks other things)
19 %bcond_without  selinux         # without selinux support
20 %bcond_without  ispell          # don't build vim.ispell
21 %bcond_without  home_etc        # without home_etc support
22 #
23 %define         _ver            7.0
24 %define         _patchlevel     c02
25
26 # cflags get changed while configuring
27 %undefine       configure_cache
28 #
29 Summary:        Vi IMproved - a Vi clone
30 Summary(de):    VIsual editor iMproved
31 Summary(es):    Editor visual incrementado
32 Summary(fr):    Editeur VIM : VIsual editor iMproved
33 Summary(pl):    Vi IMproved - klon edytora Vi
34 Summary(pt_BR): Editor visual incrementado
35 Summary(ru):    Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
36 Summary(tr):    Geliþmiþ bir vi sürümü
37 Summary(uk):    Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
38 Name:           vim
39 Version:        %{_ver}
40 Release:        0.%{_patchlevel}.1
41 Epoch:          4
42 License:        Charityware
43 Group:          Applications/Editors/Vim
44 Source0:        ftp://ftp.vim.org/pub/vim/unstable/snapshot/%{name}-%{_ver}%{_patchlevel}.zip
45 # Source0-md5:  fea526483d53fffc013a9dddf5c6787c
46 #Source1:       ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
47 # Source1-md5:  5395c4dacbf1c5008b22c4b86794e8a7
48 #Source2:       ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-extra.tar.gz
49 # Source2-md5:  6e4bd6c8122bcb9dc576514bdb52484e
50 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
51 # Source4-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
52 Source5:        http://freenux.org/kvim/k%{name}-runtime-6.2.14.tar.bz2
53 # Source5-md5:  6f633e79bcf5f35918bb0bff6850a971
54 Source6:        http://skawina.eu.org/mikolaj/usr_doc_pl.zip
55 # Source6-md5:  ff96284b1c913d55cf0877839b34d490
56 Source10:       g%{name}-athena.desktop
57 Source11:       g%{name}-motif.desktop
58 Source12:       g%{name}-gtk.desktop
59 Source13:       g%{name}-gnome.desktop
60 Source14:       %{name}.desktop
61 # http://www.vim.org/scripts/script.php?script_id=1120
62 Source15:       php.%{name}
63 # http://www.vim.org/scripts/script.php?script_id=415 (1.13)
64 Source16:       zenburn.%{name}
65 Source17:       spec.%{name}
66 # http://www.vim.org/scripts/script.php?script_id=1491
67 Source18:       javascript.%{name}
68 Patch0:         %{name}-sysconfdir.patch
69 Patch1:         %{name}-visual.patch
70 Patch2:         %{name}-paths.patch
71 Patch3:         %{name}-ispell.patch
72 Patch4:         %{name}-ispell-axp.patch
73 Patch5:         %{name}-%{name}rc.patch
74 Patch6:         %{name}-no_libelf.patch
75 Patch7:         %{name}-egrep.patch
76 Patch8:         k%{name}-desktop.patch
77 Patch9:         %{name}-awk.patch
78 Patch10:        %{name}-pl.po.patch
79 Patch11:        %{name}-bonobo.patch
80 Patch12:        %{name}-home_etc.patch
81 Patch13:        %{name}-selinux.patch
82 Patch16:        %{name}-filetype_vim-perl_tests.patch
83 Patch17:        %{name}-apache.patch
84 Patch18:        %{name}-po-syntax.patch
85 Patch19:        %{name}-modprobe.patch
86 Patch21:        %{name}-gtkfilechooser.patch
87 Patch22:        %{name}-gtkfilechooser-bonobo.patch
88 Patch23:        %{name}-doubleparenthesis.patch
89 Patch24:        %{name}-lib64.patch
90 Patch25:        %{name}-syntax-fstab.patch
91 Patch26:        010_all_%{name}-6.3-vixie.patch
92 Patch27:        013_all_%{name}-7.0-cron-vars-79981.patch
93 Patch28:        014_all_%{name}-6.3-dns-syntax.patch
94 Patch29:        015_all_%{name}-6.3-screen.linux-is-dark-83416.patch
95 Patch30:        020_all_%{name}-7.0-fstab-tmpfs-size.patch
96 Patch31:        021_all_%{name}-7.0-fstab-bogus-errors.patch
97 Patch32:        024_all_%{name}-6.3-bash-83565.patch
98 Patch33:        027_all_%{name}-7.0-automake-substitutions-93378.patch
99 Patch34:        %{name}-smarty.patch
100 Patch35:        %{name}-filetype_vim-php45.patch
101 Patch36:        %{name}-tutor-lessdeps.patch
102 Patch99:        %{name}-bonobo-20050909.patch
103 Patch999:       http://freenux.org/vim/%{name}2kvim-6.3b.diff.bz2
104 URL:            http://www.vim.org/
105 %{?with_athena:BuildRequires:   xorg-lib-libXaw-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 -c -a5
550
551 # kvim
552 #%patch999 -p1
553
554 %patch0 -p1
555 %{?with_bonobo:%patch99 -p1}
556 %patch1 -p1
557 %patch2 -p1
558 #%patch3 -p1
559 %ifarch alpha
560 %patch4 -p1
561 %endif
562 %patch5 -p1
563 %patch6 -p1
564 %patch7 -p1
565 %patch9 -p1
566 #%patch10 -p1
567 %{?with_bonobo:%patch11 -p1}
568 %{?with_home_etc:%patch12 -p1}
569 %{?with_selinux:%patch13 -p1}
570 #%patch14 -p1
571 #%patch15 -p1
572 %patch16 -p1
573 #%patch17 -p1
574 #%patch18 -p1
575 %patch19 -p0 -b .modprobe
576 #%{!?with_bonobo:%patch21 -p0}
577 %{?with_bonobo:%patch22 -p1}
578 %patch23 -p1
579 %if "%{_lib}" == "lib64"
580 #%patch24 -p1
581 %endif
582 #%patch25 -p1
583 %patch26 -p0
584 %patch27 -p1
585 #%patch28 -p1
586 #%patch29 -p0
587 %patch30 -p1
588 %patch31 -p1
589 %patch32 -p0
590 %patch33 -p0
591 %patch34 -p1
592 %patch35 -p1
593 %patch36 -p1
594
595 install %{SOURCE15} runtime/indent
596 install %{SOURCE16} runtime/colors
597 install %{SOURCE17} runtime/syntax
598 install %{SOURCE18} runtime/syntax
599
600 %build
601 cd src
602 %{__autoconf}
603 # needed to prevent deconfiguring
604 cp -f configure auto
605
606 install -d bin
607
608 %if %{with bonobo}
609 %{__make} distclean
610 %configure \
611         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
612         --with-features=huge \
613         --enable-gui=gnome2 \
614         --enable-bonobo \
615         --enable-gtk2-check \
616         --enable-gnome-check \
617         --with-x \
618         %{!?with_perl:--disable-perlinterp} \
619         %{?with_perl:--enable-perlinterp} \
620         %{!?with_python:--disable-pythoninterp} \
621         %{?with_python:--enable-pythoninterp} \
622         %{!?with_ruby:--disable-rubyinterp} \
623         %{?with_ruby:--enable-rubyinterp} \
624         %{!?with_tcl:--disable-tclinterp} \
625         %{?with_tcl:--enable-tclinterp} \
626         --disable-gpm \
627         --enable-cscope \
628         --enable-nls \
629         --with-modifiedby="PLD Linux Distribution" \
630         --with-compiledby="PLD Linux Distribution"
631
632 %{__make} vim-component vim-factory Vim_Control.server
633 mv vim-component vim-factory Vim_Control.server bin/
634 %endif
635
636 %if %{with static}
637 %{__make} distclean
638 LDFLAGS="%{rpmldflags} -static"
639 %configure \
640         --disable-gui \
641         --without-x \
642         --disable-perlinterp \
643         --disable-pythoninterp \
644         --disable-rubyinterp \
645         --disable-tclinterp \
646         --disable-cscope \
647         --disable-gpm \
648         --disable-multibyte \
649         %{?with_bonobo:--disable-bonobo} \
650         --with-features=small \
651         --with-tlib=tinfo \
652         --disable-nls \
653         --with-modifiedby="PLD Linux Distribution" \
654         --with-compiledby="PLD Linux Distribution"
655
656 %{__make} vim \
657         SPELL_OBJ=
658 mv -f vim bin/vim.static
659 LDFLAGS="%{rpmldflags}"
660 %endif
661
662 %{__make} distclean
663 %configure \
664         --disable-gui \
665         --without-x \
666         %{!?with_perl:--disable-perlinterp} \
667         %{?with_perl:--enable-perlinterp} \
668         %{!?with_python:--disable-pythoninterp} \
669         %{?with_python:--enable-pythoninterp} \
670         %{!?with_ruby:--disable-rubyinterp} \
671         %{?with_ruby:--enable-rubyinterp} \
672         %{!?with_tcl:--disable-tclinterp} \
673         %{?with_tcl:--enable-tclinterp} \
674         %{?with_bonobo:--disable-bonobo} \
675         --enable-cscope \
676         --enable-gpm \
677         --with-features=huge \
678         --enable-multibyte \
679         --with-tlib=ncurses \
680         --enable-nls \
681         --with-modifiedby="PLD Linux Distribution" \
682         --with-compiledby="PLD Linux Distribution"
683
684 %{__make} vim \
685         SPELL_OBJ=
686 mv -f vim bin/vim.ncurses
687 %if %{with ispell}
688 %{__make} distclean
689 %configure \
690         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
691         --disable-gui \
692         --without-x \
693         %{!?with_perl:--disable-perlinterp} \
694         %{?with_perl:--enable-perlinterp} \
695         %{!?with_python:--disable-pythoninterp} \
696         %{?with_python:--enable-pythoninterp} \
697         %{!?with_ruby:--disable-rubyinterp} \
698         %{?with_ruby:--enable-rubyinterp} \
699         %{!?with_tcl:--disable-tclinterp} \
700         %{?with_tcl:--enable-tclinterp} \
701         %{?with_bonobo:--disable-bonobo} \
702         --enable-cscope \
703         --enable-gpm \
704         --with-features=huge \
705         --enable-multibyte \
706         --with-tlib=ncurses \
707         --enable-nls \
708         --with-modifiedby="PLD Linux Distribution" \
709         --with-compiledby="PLD Linux Distribution"
710
711 %{__make} vim
712 mv -f vim bin/vim.ispell
713 %endif
714 %if %{with kde}
715 %{__make} distclean
716 %configure \
717         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
718         --with-features=huge \
719         --enable-gui=kde \
720         --with-x \
721         %{!?with_perl:--disable-perlinterp} \
722         %{?with_perl:--enable-perlinterp} \
723         %{!?with_python:--disable-pythoninterp} \
724         %{?with_python:--enable-pythoninterp} \
725         %{!?with_ruby:--disable-rubyinterp} \
726         %{?with_ruby:--enable-rubyinterp} \
727         %{!?with_tcl:--disable-tclinterp} \
728         %{?with_tcl:--enable-tclinterp} \
729         %{?with_bonobo:--disable-bonobo} \
730         --enable-cscope \
731         --with-qt-dir=%{_prefix} \
732         --with-qt-includes=%{_includedir}/qt \
733         --with-qt-libs=%{_libdir} \
734         --enable-fontset \
735         --disable-gpm \
736         --without-gnome \
737         --enable-nls \
738         --with-modifiedby="PLD Linux Distribution" \
739         --enable-kde-toolbar \
740         --with-compiledby="PLD Linux Distribution"
741
742 %{__make} -j1 vim
743 mv -f vim bin/kvim
744 %endif
745
746 %if %{with athena}
747 %{__make} distclean
748 %configure \
749         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
750         --with-features=huge \
751         --enable-gui=athena \
752         --with-x \
753         %{!?with_perl:--disable-perlinterp} \
754         %{?with_perl:--enable-perlinterp} \
755         %{!?with_python:--disable-pythoninterp} \
756         %{?with_python:--enable-pythoninterp} \
757         %{!?with_ruby:--disable-rubyinterp} \
758         %{?with_ruby:--enable-rubyinterp} \
759         %{!?with_tcl:--disable-tclinterp} \
760         %{?with_tcl:--enable-tclinterp} \
761         %{?with_bonobo:--disable-bonobo} \
762         --enable-cscope \
763         --enable-fontset \
764         --disable-gpm \
765         --without-gnome \
766         --enable-nls \
767         --with-modifiedby="PLD Linux Distribution" \
768         --with-compiledby="PLD Linux Distribution"
769
770 %{__make} vim
771 mv -f vim bin/gvim.athena
772 %endif
773
774
775 %if %{with motif}
776 %{__make} distclean
777 %configure \
778         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
779         --with-features=huge \
780         --enable-gui=motif \
781         --with-x \
782         %{!?with_perl:--disable-perlinterp} \
783         %{?with_perl:--enable-perlinterp} \
784         %{!?with_python:--disable-pythoninterp} \
785         %{?with_python:--enable-pythoninterp} \
786         %{!?with_ruby:--disable-rubyinterp} \
787         %{?with_ruby:--enable-rubyinterp} \
788         %{!?with_tcl:--disable-tclinterp} \
789         %{?with_tcl:--enable-tclinterp} \
790         %{?with_bonobo:--disable-bonobo} \
791         --enable-multibyte \
792         --enable-cscope \
793         --enable-fontset \
794         --disable-gpm \
795         --without-gnome \
796         --enable-nls \
797         --with-modifiedby="PLD Linux Distribution" \
798         --with-compiledby="PLD Linux Distribution"
799
800 %{__make} vim
801 mv -f vim bin/gvim.motif
802 %endif
803
804 %if %{with gtk}
805 %{__make} distclean
806 %configure \
807         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
808         --with-features=huge \
809         --enable-gui=gtk2 \
810         --enable-gtk2-check \
811         --with-x \
812         %{!?with_perl:--disable-perlinterp} \
813         %{?with_perl:--enable-perlinterp} \
814         %{!?with_python:--disable-pythoninterp} \
815         %{?with_python:--enable-pythoninterp} \
816         %{!?with_ruby:--disable-rubyinterp} \
817         %{?with_ruby:--enable-rubyinterp} \
818         %{!?with_tcl:--disable-tclinterp} \
819         %{?with_tcl:--enable-tclinterp} \
820         %{?with_bonobo:--disable-bonobo} \
821         --disable-gpm \
822         --enable-cscope \
823         --enable-nls \
824         --with-modifiedby="PLD Linux Distribution" \
825         --with-compiledby="PLD Linux Distribution"
826
827 %{__make} vim
828 mv -f vim bin/gvim.gtk
829 %endif
830
831 %if %{with gnome}
832 %{__make} distclean
833 %configure \
834         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
835         --with-features=huge \
836         --enable-gui=gnome2 \
837         %{?with_bonobo:--disable-bonobo} \
838         --enable-gtk2-check \
839         --enable-gnome-check \
840         --with-x \
841         %{!?with_perl:--disable-perlinterp} \
842         %{?with_perl:--enable-perlinterp} \
843         %{!?with_python:--disable-pythoninterp} \
844         %{?with_python:--enable-pythoninterp} \
845         %{!?with_ruby:--disable-rubyinterp} \
846         %{?with_ruby:--enable-rubyinterp} \
847         %{!?with_tcl:--disable-tclinterp} \
848         %{?with_tcl:--enable-tclinterp} \
849         --disable-gpm \
850         --enable-cscope \
851         --enable-nls \
852         --with-modifiedby="PLD Linux Distribution" \
853         --with-compiledby="PLD Linux Distribution"
854
855 %{__make} vim
856 mv -f vim bin/gvim.gnome
857 %endif
858
859
860 %{__make} xxd/xxd languages
861
862 %install
863 rm -rf $RPM_BUILD_ROOT
864 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
865         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
866         $RPM_BUILD_ROOT%{_desktopdir}
867
868 %{__make} install \
869         DESTDIR=$RPM_BUILD_ROOT
870
871 rm -f $RPM_BUILD_ROOT%{_bindir}/*
872
873 %if %{with static}
874 install src/bin/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim
875 install src/bin/vim.static      $RPM_BUILD_ROOT/bin/vi
876 %else
877 install src/bin/vim.ncurses     $RPM_BUILD_ROOT/bin/vi
878 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
879 %endif
880 %if %{with ispell}
881 install src/bin/vim.ispell      $RPM_BUILD_ROOT%{_bindir}/vim.ispell
882 %endif
883 install src/xxd/xxd     $RPM_BUILD_ROOT%{_bindir}/xxd
884 install src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
885
886 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
887
888 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
889 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
890
891 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
892
893 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
894 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
895 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
896 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
897 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
898
899 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
900 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
901
902 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
903 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
904 ln -sf vi  $RPM_BUILD_ROOT/bin/view
905 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
906
907 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
908
909 %if %{with athena}
910 install src/bin/gvim.athena     $RPM_BUILD_ROOT%{_bindir}/gvim.athena
911 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
912 %endif
913 %if %{with motif}
914 install src/bin/gvim.motif      $RPM_BUILD_ROOT%{_bindir}/gvim.motif
915 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
916 %endif
917 %if %{with gnome}
918 install src/bin/gvim.gnome      $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
919 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
920 %endif
921 %if %{with gtk}
922 install src/bin/gvim.gtk        $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
923 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
924 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
925 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
926 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
927 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
928 %endif
929
930 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
931 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
932 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
933 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
934
935 %if %{with kde}
936 install src/bin/kvim $RPM_BUILD_ROOT%{_bindir}/kvim
937 install -d $RPM_BUILD_ROOT%{_desktopdir}/kde
938 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22}/actions
939 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps
940 install runtime/hi16-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/actions
941 install runtime/hi22-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/actions
942 install runtime/kvim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/kvim.png
943 install runtime/kvim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/kvim.png
944 install runtime/kvim64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/kvim.png
945 install runtime/KVim.desktop $RPM_BUILD_ROOT%{_desktopdir}/kde
946 install -d $RPM_BUILD_ROOT%{_datadir}/apps/kvim
947 install runtime/kde-tips $RPM_BUILD_ROOT%{_datadir}/apps/kvim/tips
948 %endif
949
950 # Bonobo
951 %if %{with bonobo}
952 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
953 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
954 install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
955 %endif
956
957 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
958 unzip -d $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE6}
959
960 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,syntax}}
961 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
962
963 %clean
964 rm -rf $RPM_BUILD_ROOT
965
966 %post
967 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
968
969 %postun
970 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
971
972 %post -n gvim-athena
973 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
974
975 %postun -n gvim-athena
976 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
977
978 %post -n gvim-motif
979 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
980
981 %postun -n gvim-motif
982 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
983
984 %post -n gvim-gtk
985 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
986
987 %postun -n gvim-gtk
988 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
989
990 %post -n gvim-gnome
991 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
992
993 %postun -n gvim-gnome
994 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
995
996 %files
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_bindir}/vim
999 %attr(755,root,root) %{_bindir}/rvim
1000 %{_desktopdir}/%{name}.desktop
1001
1002 %if %{with static}
1003 %files static
1004 %endif
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) /bin/*
1007
1008 %{_mandir}/man1/vi.1*
1009 %{_mandir}/man1/ex.1*
1010 %{_mandir}/man1/view.1*
1011 %{_mandir}/man1/rview.1*
1012 %lang(fi) %{_mandir}/fi/man1/vi.1*
1013 %lang(fi) %{_mandir}/fi/man1/ex.1*
1014 %lang(fi) %{_mandir}/fi/man1/view.1*
1015 %lang(fi) %{_mandir}/fi/man1/rview.1*
1016 %lang(fr) %{_mandir}/fr/man1/vi.1*
1017 %lang(fr) %{_mandir}/fr/man1/ex.1*
1018 %lang(fr) %{_mandir}/fr/man1/view.1*
1019 %lang(fr) %{_mandir}/fr/man1/rview.1*
1020 %lang(id) %{_mandir}/id/man1/vi.1*
1021 %lang(id) %{_mandir}/id/man1/ex.1*
1022 %lang(id) %{_mandir}/id/man1/view.1*
1023 %lang(id) %{_mandir}/id/man1/rview.1*
1024 %lang(it) %{_mandir}/it*/man1/ex.1*
1025 %lang(it) %{_mandir}/it*/man1/view.1*
1026 %lang(it) %{_mandir}/it*/man1/rview.1*
1027 %lang(pl) %{_mandir}/pl/man1/vi.1*
1028 %lang(pl) %{_mandir}/pl/man1/ex.1*
1029 %lang(pl) %{_mandir}/pl/man1/view.1*
1030 %lang(pl) %{_mandir}/pl/man1/rview.1*
1031 %lang(ru) %{_mandir}/ru*/man1/ex.1*
1032 %lang(ru) %{_mandir}/ru*/man1/view.1*
1033 %lang(ru) %{_mandir}/ru*/man1/rview.1*
1034
1035 %if %{with ispell}
1036 %files ispell
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/vim.ispell
1039 %endif
1040
1041 %files -n xxd
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/xxd
1044 %{_mandir}/man1/xxd.1*
1045 %lang(fr) %{_mandir}/fr/man1/xxd.1*
1046 %lang(it) %{_mandir}/it*/man1/xxd.1*
1047 %lang(ru) %{_mandir}/ru*/man1/xxd.1*
1048
1049 %files rt
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/vimtutor
1052 %dir %{_sysconfdir}/vim
1053 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1054 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
1055
1056 %dir %{_datadir}/vim
1057 %dir %{_datadir}/vim/v*
1058 %dir %{_datadir}/vim/v*/doc
1059 %doc %{_datadir}/vim/v*/doc/*.txt
1060 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1061 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1062 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
1063 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
1064 %{_datadir}/vim/v*/ftplugin
1065 %{_datadir}/vim/v*/indent
1066 %{_datadir}/vim/v*/keymap
1067 %dir %{_datadir}/vim/v*/lang
1068 %doc %{_datadir}/vim/v*/lang/README*
1069
1070 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
1071 %{_datadir}/vim/vimfiles/after
1072 %{_datadir}/vim/vimfiles/ftdetect
1073
1074 %lang(af) %{_datadir}/vim/v*/lang/af
1075 %lang(ca) %{_datadir}/vim/v*/lang/ca
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(vi) %{_datadir}/vim/v*/lang/vi
1094 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
1095 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW*
1096
1097 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
1098 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
1099 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1100 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
1101 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
1102 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
1103 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1104 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1105 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1106 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
1107 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1108 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1109 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1110 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1111 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1112 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1113 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1114 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1115 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1116 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1117 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1118 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1119 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1120 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1121 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1122 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1123 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
1124 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1125 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1126 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1127 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1128 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1129 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1130 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1131 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1132
1133 %lang(en_GB) %{_datadir}/vim/v*/spell/en.*.spl
1134
1135 %{_datadir}/vim/v*/macros
1136 %{_datadir}/vim/v*/plugin
1137 %{_datadir}/vim/v*/print
1138 %{_datadir}/vim/v*/syntax
1139 %{_datadir}/vim/v*/tools
1140 %{_datadir}/vim/v*/tutor
1141 %{_datadir}/vim/v*/colors
1142 %{_datadir}/vim/v*/compiler
1143 %{_datadir}/vim/v*/autoload
1144 %{_datadir}/vim/v*/*.vim
1145
1146 %{_mandir}/man1/vim*
1147 %{_mandir}/man1/rvim.*
1148 %lang(fi) %{_mandir}/fi/man1/vim*
1149 %lang(fi) %{_mandir}/fi/man1/rvim.*
1150 %lang(fi) %{_mandir}/fi/man1/gvi*
1151 %lang(fi) %{_mandir}/fi/man1/rgv*
1152 %lang(fr) %{_mandir}/fr/man1/vim*
1153 %lang(fr) %{_mandir}/fr/man1/rvim.*
1154 %lang(fr) %{_mandir}/fr/man1/gvi*
1155 %lang(fr) %{_mandir}/fr/man1/rgv*
1156 %lang(id) %{_mandir}/id/man1/vim*
1157 %lang(id) %{_mandir}/id/man1/rvim.*
1158 %lang(id) %{_mandir}/id/man1/gvi*
1159 %lang(id) %{_mandir}/id/man1/rgv*
1160 %lang(it) %{_mandir}/it*/man1/vim*
1161 %lang(pl) %{_mandir}/pl/man1/vim*
1162 %lang(pl) %{_mandir}/pl/man1/rvim.*
1163 %lang(pl) %{_mandir}/pl/man1/gvi*
1164 %lang(pl) %{_mandir}/pl/man1/rgv*
1165 %lang(ru) %{_mandir}/ru*/man1/vim*
1166
1167 %{_iconsdir}/hicolor/16x16/apps/vim.png
1168 %{_iconsdir}/hicolor/32x32/apps/vim.png
1169 %{_iconsdir}/hicolor/48x48/apps/vim.png
1170
1171 %if %{with athena}
1172 %files -n gvim-athena
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{_bindir}/gvim.athena
1175 %{_desktopdir}/gvim-athena.desktop
1176 %endif
1177
1178 %if %{with motif}
1179 %files -n gvim-motif
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_bindir}/gvim.motif
1182 %{_desktopdir}/gvim-motif.desktop
1183 %endif
1184
1185 %if %{with kde}
1186 %files -n kvim
1187 %defattr(644,root,root,755)
1188 %attr(755,root,root) %{_bindir}/kvim
1189 %{_desktopdir}/kde/KVim.desktop
1190 %{_iconsdir}/hicolor/*/apps/kvim.png
1191 %{_iconsdir}/hicolor/*/actions/*make*.png
1192 %{_datadir}/apps/kvim
1193 %endif
1194
1195
1196 %if %{with gtk}
1197 %files -n gvim-gtk
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{_bindir}/gvim.gtk
1200 %attr(755,root,root) %{_bindir}/rgvim
1201 %attr(755,root,root) %{_bindir}/rgview
1202 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1203 %{_desktopdir}/gvim-gtk.desktop
1204 %endif
1205
1206 %if %{with gnome}
1207 %files -n gvim-gnome
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) %{_bindir}/gvim.gnome
1210 %{_desktopdir}/gvim-gnome.desktop
1211 %endif
1212
1213 %if %{with bonobo}
1214 %files -n gvim-bonobo
1215 %defattr(644,root,root,755)
1216 %attr(755,root,root) %{_bindir}/vim-component
1217 %attr(755,root,root) %{_bindir}/vim-factory
1218 %{_libdir}/bonobo/servers/*
1219 %endif
This page took 0.107376 seconds and 4 git commands to generate.