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