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