]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- new
[packages/vim.git] / vim.spec
1 # TODO:
2 # - some nice icon
3 #
4 # Conditional build:
5 %bcond_without  static          # don't build static version
6 %bcond_without  athena          # don't build Athena Widgets-based gvim
7 %bcond_without  motif           # don't build Motif-based gvim
8 %bcond_without  gtk             # don't build GTK+-based gvim support
9 %bcond_without  gnome           # don't build GNOME-based gvim support
10 %bcond_without  kde             # don't build kvim
11 %bcond_with     perl            # with Perl interp
12 %bcond_with     python          # with Python interp
13 %bcond_with     ruby            # with Ruby interp
14 %bcond_with     tcl             # with Tcl interp
15 %bcond_with     bonobo          # with bonobo component (breaks other things)
16 %bcond_without  selinux         # without selinux support
17 %bcond_without  ispell          # don't build vim.ispell
18 %bcond_without  home_etc        # without home_etc support
19 #
20 %define         _ver            6.3
21 %define         _patchlevel     068
22
23 Summary:        Vi IMproved - a Vi clone
24 Summary(de):    VIsual editor iMproved
25 Summary(es):    Editor visual incrementado
26 Summary(fr):    Editeur VIM : VIsual editor iMproved
27 Summary(pl):    Vi IMproved - klon edytora Vi
28 Summary(pt_BR): Editor visual incrementado
29 Summary(ru):    Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
30 Summary(tr):    Geliþmiþ bir vi sürümü
31 Summary(uk):    Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
32 Name:           vim
33 Version:        %{_ver}.%{_patchlevel}
34 Release:        1
35 Epoch:          4
36 License:        Charityware
37 Group:          Applications/Editors/Vim
38 Source0:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{_ver}.tar.bz2
39 # Source0-md5:  821fda8f14d674346b87e3ef9cb96389
40 Source1:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
41 # Source1-md5:  5395c4dacbf1c5008b22c4b86794e8a7
42 Source2:        ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-extra.tar.gz
43 # Source2-md5:  6e4bd6c8122bcb9dc576514bdb52484e
44 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
45 # Source4-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
46 Source5:        http://freenux.org/kvim/kvim-runtime-6.2.14.tar.bz2
47 # Source5-md5:  6f633e79bcf5f35918bb0bff6850a971
48 Source6:        http://skawina.eu.org/mikolaj/usr_doc_pl.zip
49 # Source6-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=1120
56 Source15:       php.vim
57 # http://www.vim.org/scripts/script.php?script_id=415 (1.13)
58 Source16:       zenburn.vim
59 Patch0:         %{name}-sysconfdir.patch
60 Patch1:         %{name}-visual.patch
61 Patch2:         %{name}-paths.patch
62 Patch3:         %{name}-ispell.patch
63 Patch4:         %{name}-ispell-axp.patch
64 Patch5:         %{name}-%{name}rc.patch
65 Patch6:         %{name}-no_libelf.patch
66 Patch7:         %{name}-egrep.patch
67 Patch8:         k%{name}-desktop.patch
68 Patch9:         %{name}-specsyntax.patch
69 Patch10:        %{name}-specsyntax-pld.patch
70 Patch11:        %{name}-bonobo.patch
71 Patch12:        %{name}-home_etc.patch
72 #Patch12:       %{name}-dynamic_python.patch
73 Patch13:        %{name}-selinux.patch
74 Patch14:        %{name}-specsyntax4.patch
75 Patch15:        %{name}-po.patch
76 Patch16:        %{name}-filetype_vim-perl_tests.patch
77 Patch17:        %{name}-pl.po.patch
78 Patch18:        %{name}-po-syntax.patch
79 Patch19:        %{name}-modprobe.patch
80 Patch20:        %{name}-CAN-2005-0069.patch
81
82 Patch99:        http://www.opensky.ca/gnome-vim/vim-patches/%{name}-bonobo-20040115.patch
83 Patch101:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.001
84 Patch102:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.002
85 Patch103:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.003
86 Patch104:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.004
87 Patch105:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.005
88 Patch106:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.006
89 Patch107:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.007
90 Patch108:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.008
91 Patch109:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.009
92 Patch110:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.010
93 Patch111:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.011
94 Patch112:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.012
95 Patch113:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.013
96 Patch114:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.014
97 Patch115:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.015
98 Patch116:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.016
99 Patch117:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.017
100 Patch118:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.018
101 Patch119:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.019
102 Patch120:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.020
103 Patch121:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.021
104 Patch122:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.022
105 Patch123:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.023
106 Patch124:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.024
107 Patch125:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.025
108 Patch126:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.026
109 Patch127:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.027
110 Patch128:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.028
111 Patch129:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.029
112 Patch130:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.030
113 Patch131:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.031
114 Patch132:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.032
115 Patch133:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.033
116 Patch134:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.034
117 Patch135:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.035
118 Patch136:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.036
119 Patch137:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.037
120 Patch138:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.038
121 Patch139:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.039
122 Patch140:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.040
123 Patch141:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.041
124 Patch142:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.042
125 Patch143:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.043
126 Patch144:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.044
127 Patch145:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.045
128 Patch146:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.046
129 Patch147:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.047
130 Patch148:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.048
131 Patch149:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.049
132 Patch150:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.050
133 Patch151:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.051
134 Patch152:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.052
135 Patch153:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.053
136 Patch154:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.054
137 Patch155:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.055
138 Patch156:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.056
139 Patch157:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.057
140 Patch158:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.058
141 Patch159:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.059
142 Patch160:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.060
143 Patch161:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.061
144 Patch162:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.062
145 Patch163:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.063
146 Patch164:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.064
147 Patch165:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.065
148 Patch166:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.066
149 Patch167:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.067
150 Patch168:       ftp://ftp.vim.org/pub/editors/vim/patches/6.3/6.3.068
151 Patch999:       http://freenux.org/vim/%{name}2kvim-6.3b.diff.bz2
152 URL:            http://www.vim.org/
153 %{?with_athena:BuildRequires:   XFree86-devel}
154 BuildRequires:  acl-devel
155 BuildRequires:  autoconf
156 BuildRequires:  gettext-devel
157 BuildRequires:  gpm-devel
158 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.2.1}
159 %{?with_kde:BuildRequires:      kdelibs-devel >= 9:3.0.0}
160 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
161 %{?with_selinux:BuildRequires:  libselinux-devel}
162 %{?with_motif:BuildRequires:    openmotif-devel}
163 BuildRequires:  ncurses-devel
164 %{?with_perl:BuildRequires:     perl-devel}
165 %{?with_python:BuildRequires:   python-devel}
166 %{?with_ruby:BuildRequires:     ruby}
167 %{?with_tcl:BuildRequires:      tcl-devel}
168 %if %{with bonobo}
169 BuildRequires:  libgnomeui-devel >= 2.2.0.1
170 BuildRequires:  ORBit2-devel
171 BuildRequires:  libbonoboui-devel >= 2.2.0
172 BuildRequires:  nautilus-devel >= 2.2.0
173 %endif
174 %if %{with static}
175 BuildRequires:  acl-static
176 BuildRequires:  attr-static
177 BuildRequires:  glibc-static
178 %{?with_selinux:BuildRequires:  libselinux-static}
179 BuildRequires:  ncurses-static
180 %else
181 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
182 Obsoletes:      %{name}-static
183 %endif
184 BuildRequires:  unzip
185 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
186 Obsoletes:      vim-enhanced
187 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
188
189 # that's example script
190 %define         _noautoreq      '/bin/csh'
191
192 %description
193 Text editor similar to Vi. Important improvements: multiple windows,
194 multi-level undo, block highliting, folding, and many other.
195
196 %description -l cs
197 ViM je nový a vylep¹ený editor vycházející z klasického editoru vi. Vi
198 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
199 populární. ViM je obohacený funkcemi jako: podpora více oken,
200 víceúrovòové undo, zvýrazòování blokù a øadu dal¹ích u¾iteèných
201 funkcí.
202
203 %description -l de
204 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
205 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
206 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
207 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
208 Standard-vi-Programm.
209
210 %description -l es
211 El editor Visual Mejorado es una versión actualizada y con nuevas
212 características adicionales del mundialmente famoso 'vi' que acompaña
213 prácticamente todos los sistemas UN*X. Posibilita trabajar con
214 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
215 otras muchas características del 'vi'.
216
217 %description -l fr
218 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
219 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
220 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
221 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
222 blocs et autres caractéristiques au vi de base.
223
224 %description -l id
225 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
226 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
227 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
228 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
229 windows, multi-level undo, block highlighting, dll.
230
231 %description -l is
232 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
233 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
234 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
235 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
236 fleira.
237
238 %description -l it
239 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
240 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
241 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
242 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
243 dei blocchi e altro.
244
245 %description -l pl
246 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
247 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
248 folding i wiele innych.
249
250 %description -l ja
251 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
252 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
253 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
254 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
255 de blocos e mais.
256
257 %description -l pt_BR
258 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
259 características do mundialmente famoso 'vi' que acompanha praticamente
260 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
261 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
262 outras características do 'vi'.
263
264 %description -l ru
265 VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
266 ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
267 UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
268 ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
269
270 %description -l sk
271 VIM (VIsual editor iMproved) je nov¹ia a vylep¹ená verzia editoru vi.
272 Vi bol prvým skutoène obrazovkovo orientovaným editorom pre UNIX a
273 stále je veµmi populárny. VIM má oproti vi vylep¹enia ako: prácu s
274 viacerými oknami, viacnásobné undo, zvýrazòovanie blokov textu a iné.
275
276 %description -l sv
277 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
278 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
279 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
280 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
281 ändå.
282
283 %description -l tr
284 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
285 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
286
287 %description -l uk
288 VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
289 ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
290 æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
291 ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
292
293 %package -n xxd
294 Summary:        Utility to convert files to hexdump or do the reverse
295 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
296 Group:          Applications/Editors/Vim
297
298 %description -n xxd
299 xxd creates a hex dump of a given file or standard input. It can also
300 convert a hex dump back to its original binary form. Like uuencode and
301 uudecode it allows the transmission of binary data in a `mail-safe'
302 ASCII representation, but has the advantage of decoding to standard
303 output. Moreover, it can be used to perform binary file patching.
304
305 %description -n xxd -l pl
306 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
307 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
308 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
309 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
310 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
311
312 %package static
313 Summary:        Statically linked Vim
314 Summary(pl):    Statycznie skonsolidowany Vim
315 Group:          Applications/Editors/Vim
316 Provides:       vi
317 Obsoletes:      elvis-static
318 Obsoletes:      nvi
319 Obsoletes:      vi
320 Obsoletes:      vim-minimal
321
322 %description static
323 Text editor similar to Vi. This version is built with minimal feature
324 and is installed in /bin as a rescue tool. The installation of this
325 package is STRONGLY recommended.
326
327 %description static -l pl
328 Edytor tekstu podobny do Vi. Ta wersja zosta³a skonsolidowana
329 statycznie i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin
330 jako narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
331 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
332
333 %description static -l ru
334 ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
335 ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
336 ÓÉÓÔÅÍÁ.
337
338 %description static -l uk
339 ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
340 ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
341
342 %package ispell
343 Summary:        Vim with ispell support
344 Summary(pl):    Vim z wsparciem dla ispella
345 Group:          Applications/Editors/Vim
346 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
347 Conflicts:      ispell < 3.2.06
348 Conflicts:      ispell-pl < 20021127-2
349
350 %description ispell
351 Text editor similar to Vi. This version is built with ispell support.
352
353 %description ispell -l pl
354 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana ze
355 wsparciem dla ispella.
356
357 %package rt
358 Summary:        Vim runtime files
359 Summary(cs):    Soubory nezbytné pro libovolný editor ViM
360 Summary(da):    Fælles filer som er nødvendige for enhver version af VIM editoren
361 Summary(de):    Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
362 Summary(es):    Ficheros comunes a todas las versiones de VIM
363 Summary(fr):    Fichiers communs indispensables pour toute version de l'éditeur VIM
364 Summary(id):    File umum yang dibutuhkan oleh semua versi editor VIM
365 Summary(is):    Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
366 Summary(it):    File comuni necessari per tutte le versioni dell'editor VIM
367 Summary(ja):    ¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î VIM ¥¨¥Ç¥£¥¿¤ÇɬÍפȤµ¤ì¤ë¶¦ÄÌ¥Õ¥¡¥¤¥ë
368 Summary(nb):    Felles filer som er nødvendige for enhver versjon av VIM editoren
369 Summary(pl):    Pliki przydatne edytorowi Vim
370 Summary(pt):    Os ficheiros comuns necessários para qualquer versão do editor VIM
371 Summary(ru):    æÁÊÌÙ, ÔÒÅÂÕÅÍÙÅ ÄÌÑ ÌÀÂÏÊ ×ÅÒÓÉÉ ÒÅÄÁËÔÏÒÁ vim
372 Summary(sk):    Spoloèné súbory potrebné pre v¹etky verzie editoru VIM
373 Summary(sl):    Skupne datoteke, potrebne s katerokoli razlièico urejevalnika VIM
374 Summary(sv):    De gemensamma filerna som behövs av alla versioner av redigeraren VIM
375 Summary(uk):    æÁÊÌÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ÂÕÄØ-ÑËϧ ×ÅÒÓ¦§ ÒÅÄÁËÔÏÒÕ vim
376 Summary(zh_CN): Èκΰ汾µÄ VIM ±à¼­Æ÷ËùÐèµÄ¹«ÓÃÎļþ¡£
377 Group:          Applications/Editors/Vim
378 Requires:       mktemp
379 Requires:       which
380 Obsoletes:      vim-common
381
382 %description rt
383 This package contains macros, documentation, syntax configuration and
384 manual pages for Vim. If you want to take advantage of Vim more
385 powerful features, you should install this package.
386
387 %description rt -l cs
388 Tento balíèek obsahuje spoleèné soubory pro v¹echny dal¹í balíèky s
389 vim.
390
391 %description rt -l da
392 The vim-rt package contains files which every VIM binary will need in
393 order to run.
394
395 %description rt -l de
396 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
397 Ausführung benötigt.
398
399 %description rt -l es
400 The vim-rt package contains files which every VIM binary will need in
401 order to run.
402
403 %description rt -l fr
404 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
405 VIM a besoin pour fonctionner.
406
407 %description rt -l id
408 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
409 berjalan.
410
411 %description rt -l is
412 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
413 til að keyra.
414
415 %description rt -l it
416 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
417 per poter funzionare.
418
419 %description rt -l pl
420 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
421 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
422 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
423
424 %description rt -l pt
425 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
426 irão necessitar para correr.
427
428 %description rt -l ru
429 ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
430 ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
431
432 %description rt -l sk
433 Balík vim-rt obsahuje súbory, ktoré bude potrebova» pre správnu
434 funkciu ka¾dá verzia editoru VIM.
435
436 %description rt -l sv
437 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
438 köra.
439
440 %description rt -l uk
441 ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
442 ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
443
444 %package -n gvim-athena
445 Summary:        Vim for X Window built with Athena
446 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
447 Group:          Applications/Editors/Vim
448 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
449 Requires:       iconv
450 Obsoletes:      vim-X11
451
452 %description -n gvim-athena
453 The classic Unix text editor now also under X Window System! This
454 version is built with Athena Widget Set.
455
456 %description -n gvim-athena -l pl
457 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
458 biblioteki Athena Widget Set.
459
460 %description -n gvim-athena -l ru
461 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
462 Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
463 System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
464
465 %description -n gvim-athena -l uk
466 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
467 Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
468 Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
469
470 %package -n gvim-motif
471 Summary:        Vim for X Window built with Motif
472 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
473 Group:          Applications/Editors/Vim
474 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
475 Requires:       iconv
476 Obsoletes:      vim-X11
477
478 %description -n gvim-motif
479 The classic Unix text editor now also under X Window System! This
480 version is built with Motif.
481
482 %description -n gvim-motif -l pl
483 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
484 biblioteki Motif.
485
486 %description -n gvim-motif -l ru
487 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
488 Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
489 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
490
491 %description -n gvim-motif -l uk
492 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
493 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
494 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
495
496 %package -n kvim
497 Summary:        Vim for X Window built with KDE
498 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki KDE
499 Group:          Applications/Editors/Vim
500 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
501 Requires:       iconv
502 Obsoletes:      vim-X11
503
504 %description -n kvim
505 The classic Unix text editor now also under X Window System! This
506 version is built with KDE.
507
508 %description -n kvim -l pl
509 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
510 biblioteki KDE.
511
512 %package -n gvim-gtk
513 Summary:        Vim for X Window built with gtk
514 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
515 Group:          Applications/Editors/Vim
516 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
517 Requires:       iconv
518 Obsoletes:      vim-X11
519
520 %description -n gvim-gtk
521 The classic Unix text editor now also under X Window System! This
522 version is built with GTK.
523
524 %description -n gvim-gtk -l pl
525 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
526 biblioteki GTK.
527
528 %description -n gvim-gtk -l ru
529 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
530 GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
531 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
532 'gvim'...
533
534 %description -n gvim-gtk -l uk
535 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
536 ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
537 ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
538
539 %package -n gvim-gnome
540 Summary:        Vim for X Window built with GNOME
541 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
542 Group:          Applications/Editors/Vim
543 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
544 Requires:       iconv
545 Obsoletes:      vim-X11
546
547 %description -n gvim-gnome
548 The classic Unix text editor now also under X Window System! This
549 version is build with GNOME.
550
551 %description -n gvim-gnome -l pl
552 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
553 bibliotek GNOME.
554
555 %description -n gvim-gnome -l ru
556 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
557 GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
558 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
559
560 %description -n gvim-gnome -l uk
561 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
562 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
563 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
564
565 %package -n gvim-bonobo
566 Summary:        Vim for X Window built as bonobo component
567 Summary(pl):    Vim dla X Window zbudowany jako element bonobo
568 Group:          Applications/Editors/Vim
569 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
570 Requires:       iconv
571 Obsoletes:      vim-X11
572
573 %description -n gvim-bonobo
574 The classic Unix text editor now also under X Window System! This
575 version is build as bonobo component.
576
577 %description -n gvim-bonobo -l pl
578 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window, zbudowana jako
579 element bonobo.
580
581 %prep
582 %setup -q -b1 -b2 -a5 -n %{name}%(echo %{_ver} | tr -d .)
583
584 # official patches
585 %patch101 -p0
586 %patch102 -p0
587 %patch103 -p0
588 %patch104 -p0
589 %patch105 -p0
590 %patch106 -p0
591 %patch107 -p0
592 %patch108 -p0
593 %patch109 -p0
594 %patch110 -p0
595 %patch111 -p0
596 %patch112 -p0
597 %patch113 -p0
598 %patch114 -p0
599 %patch115 -p0
600 %patch116 -p0
601 %patch117 -p0
602 %patch118 -p0
603 %patch119 -p0
604 %patch120 -p0
605 %patch121 -p0
606 %patch122 -p0
607 %patch123 -p0
608 %patch124 -p0
609 %patch125 -p0
610 %patch126 -p0
611 %patch127 -p0
612 %patch128 -p0
613 %patch129 -p0
614 %patch130 -p0
615 %patch131 -p0
616 %patch132 -p0
617 %patch133 -p0
618 %patch134 -p0
619 %patch135 -p0
620 %patch136 -p0
621 %patch137 -p0
622 %patch138 -p0
623 %patch139 -p0
624 %patch140 -p0
625 %patch141 -p0
626 %patch142 -p0
627 %patch143 -p0
628 %patch144 -p0
629 %patch145 -p0
630 %patch146 -p0
631 %patch147 -p0
632 %patch148 -p0
633 %patch149 -p0
634 %patch150 -p0
635 %patch151 -p0
636 %patch152 -p0
637 %patch153 -p0
638 %patch154 -p0
639 %patch155 -p0
640 %patch156 -p0
641 %patch157 -p0
642 %patch158 -p0
643 %patch159 -p0
644 %patch160 -p0
645 %patch161 -p0
646 %patch162 -p0
647 %patch163 -p0
648 %patch164 -p0
649 %patch165 -p0
650 %patch166 -p0
651 %patch167 -p0
652
653 # kvim
654 %patch999 -p1
655
656 %patch0 -p1
657 %{?with_bonobo:%patch99 -p1}
658 %patch1 -p1
659 %patch2 -p1
660 %patch3 -p1
661 %ifarch alpha
662 %patch4 -p1
663 %endif
664 %patch5 -p1
665 %patch6 -p1
666 %patch7 -p1
667 %patch8 -p1
668 %patch9 -p1
669 %patch10 -p1
670 %{?with_bonobo:%patch11 -p1}
671 %{?with_home_etc:%patch12 -p1}
672 %{?with_selinux:%patch13 -p1}
673 %patch14 -p1
674 %patch15 -p1
675 %patch16 -p1
676 %patch17 -p1
677 %patch18 -p1
678 %patch19 -p0 -b .modprobe
679 %patch20 -p1
680
681 install %{SOURCE15} runtime/indent
682 install %{SOURCE16} runtime/colors
683
684 %build
685 cd src
686 %{__autoconf}
687 # needed to prevent deconfiguring
688 cp -f configure auto
689
690 install -d bin
691
692 %if %{with bonobo}
693 %{__make} distclean
694 %configure \
695         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
696         --with-features=huge \
697         --enable-gui=gnome2 \
698         --enable-bonobo \
699         --enable-gtk2-check \
700         --enable-gnome-check \
701         --with-x \
702         %{!?with_perl:--disable-perlinterp} \
703         %{?with_perl:--enable-perlinterp} \
704         %{!?with_python:--disable-pythoninterp} \
705         %{?with_python:--enable-pythoninterp} \
706         %{!?with_ruby:--disable-rubyinterp} \
707         %{?with_ruby:--enable-rubyinterp} \
708         %{!?with_tcl:--disable-tclinterp} \
709         %{?with_tcl:--enable-tclinterp} \
710         --disable-gpm \
711         --enable-cscope \
712         --enable-nls \
713         --with-modifiedby="PLD Linux Distribution" \
714         --with-compiledby="PLD Linux Distribution"
715
716 %{__make} vim-component vim-factory Vim_Control.server
717 mv vim-component vim-factory Vim_Control.server bin/
718 %endif
719
720 %if %{with static}
721 %{__make} distclean
722 LDFLAGS="%{rpmldflags} -static"
723 %configure \
724         --disable-gui \
725         --without-x \
726         --disable-perlinterp \
727         --disable-pythoninterp \
728         --disable-rubyinterp \
729         --disable-tclinterp \
730         --disable-cscope \
731         --disable-gpm \
732         --disable-multibyte \
733         %{?with_bonobo:--disable-bonobo} \
734         --with-features=small \
735         --with-tlib=tinfo \
736         --disable-nls \
737         --with-modifiedby="PLD Linux Distribution" \
738         --with-compiledby="PLD Linux Distribution"
739
740 %{__make} vim \
741         SPELL_OBJ=
742 mv -f vim bin/vim.static
743 LDFLAGS="%{rpmldflags}"
744 %endif
745
746 %{__make} distclean
747 %configure \
748         --disable-gui \
749         --without-x \
750         %{!?with_perl:--disable-perlinterp} \
751         %{?with_perl:--enable-perlinterp} \
752         %{!?with_python:--disable-pythoninterp} \
753         %{?with_python:--enable-pythoninterp} \
754         %{!?with_ruby:--disable-rubyinterp} \
755         %{?with_ruby:--enable-rubyinterp} \
756         %{!?with_tcl:--disable-tclinterp} \
757         %{?with_tcl:--enable-tclinterp} \
758         %{?with_bonobo:--disable-bonobo} \
759         --enable-cscope \
760         --enable-gpm \
761         --with-features=huge \
762         --enable-multibyte \
763         --with-tlib=ncurses \
764         --enable-nls \
765         --with-modifiedby="PLD Linux Distribution" \
766         --with-compiledby="PLD Linux Distribution"
767
768 %{__make} vim \
769         SPELL_OBJ=
770 mv -f vim bin/vim.ncurses
771 %if %{with ispell}
772 %{__make} distclean
773 %configure \
774         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
775         --disable-gui \
776         --without-x \
777         %{!?with_perl:--disable-perlinterp} \
778         %{?with_perl:--enable-perlinterp} \
779         %{!?with_python:--disable-pythoninterp} \
780         %{?with_python:--enable-pythoninterp} \
781         %{!?with_ruby:--disable-rubyinterp} \
782         %{?with_ruby:--enable-rubyinterp} \
783         %{!?with_tcl:--disable-tclinterp} \
784         %{?with_tcl:--enable-tclinterp} \
785         %{?with_bonobo:--disable-bonobo} \
786         --enable-cscope \
787         --enable-gpm \
788         --with-features=huge \
789         --enable-multibyte \
790         --with-tlib=ncurses \
791         --enable-nls \
792         --with-modifiedby="PLD Linux Distribution" \
793         --with-compiledby="PLD Linux Distribution"
794
795 %{__make} vim
796 mv -f vim bin/vim.ispell
797 %endif
798 %if %{with kde}
799 %{__make} distclean
800 %configure \
801         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
802         --with-features=huge \
803         --enable-gui=kde \
804         --with-x \
805         %{!?with_perl:--disable-perlinterp} \
806         %{?with_perl:--enable-perlinterp} \
807         %{!?with_python:--disable-pythoninterp} \
808         %{?with_python:--enable-pythoninterp} \
809         %{!?with_ruby:--disable-rubyinterp} \
810         %{?with_ruby:--enable-rubyinterp} \
811         %{!?with_tcl:--disable-tclinterp} \
812         %{?with_tcl:--enable-tclinterp} \
813         %{?with_bonobo:--disable-bonobo} \
814         --enable-cscope \
815         --with-qt-dir=%{_prefix} \
816         --with-qt-includes=%{_includedir}/qt \
817         --with-qt-libs=%{_libdir} \
818         --enable-fontset \
819         --disable-gpm \
820         --without-gnome \
821         --enable-nls \
822         --with-modifiedby="PLD Linux Distribution" \
823         --enable-kde-toolbar \
824         --with-compiledby="PLD Linux Distribution"
825
826 %{__make} vim
827 mv -f vim bin/kvim
828 %endif
829
830 %if %{with athena}
831 %{__make} distclean
832 %configure \
833         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
834         --with-features=huge \
835         --enable-gui=athena \
836         --with-x \
837         %{!?with_perl:--disable-perlinterp} \
838         %{?with_perl:--enable-perlinterp} \
839         %{!?with_python:--disable-pythoninterp} \
840         %{?with_python:--enable-pythoninterp} \
841         %{!?with_ruby:--disable-rubyinterp} \
842         %{?with_ruby:--enable-rubyinterp} \
843         %{!?with_tcl:--disable-tclinterp} \
844         %{?with_tcl:--enable-tclinterp} \
845         %{?with_bonobo:--disable-bonobo} \
846         --enable-cscope \
847         --enable-fontset \
848         --disable-gpm \
849         --without-gnome \
850         --enable-nls \
851         --with-modifiedby="PLD Linux Distribution" \
852         --with-compiledby="PLD Linux Distribution"
853
854 %{__make} vim
855 mv -f vim bin/gvim.athena
856 %endif
857
858
859 %if %{with motif}
860 %{__make} distclean
861 %configure \
862         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
863         --with-features=huge \
864         --enable-gui=motif \
865         --with-x \
866         %{!?with_perl:--disable-perlinterp} \
867         %{?with_perl:--enable-perlinterp} \
868         %{!?with_python:--disable-pythoninterp} \
869         %{?with_python:--enable-pythoninterp} \
870         %{!?with_ruby:--disable-rubyinterp} \
871         %{?with_ruby:--enable-rubyinterp} \
872         %{!?with_tcl:--disable-tclinterp} \
873         %{?with_tcl:--enable-tclinterp} \
874         %{?with_bonobo:--disable-bonobo} \
875         --enable-multibyte \
876         --enable-cscope \
877         --enable-fontset \
878         --disable-gpm \
879         --without-gnome \
880         --enable-nls \
881         --with-modifiedby="PLD Linux Distribution" \
882         --with-compiledby="PLD Linux Distribution"
883
884 %{__make} vim
885 mv -f vim bin/gvim.motif
886 %endif
887
888 %if %{with gtk}
889 %{__make} distclean
890 %configure \
891         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
892         --with-features=huge \
893         --enable-gui=gtk2 \
894         --enable-gtk2-check \
895         --with-x \
896         %{!?with_perl:--disable-perlinterp} \
897         %{?with_perl:--enable-perlinterp} \
898         %{!?with_python:--disable-pythoninterp} \
899         %{?with_python:--enable-pythoninterp} \
900         %{!?with_ruby:--disable-rubyinterp} \
901         %{?with_ruby:--enable-rubyinterp} \
902         %{!?with_tcl:--disable-tclinterp} \
903         %{?with_tcl:--enable-tclinterp} \
904         %{?with_bonobo:--disable-bonobo} \
905         --disable-gpm \
906         --enable-cscope \
907         --enable-nls \
908         --with-modifiedby="PLD Linux Distribution" \
909         --with-compiledby="PLD Linux Distribution"
910
911 %{__make} vim
912 mv -f vim bin/gvim.gtk
913 %endif
914
915 %if %{with gnome}
916 %{__make} distclean
917 %configure \
918         CFLAGS="%{rpmcflags} -DFEAT_SPELL_HL" \
919         --with-features=huge \
920         --enable-gui=gnome2 \
921         %{?with_bonobo:--disable-bonobo} \
922         --enable-gtk2-check \
923         --enable-gnome-check \
924         --with-x \
925         %{!?with_perl:--disable-perlinterp} \
926         %{?with_perl:--enable-perlinterp} \
927         %{!?with_python:--disable-pythoninterp} \
928         %{?with_python:--enable-pythoninterp} \
929         %{!?with_ruby:--disable-rubyinterp} \
930         %{?with_ruby:--enable-rubyinterp} \
931         %{!?with_tcl:--disable-tclinterp} \
932         %{?with_tcl:--enable-tclinterp} \
933         --disable-gpm \
934         --enable-cscope \
935         --enable-nls \
936         --with-modifiedby="PLD Linux Distribution" \
937         --with-compiledby="PLD Linux Distribution"
938
939 %{__make} vim
940 mv -f vim bin/gvim.gnome
941 %endif
942
943
944 %{__make} xxd/xxd languages
945
946 %install
947 rm -rf $RPM_BUILD_ROOT
948 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
949         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
950         $RPM_BUILD_ROOT%{_desktopdir}
951
952 %{__make} install \
953         DESTDIR=$RPM_BUILD_ROOT
954
955 rm -f $RPM_BUILD_ROOT%{_bindir}/*
956
957 %if %{with static}
958 install -m755 src/bin/vim.ncurses       $RPM_BUILD_ROOT%{_bindir}/vim
959 install -m755 src/bin/vim.static        $RPM_BUILD_ROOT/bin/vi
960 %else
961 install -m755 src/bin/vim.ncurses       $RPM_BUILD_ROOT/bin/vi
962 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
963 %endif
964 %if %{with ispell}
965 install -m755 src/bin/vim.ispell        $RPM_BUILD_ROOT%{_bindir}/vim.ispell
966 %endif
967 install -m755 src/xxd/xxd       $RPM_BUILD_ROOT%{_bindir}/xxd
968 install -m755 src/vimtutor      $RPM_BUILD_ROOT%{_bindir}/vimtutor
969
970 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
971
972 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
973 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
974
975 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
976
977 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
978 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
979 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
980 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
981 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
982
983 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
984 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
985
986 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
987 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
988 ln -sf vi  $RPM_BUILD_ROOT/bin/view
989 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
990
991 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
992
993 %if %{with athena}
994 install -m755 src/bin/gvim.athena       $RPM_BUILD_ROOT%{_bindir}/gvim.athena
995 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
996 %endif
997 %if %{with motif}
998 install -m755 src/bin/gvim.motif        $RPM_BUILD_ROOT%{_bindir}/gvim.motif
999 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
1000 %endif
1001 %if %{with gnome}
1002 install -m755 src/bin/gvim.gnome        $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
1003 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
1004 %endif
1005 %if %{with gtk}
1006 install -m755 src/bin/gvim.gtk  $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
1007 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
1008 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
1009 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
1010 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
1011 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
1012 %endif
1013
1014 %if %{with kde}
1015 install -m755 src/bin/kvim $RPM_BUILD_ROOT%{_bindir}/kvim
1016 install -d $RPM_BUILD_ROOT%{_desktopdir}/kde
1017 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22}/actions
1018 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,48x48,64x64}/apps
1019 install runtime/hi16-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/actions
1020 install runtime/hi22-action-make.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/actions
1021 install runtime/kvim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/kvim.png
1022 install runtime/kvim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/kvim.png
1023 install runtime/kvim64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/kvim.png
1024 install runtime/KVim.desktop $RPM_BUILD_ROOT%{_desktopdir}/kde
1025 install -d $RPM_BUILD_ROOT%{_datadir}/apps/kvim
1026 install runtime/kde-tips $RPM_BUILD_ROOT%{_datadir}/apps/kvim/tips
1027 %endif
1028
1029 # Bonobo
1030 %if %{with bonobo}
1031 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
1032 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
1033 install -m755 src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
1034 %endif
1035
1036 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1037 unzip -d $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE6}
1038
1039 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{syntax,ftdetect,plugin,ftplugin}}
1040
1041 %clean
1042 rm -rf $RPM_BUILD_ROOT
1043
1044 %files
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/vim
1047 %attr(755,root,root) %{_bindir}/rvim
1048 %{_desktopdir}/%{name}.desktop
1049
1050 %if %{with static}
1051 %files static
1052 %defattr(644,root,root,755)
1053 %endif
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) /bin/*
1056
1057 %{_mandir}/man1/vi.1*
1058 %{_mandir}/man1/ex.1*
1059 %{_mandir}/man1/view.1*
1060 %{_mandir}/man1/rview.1*
1061 %lang(fi) %{_mandir}/fi/man1/vi.1*
1062 %lang(fi) %{_mandir}/fi/man1/ex.1*
1063 %lang(fi) %{_mandir}/fi/man1/view.1*
1064 %lang(fi) %{_mandir}/fi/man1/rview.1*
1065 %lang(fr) %{_mandir}/fr/man1/vi.1*
1066 %lang(fr) %{_mandir}/fr/man1/ex.1*
1067 %lang(fr) %{_mandir}/fr/man1/view.1*
1068 %lang(fr) %{_mandir}/fr/man1/rview.1*
1069 %lang(id) %{_mandir}/id/man1/vi.1*
1070 %lang(id) %{_mandir}/id/man1/ex.1*
1071 %lang(id) %{_mandir}/id/man1/view.1*
1072 %lang(id) %{_mandir}/id/man1/rview.1*
1073 %lang(pl) %{_mandir}/pl/man1/vi.1*
1074 %lang(pl) %{_mandir}/pl/man1/ex.1*
1075 %lang(pl) %{_mandir}/pl/man1/view.1*
1076 %lang(pl) %{_mandir}/pl/man1/rview.1*
1077
1078 %if %{with ispell}
1079 %files ispell
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_bindir}/vim.ispell
1082 %endif
1083
1084 %files -n xxd
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_bindir}/xxd
1087 %{_mandir}/man1/xxd.1*
1088
1089 %files rt
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_bindir}/vimtutor
1092 %dir %{_sysconfdir}/vim
1093 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
1094 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
1095
1096 %dir %{_datadir}/vim
1097 %dir %{_datadir}/vim/v*
1098 %dir %{_datadir}/vim/v*/doc
1099 %doc %{_datadir}/vim/v*/doc/*.txt
1100 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1101 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1102 %verify(not size mtime md5) %{_datadir}/vim/v*/doc/tags
1103 %lang(pl) %verify(not size mtime md5) %{_datadir}/vim/v*/doc/tags-pl
1104 %{_datadir}/vim/v*/ftplugin
1105 %{_datadir}/vim/v*/indent
1106 %{_datadir}/vim/v*/keymap
1107 %dir %{_datadir}/vim/v*/lang
1108 %doc %{_datadir}/vim/v*/lang/README*
1109
1110 # just add after/ and ftdetect/ separately, other dirs catched by glob above
1111 %{_datadir}/vim/vimfiles/after
1112 %{_datadir}/vim/vimfiles/ftdetect
1113
1114 %lang(af) %{_datadir}/vim/v*/lang/af
1115 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB
1116 %lang(cs) %{_datadir}/vim/v*/lang/cs
1117 %lang(de) %{_datadir}/vim/v*/lang/de
1118 %lang(es) %{_datadir}/vim/v*/lang/es
1119 %lang(fr) %{_datadir}/vim/v*/lang/fr
1120 %lang(it) %{_datadir}/vim/v*/lang/it
1121 %lang(ja) %{_datadir}/vim/v*/lang/ja*
1122 %lang(ko) %{_datadir}/vim/v*/lang/ko
1123 %lang(pl) %{_datadir}/vim/v*/lang/pl
1124 %lang(sk) %{_datadir}/vim/v*/lang/sk
1125 %lang(nb) %{_datadir}/vim/v*/lang/no
1126 #%lang(tr) %{_datadir}/vim/v*/lang/tr
1127 %lang(uk) %{_datadir}/vim/v*/lang/uk
1128 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
1129 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW*
1130
1131 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
1132 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
1133 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1134 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
1135 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
1136 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
1137 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1138 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1139 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1140 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
1141 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1142 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1143 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1144 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1145 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1146 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1147 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1148 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1149 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1150 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1151 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1152 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1153 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1154 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1155 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1156 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1157 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1158 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1159 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1160 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1161 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1162 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1163 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1164 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1165
1166 %{_datadir}/vim/v*/macros
1167 %{_datadir}/vim/v*/plugin
1168 %{_datadir}/vim/v*/print
1169 %{_datadir}/vim/v*/syntax
1170 %{_datadir}/vim/v*/tools
1171 %{_datadir}/vim/v*/tutor
1172 %{_datadir}/vim/v*/colors
1173 %{_datadir}/vim/v*/compiler
1174 %{_datadir}/vim/v*/*.vim
1175
1176 %{_mandir}/man1/vim*
1177 %{_mandir}/man1/rvim.*
1178 %lang(fi) %{_mandir}/fi/man1/vim*
1179 %lang(fi) %{_mandir}/fi/man1/rvim.*
1180 %lang(fi) %{_mandir}/fi/man1/gvi*
1181 %lang(fi) %{_mandir}/fi/man1/rgv*
1182 %lang(fr) %{_mandir}/fr/man1/vim*
1183 %lang(fr) %{_mandir}/fr/man1/rvim.*
1184 %lang(fr) %{_mandir}/fr/man1/gvi*
1185 %lang(fr) %{_mandir}/fr/man1/rgv*
1186 %lang(id) %{_mandir}/id/man1/vim*
1187 %lang(id) %{_mandir}/id/man1/rvim.*
1188 %lang(id) %{_mandir}/id/man1/gvi*
1189 %lang(id) %{_mandir}/id/man1/rgv*
1190 %lang(it) %{_mandir}/it/man1/vim*
1191 %lang(pl) %{_mandir}/pl/man1/vim*
1192 %lang(pl) %{_mandir}/pl/man1/rvim.*
1193 %lang(pl) %{_mandir}/pl/man1/gvi*
1194 %lang(pl) %{_mandir}/pl/man1/rgv*
1195
1196 %if %{with athena}
1197 %files -n gvim-athena
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{_bindir}/gvim.athena
1200 %{_desktopdir}/gvim-athena.desktop
1201 %endif
1202
1203 %if %{with motif}
1204 %files -n gvim-motif
1205 %defattr(644,root,root,755)
1206 %attr(755,root,root) %{_bindir}/gvim.motif
1207 %{_desktopdir}/gvim-motif.desktop
1208 %endif
1209
1210 %if %{with kde}
1211 %files -n kvim
1212 %defattr(644,root,root,755)
1213 %attr(755,root,root) %{_bindir}/kvim
1214 %{_desktopdir}/kde/KVim.desktop
1215 %{_iconsdir}/hicolor/*/apps/kvim.png
1216 %{_iconsdir}/hicolor/*/actions/*make*.png
1217 %{_datadir}/apps/kvim
1218 %endif
1219
1220
1221 %if %{with gtk}
1222 %files -n gvim-gtk
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{_bindir}/gvim.gtk
1225 %attr(755,root,root) %{_bindir}/rgvim
1226 %attr(755,root,root) %{_bindir}/rgview
1227 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1228 %{_desktopdir}/gvim-gtk.desktop
1229 %endif
1230
1231 %if %{with gnome}
1232 %files -n gvim-gnome
1233 %defattr(644,root,root,755)
1234 %attr(755,root,root) %{_bindir}/gvim.gnome
1235 %{_desktopdir}/gvim-gnome.desktop
1236 %endif
1237
1238 %if %{with bonobo}
1239 %files -n gvim-bonobo
1240 %defattr(644,root,root,755)
1241 %attr(755,root,root) %{_bindir}/vim-component
1242 %attr(755,root,root) %{_bindir}/vim-factory
1243 %{_libdir}/bonobo/servers/*
1244 %endif
This page took 0.126761 seconds and 3 git commands to generate.