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