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