]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- missing dir; and where [....] is pl dictionary?
[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            1
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         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
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         SPELL_OBJ=
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         SPELL_OBJ=
669 mv -f vim bin/vim.ncurses
670
671 %if %{with athena}
672 %{__make} distclean
673 %configure \
674         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
675         --with-features=huge \
676         --enable-gui=athena \
677         --with-x \
678         %{!?with_perl:--disable-perlinterp} \
679         %{?with_perl:--enable-perlinterp} \
680         %{!?with_python:--disable-pythoninterp} \
681         %{?with_python:--enable-pythoninterp} \
682         %{!?with_ruby:--disable-rubyinterp} \
683         %{?with_ruby:--enable-rubyinterp} \
684         %{!?with_tcl:--disable-tclinterp} \
685         %{?with_tcl:--enable-tclinterp} \
686         %{?with_bonobo:--disable-bonobo} \
687         --enable-cscope \
688         --enable-fontset \
689         --disable-gpm \
690         --without-gnome \
691         --enable-nls \
692         --with-modifiedby="PLD Linux Distribution" \
693         --with-compiledby="PLD Linux Distribution"
694
695 %{__make} vim
696 mv -f vim bin/gvim.athena
697 %endif
698
699
700 %if %{with motif}
701 %{__make} distclean
702 %configure \
703         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
704         --with-features=huge \
705         --enable-gui=motif \
706         --with-x \
707         %{!?with_perl:--disable-perlinterp} \
708         %{?with_perl:--enable-perlinterp} \
709         %{!?with_python:--disable-pythoninterp} \
710         %{?with_python:--enable-pythoninterp} \
711         %{!?with_ruby:--disable-rubyinterp} \
712         %{?with_ruby:--enable-rubyinterp} \
713         %{!?with_tcl:--disable-tclinterp} \
714         %{?with_tcl:--enable-tclinterp} \
715         %{?with_bonobo:--disable-bonobo} \
716         --enable-multibyte \
717         --enable-cscope \
718         --enable-fontset \
719         --disable-gpm \
720         --without-gnome \
721         --enable-nls \
722         --with-modifiedby="PLD Linux Distribution" \
723         --with-compiledby="PLD Linux Distribution"
724
725 %{__make} vim
726 mv -f vim bin/gvim.motif
727 %endif
728
729 %if %{with gtk}
730 %{__make} distclean
731 %configure \
732         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
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         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
760         --with-features=huge \
761         --enable-gui=gnome2 \
762         %{?with_bonobo:--disable-bonobo} \
763         --enable-gtk2-check \
764         --enable-gnome-check \
765         --with-x \
766         %{!?with_perl:--disable-perlinterp} \
767         %{?with_perl:--enable-perlinterp} \
768         %{!?with_python:--disable-pythoninterp} \
769         %{?with_python:--enable-pythoninterp} \
770         %{!?with_ruby:--disable-rubyinterp} \
771         %{?with_ruby:--enable-rubyinterp} \
772         %{!?with_tcl:--disable-tclinterp} \
773         %{?with_tcl:--enable-tclinterp} \
774         --disable-gpm \
775         --enable-cscope \
776         --enable-nls \
777         --with-modifiedby="PLD Linux Distribution" \
778         --with-compiledby="PLD Linux Distribution"
779
780 %{__make} vim
781 mv -f vim bin/gvim.gnome
782 %endif
783
784
785 %{__make} xxd/xxd languages
786
787 %install
788 rm -rf $RPM_BUILD_ROOT
789
790 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
791         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
792         $RPM_BUILD_ROOT%{_desktopdir}
793
794 %{__make} install \
795         DESTDIR=$RPM_BUILD_ROOT
796
797 rm -f $RPM_BUILD_ROOT%{_bindir}/*
798
799 %if %{with static}
800 install src/bin/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim
801 install src/bin/vim.static      $RPM_BUILD_ROOT/bin/vi
802 %else
803 install src/bin/vim.ncurses     $RPM_BUILD_ROOT/bin/vi
804 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
805 %endif
806 install src/xxd/xxd     $RPM_BUILD_ROOT%{_bindir}/xxd
807 install src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
808
809 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
810
811 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
812 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
813
814 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
815
816 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
817 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
818 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
819 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
820 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
821
822 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
823 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
824
825 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
826 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
827 ln -sf vi  $RPM_BUILD_ROOT/bin/view
828 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
829
830 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
831
832 %if %{with athena}
833 install src/bin/gvim.athena     $RPM_BUILD_ROOT%{_bindir}/gvim.athena
834 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
835 %endif
836 %if %{with motif}
837 install src/bin/gvim.motif      $RPM_BUILD_ROOT%{_bindir}/gvim.motif
838 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
839 %endif
840 %if %{with gnome}
841 install src/bin/gvim.gnome      $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
842 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
843 %endif
844 %if %{with gtk}
845 install src/bin/gvim.gtk        $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
846 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
847 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
848 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
849 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
850 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
851 %endif
852
853 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
854 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
855 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
856 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
857
858 # Bonobo
859 %if %{with bonobo}
860 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
861 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
862 install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
863 %endif
864
865 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
866 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE3}
867
868 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,syntax}}
869 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
870
871 %clean
872 rm -rf $RPM_BUILD_ROOT
873
874 %post
875 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
876
877 %postun
878 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
879
880 %post -n gvim-athena
881 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
882
883 %postun -n gvim-athena
884 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
885
886 %post -n gvim-motif
887 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
888
889 %postun -n gvim-motif
890 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
891
892 %post -n gvim-gtk
893 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
894
895 %postun -n gvim-gtk
896 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
897
898 %post -n gvim-gnome
899 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
900
901 %postun -n gvim-gnome
902 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
903
904 %files
905 %defattr(644,root,root,755)
906 %attr(755,root,root) %{_bindir}/vim
907 %attr(755,root,root) %{_bindir}/rvim
908 %{_desktopdir}/%{name}.desktop
909
910 %if %{with static}
911 %files static
912 %endif
913 %defattr(644,root,root,755)
914 %attr(755,root,root) /bin/*
915
916 %{_mandir}/man1/vi.1*
917 %{_mandir}/man1/ex.1*
918 %{_mandir}/man1/view.1*
919 %{_mandir}/man1/rview.1*
920 %lang(fi) %{_mandir}/fi/man1/vi.1*
921 %lang(fi) %{_mandir}/fi/man1/ex.1*
922 %lang(fi) %{_mandir}/fi/man1/view.1*
923 %lang(fi) %{_mandir}/fi/man1/rview.1*
924 %lang(fr) %{_mandir}/fr*/man1/vi.1*
925 %lang(fr) %{_mandir}/fr*/man1/evim.1*
926 %lang(fr) %{_mandir}/fr*/man1/vim.1*
927 %lang(fr) %{_mandir}/fr*/man1/vimdiff.1*
928 %lang(fr) %{_mandir}/fr*/man1/vimtutor.1*
929 %lang(fr) %{_mandir}/fr*/man1/ex.1*
930 %lang(fr) %{_mandir}/fr*/man1/view.1*
931 %lang(fr) %{_mandir}/fr*/man1/rview.1*
932 %lang(id) %{_mandir}/id/man1/vi.1*
933 %lang(id) %{_mandir}/id/man1/ex.1*
934 %lang(id) %{_mandir}/id/man1/view.1*
935 %lang(id) %{_mandir}/id/man1/rview.1*
936 %lang(it) %{_mandir}/it*/man1/ex.1*
937 %lang(it) %{_mandir}/it*/man1/evim.1*
938 %lang(it) %{_mandir}/it*/man1/view.1*
939 %lang(it) %{_mandir}/it*/man1/rview.1*
940 %lang(pl) %{_mandir}/pl*/man1/vi.1*
941 %lang(pl) %{_mandir}/pl*/man1/evim.1*
942 %lang(pl) %{_mandir}/pl*/man1/vim.1*
943 %lang(pl) %{_mandir}/pl*/man1/vimdiff.1*
944 %lang(pl) %{_mandir}/pl*/man1/vimtutor.1*
945 %lang(pl) %{_mandir}/pl*/man1/ex.1*
946 %lang(pl) %{_mandir}/pl*/man1/view.1*
947 %lang(pl) %{_mandir}/pl*/man1/rview.1*
948 %lang(ru) %{_mandir}/ru*/man1/ex.1*
949 %lang(ru) %{_mandir}/ru*/man1/evim.1*
950 %lang(ru) %{_mandir}/ru*/man1/view.1*
951 %lang(ru) %{_mandir}/ru*/man1/rview.1*
952
953 %files -n xxd
954 %defattr(644,root,root,755)
955 %attr(755,root,root) %{_bindir}/xxd
956 %{_mandir}/man1/xxd.1*
957 %lang(fr) %{_mandir}/fr*/man1/xxd.1*
958 %lang(it) %{_mandir}/it*/man1/xxd.1*
959 %lang(pl) %{_mandir}/pl*/man1/xxd.1*
960 %lang(ru) %{_mandir}/ru*/man1/xxd.1*
961
962 %files rt
963 %defattr(644,root,root,755)
964 %attr(755,root,root) %{_bindir}/vimtutor
965 %dir %{_sysconfdir}/vim
966 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
968
969 %dir %{_datadir}/vim
970 %dir %{_datadir}/vim/v*
971 %dir %{_datadir}/vim/v*/doc
972 %doc %{_datadir}/vim/v*/doc/*.txt
973 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
974 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
975 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
976 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
977 %{_datadir}/vim/v*/ftplugin
978 %{_datadir}/vim/v*/indent
979 %{_datadir}/vim/v*/keymap
980 %dir %{_datadir}/vim/v*/lang
981 %doc %{_datadir}/vim/v*/lang/README*
982
983 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
984 %{_datadir}/vim/vimfiles/after
985 %{_datadir}/vim/vimfiles/ftdetect
986
987 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
988 %lang(af) %{_datadir}/vim/v*/lang/af/
989 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
990 %lang(ca) %{_datadir}/vim/v*/lang/ca/
991 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
992 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
993 %lang(cs) %{_datadir}/vim/v*/lang/cs/
994 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
995 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
996 %lang(de) %{_datadir}/vim/v*/lang/de/
997 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
998 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
999 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
1000 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1001 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1002 %lang(es) %{_datadir}/vim/v*/lang/es/
1003 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1004 %lang(fr) %{_datadir}/vim/v*/lang/fr/
1005 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1006 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1007 %lang(it) %{_datadir}/vim/v*/lang/it/
1008 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1009 %lang(ja) %{_datadir}/vim/v*/lang/ja/
1010 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1011 %lang(ko) %{_datadir}/vim/v*/lang/ko/
1012 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1013 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1014 %lang(nb) %{_datadir}/vim/v*/lang/no/
1015 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1016 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1017 %lang(pl) %{_datadir}/vim/v*/lang/pl/
1018 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1019 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1020 %lang(ru) %{_datadir}/vim/v*/lang/ru/
1021 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1022 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1023 %lang(sk) %{_datadir}/vim/v*/lang/sk/
1024 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1025 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1026 %lang(sv) %{_datadir}/vim/v*/lang/sv/
1027 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1028 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
1029 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1030 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1031 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1032 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1033 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1034 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1035 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1036 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1037 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1038 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1039
1040 %dir %{_datadir}/vim/v*/spell
1041 %{_datadir}/vim/v*/spell/cleanadd.vim
1042 %lang(en_GB) %{_datadir}/vim/v*/spell/en.*.*
1043 %lang(he) %{_datadir}/vim/v*/spell/he.*
1044 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1045
1046 %{_datadir}/vim/v*/macros
1047 %{_datadir}/vim/v*/plugin
1048 %{_datadir}/vim/v*/print
1049 %{_datadir}/vim/v*/syntax
1050 %{_datadir}/vim/v*/tools
1051 %{_datadir}/vim/v*/tutor
1052 %{_datadir}/vim/v*/colors
1053 %{_datadir}/vim/v*/compiler
1054 %{_datadir}/vim/v*/autoload
1055 %{_datadir}/vim/v*/*.vim
1056
1057 %{_mandir}/man1/vim*
1058 %{_mandir}/man1/rvim.*
1059 %lang(fi) %{_mandir}/fi/man1/vim*
1060 %lang(fi) %{_mandir}/fi/man1/rvim.*
1061 %lang(fi) %{_mandir}/fi/man1/gvi*
1062 %lang(fi) %{_mandir}/fi/man1/rgv*
1063 %lang(fr) %{_mandir}/fr/man1/vim*
1064 %lang(fr) %{_mandir}/fr/man1/rvim.*
1065 %lang(fr) %{_mandir}/fr/man1/gvi*
1066 %lang(fr) %{_mandir}/fr/man1/rgv*
1067 %lang(id) %{_mandir}/id/man1/vim*
1068 %lang(id) %{_mandir}/id/man1/rvim.*
1069 %lang(id) %{_mandir}/id/man1/gvi*
1070 %lang(id) %{_mandir}/id/man1/rgv*
1071 %lang(it) %{_mandir}/it*/man1/vim*
1072 %lang(pl) %{_mandir}/pl/man1/vim*
1073 %lang(pl) %{_mandir}/pl/man1/rvim.*
1074 %lang(pl) %{_mandir}/pl/man1/gvi*
1075 %lang(pl) %{_mandir}/pl/man1/rgv*
1076 %lang(ru) %{_mandir}/ru*/man1/vim*
1077
1078 %{_iconsdir}/hicolor/16x16/apps/vim.png
1079 %{_iconsdir}/hicolor/32x32/apps/vim.png
1080 %{_iconsdir}/hicolor/48x48/apps/vim.png
1081
1082 %if %{with athena}
1083 %files -n gvim-athena
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{_bindir}/gvim.athena
1086 %{_desktopdir}/gvim-athena.desktop
1087 %endif
1088
1089 %if %{with motif}
1090 %files -n gvim-motif
1091 %defattr(644,root,root,755)
1092 %attr(755,root,root) %{_bindir}/gvim.motif
1093 %{_desktopdir}/gvim-motif.desktop
1094 %endif
1095
1096 %if %{with gtk}
1097 %files -n gvim-gtk
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_bindir}/gvim.gtk
1100 %attr(755,root,root) %{_bindir}/rgvim
1101 %attr(755,root,root) %{_bindir}/rgview
1102 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1103 %{_desktopdir}/gvim-gtk.desktop
1104 %endif
1105
1106 %if %{with gnome}
1107 %files -n gvim-gnome
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_bindir}/gvim.gnome
1110 %{_desktopdir}/gvim-gnome.desktop
1111 %endif
1112
1113 %if %{with bonobo}
1114 %files -n gvim-bonobo
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/vim-component
1117 %attr(755,root,root) %{_bindir}/vim-factory
1118 %{_libdir}/bonobo/servers/*
1119 %endif
This page took 0.133449 seconds and 4 git commands to generate.