]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- fix for current libselinux
[packages/vim.git] / vim.spec
1 #
2 # Conditional build:
3 %bcond_without  static  # without static version
4 %bcond_without  athena  # without Athena Widgets-based gvim
5 %bcond_without  motif   # without Motif-based gvim
6 %bcond_without  gtk     # without gtk+-based gvim support
7 %bcond_without  gnome   # without gnome-based gvim support
8 %bcond_without  kde     # kvim:)
9 %bcond_with     perl    # with perl interp
10 %bcond_with     python  # with python interp
11 %bcond_with     ruby    # with ruby interp
12 %bcond_with     tcl     # with tcl interp
13 %bcond_with     bonobo  # with bonobo component (breaks other things)
14 #
15 %define         _ver            6.2
16 %define         _patchlevel     270
17
18 Summary:        Vi IMproved - a Vi clone
19 Summary(de):    VIsual editor iMproved
20 Summary(es):    Editor visual incrementado
21 Summary(fr):    Editeur VIM : VIsual editor iMproved
22 Summary(pl):    Vi IMproved - klon edytora Vi
23 Summary(pt_BR): Editor visual incrementado
24 Summary(ru):    Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
25 Summary(tr):    Geliþmiþ bir vi sürümü
26 Summary(uk):    Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
27 Name:           vim
28 Version:        %{_ver}.%{_patchlevel}
29 Release:        0.1
30 Epoch:          4
31 License:        Charityware
32 Group:          Applications/Editors/Vim
33 Source0:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{_ver}.tar.bz2
34 # Source0-md5:  c49d360bbd069d00e2a57804f2a123d9
35 Source1:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
36 # Source1-md5:  aa0079938f636d08be71078933477d8b
37 Source2:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-extra.tar.gz
38 # Source2-md5:  db0db37baea01874867d8d2414db104c
39 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
40 # Source4-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
41 Source5:        http://freenux.org/kvim/kvim-runtime-6.2.14.tar.bz2
42 # Source5-md5:  6f633e79bcf5f35918bb0bff6850a971
43 Source10:       g%{name}-athena.desktop
44 Source11:       g%{name}-motif.desktop
45 Source12:       g%{name}-gtk.desktop
46 Source13:       g%{name}-gnome.desktop
47 Patch0:         %{name}-sysconfdir.patch
48 Patch1:         %{name}-visual.patch
49 Patch2:         %{name}-paths.patch
50 Patch3:         %{name}-ispell.patch
51 Patch4:         %{name}-ispell-axp.patch
52 Patch5:         %{name}-%{name}rc.patch
53 Patch6:         %{name}-no_libelf.patch
54 Patch7:         %{name}-egrep.patch
55 Patch8:         %{name}-spec-fix.patch
56 Patch9:         %{name}-specsyntax.patch
57 Patch10:        %{name}-specsyntax-pld.patch
58 Patch11:        %{name}-bonobo.patch
59 Patch12:        %{name}-home_etc.patch
60 #Patch12:       %{name}-dynamic_python.patch
61 Patch13:        %{name}-selinux.patch
62
63 Patch99:        http://www.opensky.ca/gnome-vim/vim-patches/%{name}-bonobo-20040115.patch
64 Patch101:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.001-100.gz
65 Patch201:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.101-200.gz
66 Patch301:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.201
67 Patch302:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.202
68 Patch303:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.203
69 Patch304:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.204
70 Patch305:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.205
71 Patch306:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.206
72 Patch307:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.207
73 Patch308:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.208
74 Patch309:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.209
75 Patch310:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.210
76 Patch311:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.211
77 Patch312:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.212
78 Patch313:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.213
79 Patch314:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.214
80 Patch315:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.215
81 Patch316:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.216
82 Patch317:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.217
83 Patch318:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.218
84 Patch319:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.219
85 Patch320:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.220
86 Patch321:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.221
87 Patch322:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.222
88 Patch323:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.223
89 Patch324:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.224
90 Patch325:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.225
91 Patch326:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.226
92 Patch327:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.227
93 Patch328:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.228
94 Patch329:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.229
95 Patch330:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.230
96 Patch331:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.231
97 Patch332:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.232
98 Patch333:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.233
99 Patch334:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.234
100 Patch335:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.235
101 Patch336:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.236
102 Patch337:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.237
103 Patch338:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.238
104 Patch339:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.239
105 Patch340:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.240
106 Patch341:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.241
107 Patch342:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.242
108 Patch343:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.243
109 Patch344:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.244
110 Patch345:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.245
111 Patch346:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.246
112 Patch347:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.247
113 Patch348:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.248
114 Patch349:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.249
115 Patch350:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.250
116 Patch351:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.251
117 Patch352:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.252
118 Patch353:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.253
119 Patch354:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.254
120 Patch355:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.255
121 Patch356:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.256
122 Patch357:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.257
123 Patch358:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.258
124 Patch359:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.259
125 Patch360:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.260
126 Patch361:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.261
127 Patch362:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.262
128 Patch363:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.263
129 Patch364:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.264
130 Patch365:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.265
131 Patch366:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.266
132 Patch367:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.267
133 Patch368:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.268
134 Patch369:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.269
135 Patch370:       ftp://ftp.vim.org/pub/editors/vim/patches/6.2.270
136 Patch999:       http://freenux.org/vim/%{name}2kvim-6.2.246.diff.bz2
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.1}
143 BuildRequires:  ncurses-devel
144 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
145 BuildRequires:  libselinux-devel
146 %{?with_motif:BuildRequires:    motif-devel}
147 %{?with_perl:BuildRequires:     perl-devel}
148 %{?with_python:BuildRequires:   python-devel}
149 %{?with_ruby:BuildRequires:     ruby}
150 %{?with_tcl:BuildRequires:      tcl-devel}
151 %if %{with bonobo}
152 BuildRequires:  libgnomeui-devel >= 2.2.0.1
153 BuildRequires:  ORBit2-devel
154 BuildRequires:  libbonoboui-devel >= 2.2.0
155 BuildRequires:  nautilus-devel >= 2.2.0
156 %endif
157 %if %{with static}
158 BuildRequires:  acl-static
159 BuildRequires:  attr-static
160 BuildRequires:  glibc-static
161 BuildRequires:  libselinux-static
162 BuildRequires:  ncurses-static
163 %else
164 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
165 Obsoletes:      %{name}-static
166 %endif
167 Requires:       %{name}-rt = %{epoch}:%{version}
168 Obsoletes:      vim-enhanced
169 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
170
171 # that's example script
172 %define         _noautoreq      '/bin/csh'
173
174 %description
175 Text editor similar to Vi. Important improvements: multiple windows,
176 multi-level undo, block highliting, folding, and many other.
177
178 %description -l cs
179 ViM je nový a vylep¹ený editor vycházející z klasického editoru vi. Vi
180 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
181 populární. ViM je obohacený funkcemi jako: podpora více oken,
182 víceúrovòové undo, zvýrazòování blokù a øadu dal¹ích u¾iteèných
183 funkcí.
184
185 %description -l de
186 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
187 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
188 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
189 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
190 Standard-vi-Programm.
191
192 %description -l es
193 El editor Visual Mejorado es una versión actualizada y con nuevas
194 características adicionales del mundialmente famoso 'vi' que acompaña
195 prácticamente todos los sistemas UN*X. Posibilita trabajar con
196 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
197 otras muchas características del 'vi'.
198
199 %description -l fr
200 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
201 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
202 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
203 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
204 blocs et autres caractéristiques au vi de base.
205
206 %description -l id
207 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
208 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
209 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
210 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
211 windows, multi-level undo, block highlighting, dll.
212
213 %description -l is
214 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
215 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
216 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
217 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
218 fleira.
219
220 %description -l it
221 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
222 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
223 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
224 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
225 dei blocchi e altro.
226
227 %description -l pl
228 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
229 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
230 folding i wiele innych.
231
232 %description -l ja
233 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
234 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
235 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
236 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
237 de blocos e mais.
238
239 %description -l pt_BR
240 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
241 características do mundialmente famoso 'vi' que acompanha praticamente
242 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
243 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
244 outras características do 'vi'.
245
246 %description -l ru
247 VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
248 ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
249 UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
250 ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
251
252 %description -l sk
253 VIM (VIsual editor iMproved) je nov¹ia a vylep¹ená verzia editoru vi.
254 Vi bol prvým skutoène obrazovkovo orientovaným editorom pre UNIX a
255 stále je veµmi populárny. VIM má oproti vi vylep¹enia ako: prácu s
256 viacerými oknami, viacnásobné undo, zvýrazòovanie blokov textu a iné.
257
258 %description -l sv
259 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
260 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
261 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
262 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
263 ändå.
264
265 %description -l tr
266 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
267 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
268
269 %description -l uk
270 VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
271 ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
272 æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
273 ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
274
275 %package -n xxd
276 Summary:        Utility to convert files to hexdump or do the reverse
277 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
278 Group:          Applications/Editors/Vim
279
280 %description -n xxd
281 xxd creates a hex dump of a given file or standard input. It can also
282 convert a hex dump back to its original binary form. Like uuencode and
283 uudecode it allows the transmission of binary data in a `mail-safe'
284 ASCII representation, but has the advantage of decoding to standard
285 output. Moreover, it can be used to perform binary file patching.
286
287 %description -n xxd -l pl
288 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
289 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
290 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
291 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
292 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
293
294 %package static
295 Summary:        Statically linked Vim
296 Summary(pl):    Statycznie skonsolidowany Vim
297 Group:          Applications/Editors/Vim
298 Provides:       vi
299 Obsoletes:      elvis-static
300 Obsoletes:      nvi
301 Obsoletes:      vi
302 Obsoletes:      vim-minimal
303
304 %description static
305 Text editor similar to Vi. This version is built with minimal feature
306 and is installed in /bin as a rescue tool. The installation of this
307 package is STRONGLY recommended.
308
309 %description static -l pl
310 Edytor tekstu podobny do Vi. Ta wersja zosta³a skonsolidowana
311 statycznie i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin
312 jako narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
313 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
314
315 %description static -l ru
316 ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
317 ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
318 ÓÉÓÔÅÍÁ.
319
320 %description static -l uk
321 ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
322 ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
323
324 %package ispell
325 Summary:        Vim with ispell support
326 Summary(pl):    Vim z wsparciem dla ispella
327 Group:          Applications/Editors/Vim
328 Requires:       %{name}-rt = %{epoch}:%{version}
329 Conflicts:      ispell < 3.2.06
330 Conflicts:      ispell-pl < 20021127-2
331
332 %description ispell
333 Text editor similar to Vi. This version is built with ispell support.
334
335 %description ispell -l pl
336 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana ze
337 wsparciem dla ispella.
338
339 %package rt
340 Summary:        Vim runtime files
341 Summary(cs):    Soubory nezbytné pro libovolný editor ViM
342 Summary(da):    Fælles filer som er nødvendige for enhver version af VIM editoren
343 Summary(de):    Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
344 Summary(es):    Ficheros comunes a todas las versiones de VIM
345 Summary(fr):    Fichiers communs indispensables pour toute version de l'éditeur VIM
346 Summary(id):    File umum yang dibutuhkan oleh semua versi editor VIM
347 Summary(is):    Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
348 Summary(it):    File comuni necessari per tutte le versioni dell'editor VIM
349 Summary(ja):    ¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î VIM ¥¨¥Ç¥£¥¿¤ÇɬÍפȤµ¤ì¤ë¶¦ÄÌ¥Õ¥¡¥¤¥ë
350 Summary(nb):    Felles filer som er nødvendige for enhver versjon av VIM editoren
351 Summary(pl):    Pliki przydatne edytorowi Vim
352 Summary(pt):    Os ficheiros comuns necessários para qualquer versão do editor VIM
353 Summary(ru):    æÁÊÌÙ, ÔÒÅÂÕÅÍÙÅ ÄÌÑ ÌÀÂÏÊ ×ÅÒÓÉÉ ÒÅÄÁËÔÏÒÁ vim
354 Summary(sk):    Spoloèné súbory potrebné pre v¹etky verzie editoru VIM
355 Summary(sl):    Skupne datoteke, potrebne s katerokoli razlièico urejevalnika VIM
356 Summary(sv):    De gemensamma filerna som behövs av alla versioner av redigeraren VIM
357 Summary(uk):    æÁÊÌÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ÂÕÄØ-ÑËϧ ×ÅÒÓ¦§ ÒÅÄÁËÔÏÒÕ vim
358 Summary(zh_CN): Èκΰ汾µÄ VIM ±à¼­Æ÷ËùÐèµÄ¹«ÓÃÎļþ¡£
359 Group:          Applications/Editors/Vim
360 Requires:       mktemp
361 Requires:       which
362 Obsoletes:      vim-common
363
364 %description rt
365 This package contains macros, documentation, syntax configuration and
366 manual pages for Vim. If you want to take advantage of Vim more
367 powerful features, you should install this package.
368
369 %description rt -l cs
370 Tento balíèek obsahuje spoleèné soubory pro v¹echny dal¹í balíèky s
371 vim.
372
373 %description rt -l da
374 The vim-rt package contains files which every VIM binary will need in
375 order to run.
376
377 %description rt -l de
378 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
379 Ausführung benötigt.
380
381 %description rt -l es
382 The vim-rt package contains files which every VIM binary will need in
383 order to run.
384
385 %description rt -l fr
386 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
387 VIM a besoin pour fonctionner.
388
389 %description rt -l id
390 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
391 berjalan.
392
393 %description rt -l is
394 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
395 til að keyra.
396
397 %description rt -l it
398 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
399 per poter funzionare.
400
401 %description rt -l pl
402 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
403 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
404 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
405
406 %description rt -l pt
407 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
408 irão necessitar para correr.
409
410 %description rt -l ru
411 ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
412 ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
413
414 %description rt -l sk
415 Balík vim-rt obsahuje súbory, ktoré bude potrebova» pre správnu
416 funkciu ka¾dá verzia editoru VIM.
417
418 %description rt -l sv
419 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
420 köra.
421
422 %description rt -l uk
423 ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
424 ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
425
426 %package -n gvim-athena
427 Summary:        Vim for X Window built with Athena
428 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
429 Group:          Applications/Editors/Vim
430 Requires:       %{name}-rt = %{epoch}:%{version}
431 Requires:       iconv
432 Obsoletes:      vim-X11
433
434 %description -n gvim-athena
435 The classic Unix text editor now also under X Window System! This
436 version is built with Athena Widget Set.
437
438 %description -n gvim-athena -l pl
439 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
440 biblioteki Athena Widget Set.
441
442 %description -n gvim-athena -l ru
443 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
444 Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
445 System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
446
447 %description -n gvim-athena -l uk
448 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
449 Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
450 Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
451
452 %package -n gvim-motif
453 Summary:        Vim for X Window built with Motif
454 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
455 Group:          Applications/Editors/Vim
456 Requires:       %{name}-rt = %{epoch}:%{version}
457 Requires:       iconv
458 Obsoletes:      vim-X11
459
460 %description -n gvim-motif
461 The classic Unix text editor now also under X Window System! This
462 version is built with Motif.
463
464 %description -n gvim-motif -l pl
465 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
466 biblioteki Motif.
467
468 %description -n gvim-motif -l ru
469 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
470 Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
471 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
472
473 %description -n gvim-motif -l uk
474 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
475 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
476 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
477
478 %package -n kvim
479 Summary:        Vim for X Window built with KDE
480 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki KDE
481 Group:          Applications/Editors/Vim
482 Requires:       %{name}-rt = %{epoch}:%{version}
483 Requires:       iconv
484 Obsoletes:      vim-X11
485 Requires:       kdelibs
486
487 %description -n kvim
488 The classic Unix text editor now also under X Window System! This
489 version is built with KDE.
490
491 %description -n kvim -l pl
492 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
493 biblioteki KDE.
494
495
496 %package -n gvim-gtk
497 Summary:        Vim for X Window built with gtk
498 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
499 Group:          Applications/Editors/Vim
500 Requires:       %{name}-rt = %{epoch}:%{version}
501 Requires:       iconv
502 Obsoletes:      vim-X11
503
504 %description -n gvim-gtk
505 The classic Unix text editor now also under X Window System! This
506 version is built with GTK.
507
508 %description -n gvim-gtk -l pl
509 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
510 biblioteki GTK.
511
512 %description -n gvim-gtk -l ru
513 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
514 GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
515 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
516 'gvim'...
517
518 %description -n gvim-gtk -l uk
519 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
520 ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
521 ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
522
523 %package -n gvim-gnome
524 Summary:        Vim for X Window built with gnome
525 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
526 Group:          Applications/Editors/Vim
527 Requires:       %{name}-rt = %{epoch}:%{version}
528 Requires:       iconv
529 Obsoletes:      vim-X11
530
531 %description -n gvim-gnome
532 The classic Unix text editor now also under X Window System! This
533 version is build with GNOME.
534
535 %description -n gvim-gnome -l pl
536 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
537 bibliotek GNOME.
538
539 %description -n gvim-gnome -l ru
540 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
541 GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
542 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
543
544 %description -n gvim-gnome -l uk
545 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
546 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
547 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
548
549 %package -n gvim-bonobo
550 Summary:        Vim for X Window built as bonobo component
551 Summary(pl):    Vim dla X Window zbudowany jako element bonobo
552 Group:          Applications/Editors/Vim
553 Requires:       %{name}-rt = %{epoch}:%{version}
554 Requires:       iconv
555 Obsoletes:      vim-X11
556
557 %description -n gvim-bonobo
558 The classic Unix text editor now also under X Window System! This
559 version is build as bonobo component.
560
561 %description -n gvim-bonobo -l pl
562 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window, zbudowana jako
563 element bonobo.
564
565 %prep
566 %setup -q -b1 -b2 -a5 -n %{name}%(echo %{_ver} | tr -d .)
567 # official patches
568 %patch101 -p0
569 %patch201 -p0
570 %patch301 -p0
571 %patch302 -p0
572 %patch303 -p0
573 %patch304 -p0
574 %patch305 -p0
575 %patch306 -p0
576 %patch307 -p0
577 %patch308 -p0
578 %patch309 -p0
579 %patch310 -p0
580 %patch311 -p0
581 %patch312 -p0
582 %patch313 -p0
583 %patch314 -p0
584 %patch315 -p0
585 %patch316 -p0
586 %patch317 -p0
587 %patch318 -p0
588 %patch319 -p0
589 %patch320 -p0
590 %patch321 -p0
591 %patch322 -p0
592 %patch323 -p0
593 %patch324 -p0
594 %patch325 -p0
595 %patch326 -p0
596 %patch327 -p0
597 %patch328 -p0
598 %patch329 -p0
599 %patch330 -p0
600 %patch331 -p0
601 %patch332 -p0
602 %patch333 -p0
603 %patch334 -p0
604 %patch335 -p0
605 %patch336 -p0
606 %patch337 -p0
607 %patch338 -p0
608 %patch339 -p0
609 %patch340 -p0
610 %patch341 -p0
611 %patch342 -p0
612 %patch343 -p0
613 %patch344 -p0
614 %patch345 -p0
615 %patch346 -p0
616 %patch347 -p0
617 %patch348 -p0
618 %patch349 -p0
619 %patch350 -p0
620 %patch351 -p0
621 %patch352 -p0
622 %patch353 -p0
623 %patch354 -p0
624 %patch355 -p0
625 %patch356 -p0
626 %patch357 -p0
627 %patch358 -p0
628 #%patch359 -p0
629 %patch360 -p0
630 %patch361 -p0
631 %patch362 -p0
632 %patch363 -p0
633 %patch364 -p0
634 %patch365 -p0
635 %patch366 -p0
636 %patch367 -p0
637 %patch368 -p0
638 %patch369 -p0
639 %patch370 -p0
640 %patch999 -p1
641
642
643 %patch0 -p1
644 %{?with_bonobo:%patch99 -p1}
645 %patch1 -p1
646 %patch2 -p1
647 %patch3 -p1
648 %ifarch alpha
649 %patch4 -p1
650 %endif
651 %patch5 -p1
652 %patch6 -p1
653 %patch7 -p1
654 %patch8 -p1
655 %patch9 -p1
656 %patch10 -p1
657 %{?with_bonobo:%patch11 -p1}
658 %patch12 -p1
659 %patch13 -p1
660
661 %build
662 cd src
663 %{__autoconf}
664 # needed to prevent deconfiguring
665 cp -f configure auto
666
667 install -d bin
668
669 %if %{with bonobo}
670 %{__make} distclean
671 %configure \
672         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
673         --with-features=huge \
674         --enable-gui=gnome2 \
675         --enable-bonobo \
676         --enable-gtk2-check \
677         --enable-gnome-check \
678         --with-x \
679         %{!?with_perl:--disable-perlinterp} \
680         %{?with_perl:--enable-perlinterp} \
681         %{!?with_python:--disable-pythoninterp} \
682         %{?with_python:--enable-pythoninterp} \
683         %{!?with_ruby:--disable-rubyinterp} \
684         %{?with_ruby:--enable-rubyinterp} \
685         %{!?with_tcl:--disable-tclinterp} \
686         %{?with_tcl:--enable-tclinterp} \
687         --disable-gpm \
688         --enable-cscope \
689         --enable-nls \
690         --with-modifiedby="PLD Linux Distribution" \
691         --with-compiledby="PLD Linux Distribution"
692
693 %{__make} vim-component vim-factory Vim_Control.server
694 mv vim-component vim-factory Vim_Control.server bin/
695 %endif
696
697 %if %{with static}
698 %{__make} distclean
699 LDFLAGS="%{rpmldflags} -static"
700 %configure \
701         --disable-gui \
702         --without-x \
703         --disable-perlinterp \
704         --disable-pythoninterp \
705         --disable-rubyinterp \
706         --disable-tclinterp \
707         --disable-cscope \
708         --disable-gpm \
709         --disable-multibyte \
710         %{?with_bonobo:--disable-bonobo} \
711         --with-features=small \
712         --with-tlib=tinfo \
713         --disable-nls \
714         --with-modifiedby="PLD Linux Distribution" \
715         --with-compiledby="PLD Linux Distribution"
716
717 %{__make} vim \
718         SPELL_OBJ=
719 mv -f vim bin/vim.static
720 LDFLAGS="%{rpmldflags}"
721 %endif
722
723 %{__make} distclean
724 %configure \
725         --disable-gui \
726         --without-x \
727         %{!?with_perl:--disable-perlinterp} \
728         %{?with_perl:--enable-perlinterp} \
729         %{!?with_python:--disable-pythoninterp} \
730         %{?with_python:--enable-pythoninterp} \
731         %{!?with_ruby:--disable-rubyinterp} \
732         %{?with_ruby:--enable-rubyinterp} \
733         %{!?with_tcl:--disable-tclinterp} \
734         %{?with_tcl:--enable-tclinterp} \
735         %{?with_bonobo:--disable-bonobo} \
736         --enable-cscope \
737         --enable-gpm \
738         --with-features=huge \
739         --enable-multibyte \
740         --with-tlib=ncurses \
741         --enable-nls \
742         --with-modifiedby="PLD Linux Distribution" \
743         --with-compiledby="PLD Linux Distribution"
744
745 %{__make} vim \
746         SPELL_OBJ=
747 mv -f vim bin/vim.ncurses
748
749 %{__make} distclean
750 %configure \
751         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
752         --disable-gui \
753         --without-x \
754         %{!?with_perl:--disable-perlinterp} \
755         %{?with_perl:--enable-perlinterp} \
756         %{!?with_python:--disable-pythoninterp} \
757         %{?with_python:--enable-pythoninterp} \
758         %{!?with_ruby:--disable-rubyinterp} \
759         %{?with_ruby:--enable-rubyinterp} \
760         %{!?with_tcl:--disable-tclinterp} \
761         %{?with_tcl:--enable-tclinterp} \
762         %{?with_bonobo:--disable-bonobo} \
763         --enable-cscope \
764         --enable-gpm \
765         --with-features=huge \
766         --enable-multibyte \
767         --with-tlib=ncurses \
768         --enable-nls \
769         --with-modifiedby="PLD Linux Distribution" \
770         --with-compiledby="PLD Linux Distribution"
771
772 %{__make} vim
773 mv -f vim bin/vim.ispell
774
775 %if %{with kde}
776 %{__make} distclean
777 %configure \
778         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
779         --with-features=huge \
780         --enable-gui=kde \
781         --with-x \
782         %{!?with_perl:--disable-perlinterp} \
783         %{?with_perl:--enable-perlinterp} \
784         %{!?with_python:--disable-pythoninterp} \
785         %{?with_python:--enable-pythoninterp} \
786         %{!?with_ruby:--disable-rubyinterp} \
787         %{?with_ruby:--enable-rubyinterp} \
788         %{!?with_tcl:--disable-tclinterp} \
789         %{?with_tcl:--enable-tclinterp} \
790         %{?with_bonobo:--disable-bonobo} \
791         --enable-cscope \
792         --with-qt-dir=%{_prefix} \
793         --with-qt-includes=%{_includedir}/qt \
794         --with-qt-libs=%{_libdir} \
795         --enable-fontset \
796         --disable-gpm \
797         --without-gnome \
798         --enable-nls \
799         --with-modifiedby="PLD Linux Distribution" \
800         --enable-kde-toolbar \
801         --with-compiledby="PLD Linux Distribution"
802
803 %{__make} vim
804 mv -f vim bin/kvim
805 %endif
806
807 %if %{with athena}
808 %{__make} distclean
809 %configure \
810         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
811         --with-features=huge \
812         --enable-gui=athena \
813         --with-x \
814         %{!?with_perl:--disable-perlinterp} \
815         %{?with_perl:--enable-perlinterp} \
816         %{!?with_python:--disable-pythoninterp} \
817         %{?with_python:--enable-pythoninterp} \
818         %{!?with_ruby:--disable-rubyinterp} \
819         %{?with_ruby:--enable-rubyinterp} \
820         %{!?with_tcl:--disable-tclinterp} \
821         %{?with_tcl:--enable-tclinterp} \
822         %{?with_bonobo:--disable-bonobo} \
823         --enable-cscope \
824         --enable-fontset \
825         --disable-gpm \
826         --without-gnome \
827         --enable-nls \
828         --with-modifiedby="PLD Linux Distribution" \
829         --with-compiledby="PLD Linux Distribution"
830
831 %{__make} vim
832 mv -f vim bin/gvim.athena
833 %endif
834
835
836 %if %{with motif}
837 %{__make} distclean
838 %configure \
839         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
840         --with-features=huge \
841         --enable-gui=motif \
842         --with-x \
843         %{!?with_perl:--disable-perlinterp} \
844         %{?with_perl:--enable-perlinterp} \
845         %{!?with_python:--disable-pythoninterp} \
846         %{?with_python:--enable-pythoninterp} \
847         %{!?with_ruby:--disable-rubyinterp} \
848         %{?with_ruby:--enable-rubyinterp} \
849         %{!?with_tcl:--disable-tclinterp} \
850         %{?with_tcl:--enable-tclinterp} \
851         %{?with_bonobo:--disable-bonobo} \
852         --enable-multibyte \
853         --enable-cscope \
854         --enable-fontset \
855         --disable-gpm \
856         --without-gnome \
857         --enable-nls \
858         --with-modifiedby="PLD Linux Distribution" \
859         --with-compiledby="PLD Linux Distribution"
860
861 %{__make} vim
862 mv -f vim bin/gvim.motif
863 %endif
864
865 %if %{with gtk}
866 %{__make} distclean
867 %configure \
868         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
869         --with-features=huge \
870         --enable-gui=gtk2 \
871         --enable-gtk2-check \
872         --with-x \
873         %{!?with_perl:--disable-perlinterp} \
874         %{?with_perl:--enable-perlinterp} \
875         %{!?with_python:--disable-pythoninterp} \
876         %{?with_python:--enable-pythoninterp} \
877         %{!?with_ruby:--disable-rubyinterp} \
878         %{?with_ruby:--enable-rubyinterp} \
879         %{!?with_tcl:--disable-tclinterp} \
880         %{?with_tcl:--enable-tclinterp} \
881         %{?with_bonobo:--disable-bonobo} \
882         --disable-gpm \
883         --enable-cscope \
884         --enable-nls \
885         --with-modifiedby="PLD Linux Distribution" \
886         --with-compiledby="PLD Linux Distribution"
887
888 %{__make} vim
889 mv -f vim bin/gvim.gtk
890 %endif
891
892 %if %{with gnome}
893 %{__make} distclean
894 %configure \
895         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
896         --with-features=huge \
897         --enable-gui=gnome2 \
898         %{?with_bonobo:--disable-bonobo} \
899         --enable-gtk2-check \
900         --enable-gnome-check \
901         --with-x \
902         %{!?with_perl:--disable-perlinterp} \
903         %{?with_perl:--enable-perlinterp} \
904         %{!?with_python:--disable-pythoninterp} \
905         %{?with_python:--enable-pythoninterp} \
906         %{!?with_ruby:--disable-rubyinterp} \
907         %{?with_ruby:--enable-rubyinterp} \
908         %{!?with_tcl:--disable-tclinterp} \
909         %{?with_tcl:--enable-tclinterp} \
910         --disable-gpm \
911         --enable-cscope \
912         --enable-nls \
913         --with-modifiedby="PLD Linux Distribution" \
914         --with-compiledby="PLD Linux Distribution"
915
916 %{__make} vim
917 mv -f vim bin/gvim.gnome
918 %endif
919
920
921 %{__make} xxd/xxd languages
922
923 %install
924 rm -rf $RPM_BUILD_ROOT
925 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
926         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
927         $RPM_BUILD_ROOT%{_desktopdir}
928
929 %{__make} install \
930         DESTDIR=$RPM_BUILD_ROOT
931
932 rm -f $RPM_BUILD_ROOT%{_bindir}/*
933
934 %if %{with static}
935 install -m755 src/bin/vim.ncurses       $RPM_BUILD_ROOT%{_bindir}/vim
936 install -m755 src/bin/vim.static        $RPM_BUILD_ROOT/bin/vi
937 %else
938 install -m755 src/bin/vim.ncurses       $RPM_BUILD_ROOT/bin/vi
939 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
940 %endif
941
942 install -m755 src/bin/vim.ispell        $RPM_BUILD_ROOT%{_bindir}/vim.ispell
943 install -m755 src/xxd/xxd       $RPM_BUILD_ROOT%{_bindir}/xxd
944 install -m755 src/vimtutor      $RPM_BUILD_ROOT%{_bindir}/vimtutor
945
946 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
947
948 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
949 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
950
951 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
952
953 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
954 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
955 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
956 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
957 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
958
959 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
960 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
961
962 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
963 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
964 ln -sf vi  $RPM_BUILD_ROOT/bin/view
965 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
966
967 %if %{with athena}
968 install -m755 src/bin/gvim.athena       $RPM_BUILD_ROOT%{_bindir}/gvim.athena
969 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
970 %endif
971 %if %{with motif}
972 install -m755 src/bin/gvim.motif        $RPM_BUILD_ROOT%{_bindir}/gvim.motif
973 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
974 %endif
975 %if %{with gnome}
976 install -m755 src/bin/gvim.gnome        $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
977 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
978 %endif
979 %if %{with gtk}
980 install -m755 src/bin/gvim.gtk  $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
981 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
982 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
983 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
984 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
985 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
986 %endif
987
988 %if %{with kde}
989 install -m755 src/bin/kvim  $RPM_BUILD_ROOT%{_bindir}/kvim
990 install -d $RPM_BUILD_ROOT%{_desktopdir}/kde
991 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22}/actions
992 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,48x48,64x64}/apps
993 install runtime/hi16-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/actions
994 install runtime/hi22-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/actions
995 install runtime/kvim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/kvim.png
996 install runtime/kvim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/kvim.png
997 install runtime/kvim64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/kvim.png
998 install runtime/KVim.desktop $RPM_BUILD_ROOT%{_desktopdir}/kde
999 ##mv $RPM_BUILD_ROOT{%{_datadir}/applnk/Editors/KVim.desktop,%{_desktopdir}/kde}
1000 echo "Categories=Qt;KDE;Utility;TextEditor" >> $RPM_BUILD_ROOT%{_desktopdir}/kde/KVim.desktop
1001 ##mv $RPM_BUILD_ROOT%{_iconsdir}/{hicolor,crystalsvg}
1002 %endif
1003 install -d $RPM_BUILD_ROOT%{_datadir}/apps/kvim
1004 install runtime/kde-tips $RPM_BUILD_ROOT%{_datadir}/apps/kvim/tips
1005
1006 # Bonobo
1007 %if %{with bonobo}
1008 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
1009 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
1010 install -m755 src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
1011 %endif
1012
1013 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1014
1015 %clean
1016 rm -rf $RPM_BUILD_ROOT
1017
1018 %files
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_bindir}/vim
1021 %attr(755,root,root) %{_bindir}/rvim
1022
1023 %if %{with static}
1024 %files static
1025 %defattr(644,root,root,755)
1026 %endif
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) /bin/*
1029
1030 %{_mandir}/man1/vi.1*
1031 %{_mandir}/man1/ex.1*
1032 %{_mandir}/man1/view.1*
1033 %{_mandir}/man1/rview.1*
1034 %lang(fi) %{_mandir}/fi/man1/vi.1*
1035 %lang(fi) %{_mandir}/fi/man1/ex.1*
1036 %lang(fi) %{_mandir}/fi/man1/view.1*
1037 %lang(fi) %{_mandir}/fi/man1/rview.1*
1038 %lang(fr) %{_mandir}/fr/man1/vi.1*
1039 %lang(fr) %{_mandir}/fr/man1/ex.1*
1040 %lang(fr) %{_mandir}/fr/man1/view.1*
1041 %lang(fr) %{_mandir}/fr/man1/rview.1*
1042 %lang(id) %{_mandir}/id/man1/vi.1*
1043 %lang(id) %{_mandir}/id/man1/ex.1*
1044 %lang(id) %{_mandir}/id/man1/view.1*
1045 %lang(id) %{_mandir}/id/man1/rview.1*
1046 %lang(pl) %{_mandir}/pl/man1/vi.1*
1047 %lang(pl) %{_mandir}/pl/man1/ex.1*
1048 %lang(pl) %{_mandir}/pl/man1/view.1*
1049 %lang(pl) %{_mandir}/pl/man1/rview.1*
1050
1051 %files ispell
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_bindir}/vim.ispell
1054
1055 %files -n xxd
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/xxd
1058 %{_mandir}/man1/xxd.1*
1059
1060 %files rt
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{_bindir}/vimtutor
1063 %dir %{_sysconfdir}/vim
1064 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
1065 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
1066
1067 %dir %{_datadir}/vim
1068 %dir %{_datadir}/vim/v*
1069 %dir %{_datadir}/vim/v*/doc
1070 %doc %{_datadir}/vim/v*/doc/*.txt
1071 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1072 %verify(not size mtime md5) %{_datadir}/vim/v*/doc/tags
1073 %{_datadir}/vim/v*/ftplugin
1074 %{_datadir}/vim/v*/indent
1075 %{_datadir}/vim/v*/keymap
1076 %dir %{_datadir}/vim/v*/lang
1077 %doc %{_datadir}/vim/v*/lang/README*
1078
1079 %lang(af) %{_datadir}/vim/v*/lang/af
1080 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB
1081 %lang(cs) %{_datadir}/vim/v*/lang/cs
1082 %lang(de) %{_datadir}/vim/v*/lang/de
1083 %lang(es) %{_datadir}/vim/v*/lang/es
1084 %lang(fr) %{_datadir}/vim/v*/lang/fr
1085 %lang(it) %{_datadir}/vim/v*/lang/it
1086 %lang(ja) %{_datadir}/vim/v*/lang/ja*
1087 %lang(ko) %{_datadir}/vim/v*/lang/ko
1088 %lang(pl) %{_datadir}/vim/v*/lang/pl
1089 %lang(sk) %{_datadir}/vim/v*/lang/sk
1090 %lang(nb) %{_datadir}/vim/v*/lang/no
1091 #%lang(tr) %{_datadir}/vim/v*/lang/tr
1092 %lang(uk) %{_datadir}/vim/v*/lang/uk
1093 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
1094 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW*
1095
1096 %lang(af) %{_datadir}/vim/v*/lang/menu_af_af*
1097 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs_cz*
1098 %lang(de) %{_datadir}/vim/v*/lang/menu_de_de*
1099 %lang(es) %{_datadir}/vim/v*/lang/menu_es_es*
1100 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1101 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr_fr*
1102 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu_hu*
1103 %lang(it) %{_datadir}/vim/v*/lang/menu_it_it*
1104 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja_jp*
1105 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko_kr*
1106 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl_nl*
1107 %lang(nb) %{_datadir}/vim/v*/lang/menu_no_no*
1108 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl_pl*
1109 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt_br*
1110 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk_sk*
1111 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr_yu*
1112 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk_ua*
1113 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1114 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1115
1116 %{_datadir}/vim/v*/macros
1117 %{_datadir}/vim/v*/plugin
1118 %{_datadir}/vim/v*/print
1119 %{_datadir}/vim/v*/syntax
1120 %{_datadir}/vim/v*/tools
1121 %{_datadir}/vim/v*/tutor
1122 %{_datadir}/vim/v*/colors
1123 %{_datadir}/vim/v*/compiler
1124 %{_datadir}/vim/v*/*.vim
1125
1126 %{_mandir}/man1/vim*
1127 %{_mandir}/man1/rvim.*
1128 %lang(fi) %{_mandir}/fi/man1/vim*
1129 %lang(fi) %{_mandir}/fi/man1/rvim.*
1130 %lang(fi) %{_mandir}/fi/man1/gvi*
1131 %lang(fi) %{_mandir}/fi/man1/rgv*
1132 %lang(fr) %{_mandir}/fr/man1/vim*
1133 %lang(fr) %{_mandir}/fr/man1/rvim.*
1134 %lang(fr) %{_mandir}/fr/man1/gvi*
1135 %lang(fr) %{_mandir}/fr/man1/rgv*
1136 %lang(id) %{_mandir}/id/man1/vim*
1137 %lang(id) %{_mandir}/id/man1/rvim.*
1138 %lang(id) %{_mandir}/id/man1/gvi*
1139 %lang(id) %{_mandir}/id/man1/rgv*
1140 %lang(it) %{_mandir}/it/man1/vim*
1141 %lang(pl) %{_mandir}/pl/man1/vim*
1142 %lang(pl) %{_mandir}/pl/man1/rvim.*
1143 %lang(pl) %{_mandir}/pl/man1/gvi*
1144 %lang(pl) %{_mandir}/pl/man1/rgv*
1145
1146 %if %{with athena}
1147 %files -n gvim-athena
1148 %defattr(644,root,root,755)
1149 %attr(755,root,root) %{_bindir}/gvim.athena
1150 %{_desktopdir}/gvim-athena.desktop
1151 %endif
1152
1153 %if %{with motif}
1154 %files -n gvim-motif
1155 %defattr(644,root,root,755)
1156 %attr(755,root,root) %{_bindir}/gvim.motif
1157 %{_desktopdir}/gvim-motif.desktop
1158 %endif
1159
1160 %if %{with kde}
1161 %files -n kvim
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_bindir}/kvim
1164 %{_desktopdir}/kde/KVim.desktop
1165 %{_iconsdir}/hicolor/*/apps/kvim.png
1166 %{_iconsdir}/hicolor/*/actions/*make*.png
1167 %{_datadir}/apps/kvim
1168 %endif
1169
1170
1171 %if %{with gtk}
1172 %files -n gvim-gtk
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{_bindir}/gvim.gtk
1175 %attr(755,root,root) %{_bindir}/rgvim
1176 %attr(755,root,root) %{_bindir}/rgview
1177 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1178 %{_desktopdir}/gvim-gtk.desktop
1179 %endif
1180
1181 %if %{with gnome}
1182 %files -n gvim-gnome
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{_bindir}/gvim.gnome
1185 %{_desktopdir}/gvim-gnome.desktop
1186 %endif
1187
1188 %if %{with bonobo}
1189 %files -n gvim-bonobo
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_bindir}/vim-component
1192 %attr(755,root,root) %{_bindir}/vim-factory
1193 %{_libdir}/bonobo/servers/*
1194 %endif
This page took 0.182803 seconds and 3 git commands to generate.