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