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