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