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