]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- 7.0.057 and 7.0.065 patches are not needed
[packages/vim.git] / vim.spec
1 # TODO:
2 # - separate vim-spell-en
3 # - some nice icon
4 # - bonobo patches need update
5 #
6 # Conditional build:
7 %bcond_without  static          # don't build static version
8 %bcond_without  athena          # don't build Athena Widgets-based gvim
9 %bcond_without  motif           # don't build Motif-based gvim
10 %bcond_without  gtk             # don't build GTK+-based gvim support
11 %bcond_without  gnome           # don't build GNOME-based gvim support
12 %bcond_without  perl            # without Perl interp
13 %bcond_with             python          # without Python interp
14 %bcond_with     ruby            # with Ruby interp
15 %bcond_with     tcl             # with Tcl interp
16 %bcond_with     bonobo          # with bonobo component (breaks other things)
17 %bcond_without  selinux         # without selinux support
18 %bcond_without  home_etc        # without home_etc support
19 #
20 %define         _ver            7.0
21 %define         _patchlevel     066
22 %define         _rel            1
23
24 # cflags get changed while configuring
25 %undefine       configure_cache
26 #
27 Summary:        Vi IMproved - a Vi clone
28 Summary(de):    VIsual editor iMproved
29 Summary(es):    Editor visual incrementado
30 Summary(fr):    Editeur VIM : VIsual editor iMproved
31 Summary(pl):    Vi IMproved - klon edytora Vi
32 Summary(pt_BR): Editor visual incrementado
33 Summary(ru):    Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
34 Summary(tr):    Geliþmiþ bir vi sürümü
35 Summary(uk):    Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
36 Name:           vim
37 Version:        %{_ver}.%{_patchlevel}
38 Release:        %{_rel}
39 Epoch:          4
40 License:        Charityware
41 Group:          Applications/Editors/Vim
42 Source0:        ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2
43 # Source0-md5:  4ca69757678272f718b1041c810d82d8
44 Source1:        ftp://ftp.vim.org/pub/vim/extra/vim-%{_ver}-lang.tar.gz
45 # Source1-md5:  6d43efaff570b5c86e76b833ea0c6a04
46 Source2:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
47 # Source2-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
48 Source3:        http://skawina.eu.org/mikolaj/usr_doc_pl.zip
49 # Source3-md5:  ff96284b1c913d55cf0877839b34d490
50 Source10:       g%{name}-athena.desktop
51 Source11:       g%{name}-motif.desktop
52 Source12:       g%{name}-gtk.desktop
53 Source13:       g%{name}-gnome.desktop
54 Source14:       %{name}.desktop
55 # http://www.vim.org/scripts/script.php?script_id=415 (1.13)
56 Source15:       zenburn.%{name}
57 Source16:       spec.%{name}
58 # http://www.vim.org/scripts/script.php?script_id=1491 (0.5)
59 Source17:       javascript.%{name}
60 Source18:       nagios.vim
61 Source19:       vim-ftplugin-spec.vim
62 Patch0:         %{name}-sysconfdir.patch
63 Patch1:         %{name}-visual.patch
64 Patch2:         %{name}-paths.patch
65 Patch3:         %{name}-%{name}rc.patch
66 Patch4:         %{name}-no_libelf.patch
67 Patch5:         %{name}-egrep.patch
68 Patch6:         %{name}-awk.patch
69 Patch7:         %{name}-filetype_vim-perl_tests.patch
70 Patch8:         %{name}-apache.patch
71 Patch9:         %{name}-po-syntax.patch
72 Patch10:        %{name}-modprobe.patch
73 Patch11:        %{name}-doubleparenthesis.patch
74 Patch12:        %{name}-syntax-fstab.patch
75 Patch13:        010_all_%{name}-6.3-vixie.patch
76 Patch14:        013_all_%{name}-7.0-cron-vars-79981.patch
77 Patch15:        020_all_%{name}-7.0-fstab-tmpfs-size.patch
78 Patch16:        021_all_%{name}-7.0-fstab-bogus-errors.patch
79 Patch17:        024_all_%{name}-6.3-bash-83565.patch
80 Patch18:        027_all_%{name}-7.0-automake-substitutions-93378.patch
81 Patch19:        %{name}-smarty.patch
82 Patch20:        %{name}-tutor-lessdeps.patch
83 Patch21:        %{name}-nagios.patch
84 Patch22:        %{name}-filetypes.patch
85 Patch23:        %{name}-man_installation.patch
86 Patch100:       %{name}-bonobo-20050909.patch
87 Patch101:       %{name}-bonobo.patch
88 Patch102:       %{name}-gtkfilechooser.patch
89 Patch103:       %{name}-gtkfilechooser-bonobo.patch
90 Patch104:       %{name}-home_etc.patch
91 Patch105:       %{name}-selinux.patch
92 Patch201:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.001
93 Patch202:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.002
94 Patch203:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.003
95 Patch204:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.004
96 # patch for -extra
97 #Patch205:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.005
98 Patch206:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.006
99 Patch207:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.007
100 Patch208:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.008
101 Patch209:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.009
102 Patch210:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.010
103 Patch211:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.011
104 Patch212:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.012
105 Patch213:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.013
106 Patch214:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.014
107 Patch215:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.015
108 Patch216:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.016
109 Patch217:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.017
110 Patch218:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.018
111 Patch219:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.019
112 Patch220:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.020
113 Patch221:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.021
114 Patch222:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.022
115 Patch223:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.023
116 Patch224:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.024
117 Patch225:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.025
118 Patch226:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.026
119 # patches for -extra
120 #Patch227:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.027
121 #Patch228:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.028
122 Patch229:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.029
123 Patch230:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.030
124 Patch231:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.031
125 # patch for -extra
126 #Patch232:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.032
127 Patch233:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.033
128 Patch234:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.034
129 Patch235:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.035
130 Patch236:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.036
131 Patch237:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.037
132 Patch238:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.038
133 Patch239:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.039
134 Patch240:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.040
135 Patch241:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.041
136 Patch242:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.042
137 Patch243:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.043
138 Patch244:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.044
139 # patch for -extra
140 #Patch245:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.045
141 Patch246:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.046
142 Patch247:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.047
143 Patch248:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.048
144 Patch249:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.049
145 Patch250:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.050
146 Patch251:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.051
147 Patch252:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.052
148 Patch253:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.053
149 Patch254:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.054
150 Patch255:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.055
151 Patch256:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.056
152 # patch for -extra
153 #Patch257:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.057
154 Patch258:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.058
155 Patch259:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.059
156 Patch260:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.060
157 Patch261:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.061
158 Patch262:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.062
159 Patch263:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.063
160 Patch264:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.064
161 # patch for -extra
162 #Patch265:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.065
163 Patch266:       ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.066
164 URL:            http://www.vim.org/
165 BuildRequires:  acl-devel
166 BuildRequires:  autoconf
167 BuildRequires:  gettext-devel
168 BuildRequires:  gpm-devel
169 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.6.0}
170 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
171 %{?with_selinux:BuildRequires:  libselinux-devel}
172 BuildRequires:  ncurses-devel
173 %{?with_motif:BuildRequires:    openmotif-devel}
174 %{?with_perl:BuildRequires:     perl-devel}
175 %{?with_python:BuildRequires:   python-devel >= 2.5}
176 %{?with_ruby:BuildRequires:     ruby-devel}
177 %{?with_tcl:BuildRequires:      tcl-devel}
178 %{?with_athena:BuildRequires:   xorg-lib-libXaw-devel}
179 Obsoletes:      kvim
180 %if %{with bonobo}
181 BuildRequires:  ORBit2-devel
182 BuildRequires:  libbonoboui-devel >= 2.2.0
183 BuildRequires:  libgnomeui-devel >= 2.2.0.1
184 BuildRequires:  nautilus-devel >= 2.2.0
185 %endif
186 BuildRequires:  rpmbuild(macros) >= 1.210
187 %if %{with static}
188 BuildRequires:  acl-static
189 BuildRequires:  attr-static
190 BuildRequires:  glibc-static
191 %{?with_selinux:BuildRequires:  libselinux-static}
192 BuildRequires:  ncurses-static
193 %else
194 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
195 Obsoletes:      elvis-static
196 Obsoletes:      nvi
197 Obsoletes:      vi
198 Obsoletes:      vim-minimal
199 Obsoletes:      vim-static
200 %endif
201 BuildRequires:  unzip
202 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
203 Provides:       vi-editor
204 Provides:       vi
205 Obsoletes:      vim-enhanced
206 Obsoletes:      vim-ispell
207 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
208
209 # that's example script
210 %define         _noautoreq      '/bin/csh'
211
212 %description
213 Text editor similar to Vi. Important improvements: multiple windows,
214 multi-level undo, block highliting, folding, and many other.
215
216 %description -l cs
217 ViM je nový a vylep¹ený editor vycházející z klasického editoru vi. Vi
218 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
219 populární. ViM je obohacený funkcemi jako: podpora více oken,
220 víceúrovòové undo, zvýrazòování blokù a øadu dal¹ích u¾iteèných
221 funkcí.
222
223 %description -l de
224 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
225 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
226 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
227 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
228 Standard-vi-Programm.
229
230 %description -l es
231 El editor Visual Mejorado es una versión actualizada y con nuevas
232 características adicionales del mundialmente famoso 'vi' que acompaña
233 prácticamente todos los sistemas UN*X. Posibilita trabajar con
234 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
235 otras muchas características del 'vi'.
236
237 %description -l fr
238 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
239 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
240 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
241 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
242 blocs et autres caractéristiques au vi de base.
243
244 %description -l id
245 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
246 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
247 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
248 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
249 windows, multi-level undo, block highlighting, dll.
250
251 %description -l is
252 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
253 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
254 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
255 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
256 fleira.
257
258 %description -l it
259 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
260 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
261 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
262 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
263 dei blocchi e altro.
264
265 %description -l pl
266 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
267 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
268 folding i wiele innych.
269
270 %description -l pt
271 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
272 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
273 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
274 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
275 de blocos e mais.
276
277 %description -l pt_BR
278 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
279 características do mundialmente famoso 'vi' que acompanha praticamente
280 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
281 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
282 outras características do 'vi'.
283
284 %description -l ru
285 VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
286 ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
287 UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
288 ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
289
290 %description -l sk
291 VIM (VIsual editor iMproved) je nov¹ia a vylep¹ená verzia editoru vi.
292 Vi bol prvým skutoène obrazovkovo orientovaným editorom pre UNIX a
293 stále je veµmi populárny. VIM má oproti vi vylep¹enia ako: prácu s
294 viacerými oknami, viacnásobné undo, zvýrazòovanie blokov textu a iné.
295
296 %description -l sv
297 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
298 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
299 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
300 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
301 ändå.
302
303 %description -l tr
304 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
305 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
306
307 %description -l uk
308 VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
309 ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
310 æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
311 ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
312
313 %package -n xxd
314 Summary:        Utility to convert files to hexdump or do the reverse
315 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
316 Group:          Applications/Editors/Vim
317
318 %description -n xxd
319 xxd creates a hex dump of a given file or standard input. It can also
320 convert a hex dump back to its original binary form. Like uuencode and
321 uudecode it allows the transmission of binary data in a `mail-safe'
322 ASCII representation, but has the advantage of decoding to standard
323 output. Moreover, it can be used to perform binary file patching.
324
325 %description -n xxd -l pl
326 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
327 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
328 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
329 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
330 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
331
332 %package static
333 Summary:        Statically linked Vim
334 Summary(pl):    Statycznie skonsolidowany Vim
335 Group:          Applications/Editors/Vim
336 Provides:       vi-editor
337 Provides:       vi
338 Obsoletes:      elvis-static
339 Obsoletes:      nvi
340 Obsoletes:      vim-minimal
341
342 %description static
343 Text editor similar to Vi. This version is built with minimal feature
344 and is installed in /bin as a rescue tool. The installation of this
345 package is STRONGLY recommended.
346
347 %description static -l pl
348 Edytor tekstu podobny do Vi. Ta wersja zosta³a skonsolidowana
349 statycznie i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin
350 jako narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
351 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
352
353 %description static -l ru
354 ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
355 ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
356 ÓÉÓÔÅÍÁ.
357
358 %description static -l uk
359 ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
360 ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
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 # mktemp is for vimtutor
384 Requires:       mktemp
385 Requires:       vi-editor
386 Obsoletes:      vim-common
387
388 %description rt
389 This package contains macros, documentation, syntax configuration and
390 manual pages for Vim. If you want to take advantage of Vim more
391 powerful features, you should install this package.
392
393 %description rt -l cs
394 Tento balíèek obsahuje spoleèné soubory pro v¹echny dal¹í balíèky s
395 vim.
396
397 %description rt -l da
398 The vim-rt package contains files which every VIM binary will need in
399 order to run.
400
401 %description rt -l de
402 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
403 Ausführung benötigt.
404
405 %description rt -l fr
406 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
407 VIM a besoin pour fonctionner.
408
409 %description rt -l id
410 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
411 berjalan.
412
413 %description rt -l is
414 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
415 til að keyra.
416
417 %description rt -l it
418 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
419 per poter funzionare.
420
421 %description rt -l pl
422 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
423 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
424 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
425
426 %description rt -l pt
427 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
428 irão necessitar para correr.
429
430 %description rt -l ru
431 ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
432 ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
433
434 %description rt -l sk
435 Balík vim-rt obsahuje súbory, ktoré bude potrebova» pre správnu
436 funkciu ka¾dá verzia editoru VIM.
437
438 %description rt -l sv
439 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
440 köra.
441
442 %description rt -l uk
443 ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
444 ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
445
446 %package -n gvim-athena
447 Summary:        Vim for X Window built with Athena
448 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
449 Group:          Applications/Editors/Vim
450 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
451 Requires:       iconv
452 Provides:       vi-editor
453 Obsoletes:      vim-X11
454
455 %description -n gvim-athena
456 The classic Unix text editor now also under X Window System! This
457 version is built with Athena Widget Set.
458
459 %description -n gvim-athena -l pl
460 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
461 biblioteki Athena Widget Set.
462
463 %description -n gvim-athena -l ru
464 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
465 Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
466 System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
467
468 %description -n gvim-athena -l uk
469 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
470 Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
471 Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
472
473 %package -n gvim-motif
474 Summary:        Vim for X Window built with Motif
475 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
476 Group:          Applications/Editors/Vim
477 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
478 Requires:       iconv
479 Provides:       vi-editor
480 Obsoletes:      vim-X11
481
482 %description -n gvim-motif
483 The classic Unix text editor now also under X Window System! This
484 version is built with Motif.
485
486 %description -n gvim-motif -l pl
487 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
488 biblioteki Motif.
489
490 %description -n gvim-motif -l ru
491 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
492 Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
493 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
494
495 %description -n gvim-motif -l uk
496 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
497 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
498 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
499
500 %package -n gvim-gtk
501 Summary:        Vim for X Window built with gtk
502 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
503 Group:          Applications/Editors/Vim
504 Requires(post,postun):  gtk+2
505 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
506 Requires:       iconv
507 Provides:       vi-editor
508 Obsoletes:      vim-X11
509
510 %description -n gvim-gtk
511 The classic Unix text editor now also under X Window System! This
512 version is built with GTK.
513
514 %description -n gvim-gtk -l pl
515 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
516 biblioteki GTK.
517
518 %description -n gvim-gtk -l ru
519 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
520 GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
521 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
522 'gvim'...
523
524 %description -n gvim-gtk -l uk
525 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
526 ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
527 ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
528
529 %package -n gvim-gnome
530 Summary:        Vim for X Window built with GNOME
531 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
532 Group:          Applications/Editors/Vim
533 Requires(post,postun):  gtk+2
534 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
535 Requires:       iconv
536 Provides:       vi-editor
537 Obsoletes:      vim-X11
538
539 %description -n gvim-gnome
540 The classic Unix text editor now also under X Window System! This
541 version is build with GNOME.
542
543 %description -n gvim-gnome -l pl
544 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
545 bibliotek GNOME.
546
547 %description -n gvim-gnome -l ru
548 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
549 GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
550 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
551
552 %description -n gvim-gnome -l uk
553 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
554 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
555 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
556
557 %package -n gvim-bonobo
558 Summary:        Vim for X Window built as bonobo component
559 Summary(pl):    Vim dla X Window zbudowany jako element bonobo
560 Group:          Applications/Editors/Vim
561 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
562 Requires:       iconv
563 Provides:       vi-editor
564 Obsoletes:      vim-X11
565
566 %description -n gvim-bonobo
567 The classic Unix text editor now also under X Window System! This
568 version is build as bonobo component.
569
570 %description -n gvim-bonobo -l pl
571 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window, zbudowana jako
572 element bonobo.
573
574 %prep
575 %setup -q -n vim70 -b1
576 %patch0 -p1
577 %patch1 -p1
578 %patch2 -p1
579 %patch3 -p1
580 %patch4 -p1
581 %patch5 -p1
582 %patch6 -p1
583 %patch7 -p1
584 %patch8 -p1
585 %patch9 -p1
586 %patch10 -p0
587 %patch11 -p1
588 %patch12 -p1
589 %patch13 -p1
590 %patch14 -p1
591 %patch15 -p1
592 %patch16 -p1
593 %patch17 -p0
594 %patch18 -p0
595 %patch19 -p1
596 %patch20 -p1
597 %patch21 -p1
598 %patch22 -p1
599 %patch23 -p1
600
601 # official patches
602 %patch201 -p0
603 %patch202 -p0
604 %patch203 -p0
605 %patch204 -p0
606 # patch for -extra
607 #%patch205 -p0
608 %patch206 -p0
609 %patch207 -p0
610 %patch208 -p0
611 %patch209 -p0
612 %patch210 -p0
613 %patch211 -p0
614 %patch212 -p0
615 %patch213 -p0
616 %patch214 -p0
617 %patch215 -p0
618 %patch216 -p0
619 %patch217 -p0
620 %patch218 -p0
621 %patch219 -p0
622 %patch220 -p0
623 %patch221 -p0
624 %patch222 -p0
625 %patch223 -p0
626 %patch224 -p0
627 %patch225 -p0
628 %patch226 -p0
629 # patches for -extra
630 #%patch227 -p0
631 #%patch228 -p0
632 %patch229 -p0
633 %patch230 -p0
634 %patch231 -p0
635 # patch for -extra
636 #%patch232 -p0
637 %patch233 -p0
638 %patch234 -p0
639 %patch235 -p0
640 %patch236 -p0
641 %patch237 -p0
642 %patch238 -p0
643 %patch239 -p0
644 %patch240 -p0
645 %patch241 -p0
646 %patch242 -p0
647 %patch243 -p0
648 %patch244 -p0
649 # patch for -extra
650 #%patch245 -p0
651 %patch246 -p0
652 %patch247 -p0
653 %patch248 -p0
654 %patch249 -p0
655 %patch250 -p0
656 %patch251 -p0
657 %patch252 -p0
658 %patch253 -p0
659 %patch254 -p0
660 %patch255 -p0
661 %patch256 -p0
662 # patch for windows
663 #%patch257 -p0
664 %patch258 -p0
665 %patch259 -p0
666 %patch260 -p0
667 %patch261 -p0
668 %patch262 -p0
669 %patch263 -p0
670 %patch264 -p0
671 # patch for mac
672 # %patch265 -p0
673 %patch266 -p0
674
675 # bonobo
676 %if %{with bonobo}
677 %patch100 -p1
678 %patch101 -p1
679 %patch102 -p1
680 %patch103 -p1
681 %endif
682
683 # home etc
684 %{?with_home_etc:%patch104 -p1}
685
686 # selinux
687 %{?with_selinux:%patch105 -p1}
688
689 install %{SOURCE14} runtime/indent
690 install %{SOURCE15} runtime/colors
691 install %{SOURCE16} runtime/syntax
692 install %{SOURCE17} runtime/syntax
693 install %{SOURCE18} runtime/syntax
694 install %{SOURCE19} runtime/ftplugin/spec.vim
695
696 %build
697 cd src
698 %{__autoconf}
699 # needed to prevent deconfiguring
700 cp -f configure auto
701
702 install -d bin
703
704 %if %{with bonobo}
705 %{__make} distclean
706 %configure \
707         --with-features=huge \
708         --enable-gui=gnome2 \
709         --enable-bonobo \
710         --enable-gtk2-check \
711         --enable-gnome-check \
712         --with-x \
713         %{!?with_perl:--disable-perlinterp} \
714         %{?with_perl:--enable-perlinterp} \
715         %{!?with_python:--disable-pythoninterp} \
716         %{?with_python:--enable-pythoninterp} \
717         %{!?with_ruby:--disable-rubyinterp} \
718         %{?with_ruby:--enable-rubyinterp} \
719         %{!?with_tcl:--disable-tclinterp} \
720         %{?with_tcl:--enable-tclinterp} \
721         --disable-gpm \
722         --enable-cscope \
723         --enable-nls \
724         --with-modifiedby="PLD Linux Distribution" \
725         --with-compiledby="PLD Linux Distribution"
726
727 %{__make} vim-component vim-factory Vim_Control.server
728 mv vim-component vim-factory Vim_Control.server bin/
729 %endif
730
731 %if %{with static}
732 %{__make} distclean
733 LDFLAGS="%{rpmldflags} -static"
734 %configure \
735         --disable-gui \
736         --without-x \
737         --disable-perlinterp \
738         --disable-pythoninterp \
739         --disable-rubyinterp \
740         --disable-tclinterp \
741         --disable-cscope \
742         --disable-gpm \
743         --disable-multibyte \
744         %{?with_bonobo:--disable-bonobo} \
745         --with-features=small \
746         --with-tlib="ncurses -ltinfo" \
747         --disable-nls \
748         --with-modifiedby="PLD Linux Distribution" \
749         --with-compiledby="PLD Linux Distribution"
750
751 %{__make} vim
752
753 mv -f vim bin/vim.static
754 LDFLAGS="%{rpmldflags}"
755 %endif
756
757 %{__make} distclean
758 %configure \
759         --disable-gui \
760         --without-x \
761         %{!?with_perl:--disable-perlinterp} \
762         %{?with_perl:--enable-perlinterp} \
763         %{!?with_python:--disable-pythoninterp} \
764         %{?with_python:--enable-pythoninterp} \
765         %{!?with_ruby:--disable-rubyinterp} \
766         %{?with_ruby:--enable-rubyinterp} \
767         %{!?with_tcl:--disable-tclinterp} \
768         %{?with_tcl:--enable-tclinterp} \
769         %{?with_bonobo:--disable-bonobo} \
770         --enable-cscope \
771         --enable-gpm \
772         --with-features=huge \
773         --enable-multibyte \
774         --with-tlib="ncurses -ltinfo" \
775         --enable-nls \
776         --with-modifiedby="PLD Linux Distribution" \
777         --with-compiledby="PLD Linux Distribution"
778
779 %{__make} vim
780
781 mv -f vim bin/vim.ncurses
782
783 %if %{with athena}
784 %{__make} distclean
785 %configure \
786         --with-features=huge \
787         --enable-gui=athena \
788         --with-x \
789         %{!?with_perl:--disable-perlinterp} \
790         %{?with_perl:--enable-perlinterp} \
791         %{!?with_python:--disable-pythoninterp} \
792         %{?with_python:--enable-pythoninterp} \
793         %{!?with_ruby:--disable-rubyinterp} \
794         %{?with_ruby:--enable-rubyinterp} \
795         %{!?with_tcl:--disable-tclinterp} \
796         %{?with_tcl:--enable-tclinterp} \
797         %{?with_bonobo:--disable-bonobo} \
798         --enable-cscope \
799         --enable-fontset \
800         --disable-gpm \
801         --without-gnome \
802         --with-tlib="ncurses -ltinfo" \
803         --enable-nls \
804         --with-modifiedby="PLD Linux Distribution" \
805         --with-compiledby="PLD Linux Distribution"
806
807 %{__make} vim
808 mv -f vim bin/gvim.athena
809 %endif
810
811
812 %if %{with motif}
813 %{__make} distclean
814 %configure \
815         --with-features=huge \
816         --enable-gui=motif \
817         --with-x \
818         %{!?with_perl:--disable-perlinterp} \
819         %{?with_perl:--enable-perlinterp} \
820         %{!?with_python:--disable-pythoninterp} \
821         %{?with_python:--enable-pythoninterp} \
822         %{!?with_ruby:--disable-rubyinterp} \
823         %{?with_ruby:--enable-rubyinterp} \
824         %{!?with_tcl:--disable-tclinterp} \
825         %{?with_tcl:--enable-tclinterp} \
826         %{?with_bonobo:--disable-bonobo} \
827         --enable-multibyte \
828         --enable-cscope \
829         --enable-fontset \
830         --disable-gpm \
831         --without-gnome \
832         --with-tlib="ncurses -ltinfo" \
833         --enable-nls \
834         --with-modifiedby="PLD Linux Distribution" \
835         --with-compiledby="PLD Linux Distribution"
836
837 %{__make} vim
838 mv -f vim bin/gvim.motif
839 %endif
840
841 %if %{with gtk}
842 %{__make} distclean
843 %configure \
844         --with-features=huge \
845         --enable-gui=gtk2 \
846         --enable-gtk2-check \
847         --with-x \
848         %{!?with_perl:--disable-perlinterp} \
849         %{?with_perl:--enable-perlinterp} \
850         %{!?with_python:--disable-pythoninterp} \
851         %{?with_python:--enable-pythoninterp} \
852         %{!?with_ruby:--disable-rubyinterp} \
853         %{?with_ruby:--enable-rubyinterp} \
854         %{!?with_tcl:--disable-tclinterp} \
855         %{?with_tcl:--enable-tclinterp} \
856         %{?with_bonobo:--disable-bonobo} \
857         --disable-gpm \
858         --enable-cscope \
859         --with-tlib="ncurses -ltinfo" \
860         --enable-nls \
861         --with-modifiedby="PLD Linux Distribution" \
862         --with-compiledby="PLD Linux Distribution"
863
864 %{__make} vim
865 mv -f vim bin/gvim.gtk
866 %endif
867
868 %if %{with gnome}
869 %{__make} distclean
870 %configure \
871         --with-features=huge \
872         --enable-gui=gnome2 \
873         %{?with_bonobo:--disable-bonobo} \
874         --enable-gtk2-check \
875         --enable-gnome-check \
876         --with-x \
877         %{!?with_perl:--disable-perlinterp} \
878         %{?with_perl:--enable-perlinterp} \
879         %{!?with_python:--disable-pythoninterp} \
880         %{?with_python:--enable-pythoninterp} \
881         %{!?with_ruby:--disable-rubyinterp} \
882         %{?with_ruby:--enable-rubyinterp} \
883         %{!?with_tcl:--disable-tclinterp} \
884         %{?with_tcl:--enable-tclinterp} \
885         --disable-gpm \
886         --enable-cscope \
887         --with-tlib="ncurses -ltinfo" \
888         --enable-nls \
889         --with-modifiedby="PLD Linux Distribution" \
890         --with-compiledby="PLD Linux Distribution"
891
892 %{__make} vim
893 mv -f vim bin/gvim.gnome
894 %endif
895
896 %{__make} xxd/xxd languages
897
898 %install
899 rm -rf $RPM_BUILD_ROOT
900
901 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
902         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
903         $RPM_BUILD_ROOT%{_desktopdir}
904
905 %{__make} install \
906         DESTDIR=$RPM_BUILD_ROOT
907
908 rm -f $RPM_BUILD_ROOT%{_bindir}/*
909
910 %if %{with static}
911 install src/bin/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim
912 install src/bin/vim.static      $RPM_BUILD_ROOT/bin/vi
913 %else
914 install src/bin/vim.ncurses     $RPM_BUILD_ROOT/bin/vi
915 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
916 %endif
917 install src/xxd/xxd     $RPM_BUILD_ROOT%{_bindir}/xxd
918 install src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
919
920 # Moved into patch
921 #
922 # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
923 # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
924 # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
925 # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
926 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
927 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
928 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
929 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
930
931 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
932 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
933
934 # not supported directories
935 rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
936
937 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
938 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
939
940 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
941 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
942 ln -sf vi  $RPM_BUILD_ROOT/bin/view
943 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
944
945 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
946
947 %if %{with athena}
948 install src/bin/gvim.athena     $RPM_BUILD_ROOT%{_bindir}/gvim.athena
949 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
950 %endif
951 %if %{with motif}
952 install src/bin/gvim.motif      $RPM_BUILD_ROOT%{_bindir}/gvim.motif
953 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
954 %endif
955 %if %{with gnome}
956 install src/bin/gvim.gnome      $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
957 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
958 %endif
959 %if %{with gtk}
960 install src/bin/gvim.gtk        $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
961 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
962 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
963 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
964 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
965 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
966 %endif
967
968 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
969 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
970 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
971 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
972
973 # Bonobo
974 %if %{with bonobo}
975 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
976 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
977 install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
978 %endif
979
980 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
981
982 # non-existent binaries
983 rm -rf $RPM_BUILD_ROOT%{_mandir}/*/man1/{evim,{,g}vimdiff}.1
984
985 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE3}
986
987 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
988 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
989
990 %clean
991 rm -rf $RPM_BUILD_ROOT
992
993 %post
994 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
995
996 %postun
997 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
998
999 %post -n gvim-athena
1000 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
1001
1002 %postun -n gvim-athena
1003 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
1004
1005 %post -n gvim-motif
1006 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
1007
1008 %postun -n gvim-motif
1009 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
1010
1011 %post -n gvim-gtk
1012 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
1013 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
1014
1015 %postun -n gvim-gtk
1016 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
1017 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
1018
1019 %post -n gvim-gnome
1020 %update_desktop_database_post
1021 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
1022
1023 %postun -n gvim-gnome
1024 %update_desktop_database_postun
1025 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
1026
1027 %files
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_bindir}/vim
1030 %attr(755,root,root) %{_bindir}/rvim
1031 %{_mandir}/man1/rvim.*
1032 %lang(fi) %{_mandir}/fi/man1/rvim.*
1033 %lang(fr) %{_mandir}/fr/man1/rvim.*
1034 %lang(id) %{_mandir}/id/man1/rvim.*
1035 %lang(pl) %{_mandir}/pl/man1/rvim.*
1036 %{_desktopdir}/%{name}.desktop
1037
1038 %if %{with static}
1039 %files static
1040 %endif
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) /bin/*
1043
1044 %{_mandir}/man1/vi.1*
1045 %{_mandir}/man1/ex.1*
1046 %{_mandir}/man1/view.1*
1047 %{_mandir}/man1/rview.1*
1048 %lang(fi) %{_mandir}/fi/man1/vi.1*
1049 %lang(fi) %{_mandir}/fi/man1/ex.1*
1050 %lang(fi) %{_mandir}/fi/man1/view.1*
1051 %lang(fi) %{_mandir}/fi/man1/rview.1*
1052 %lang(fr) %{_mandir}/fr/man1/vi.1*
1053 %lang(fr) %{_mandir}/fr/man1/ex.1*
1054 %lang(fr) %{_mandir}/fr/man1/view.1*
1055 %lang(fr) %{_mandir}/fr/man1/rview.1*
1056 %lang(id) %{_mandir}/id/man1/vi.1*
1057 %lang(id) %{_mandir}/id/man1/ex.1*
1058 %lang(id) %{_mandir}/id/man1/view.1*
1059 %lang(id) %{_mandir}/id/man1/rview.1*
1060 #%lang(it) %{_mandir}/it/man1/vi.1*
1061 %lang(it) %{_mandir}/it/man1/ex.1*
1062 %lang(it) %{_mandir}/it/man1/view.1*
1063 %lang(it) %{_mandir}/it/man1/rview.1*
1064 %lang(pl) %{_mandir}/pl/man1/vi.1*
1065 %lang(pl) %{_mandir}/pl/man1/ex.1*
1066 %lang(pl) %{_mandir}/pl/man1/view.1*
1067 %lang(pl) %{_mandir}/pl/man1/rview.1*
1068 #%lang(ru) %{_mandir}/ru/man1/vi.1*
1069 %lang(ru) %{_mandir}/ru/man1/ex.1*
1070 %lang(ru) %{_mandir}/ru/man1/view.1*
1071 %lang(ru) %{_mandir}/ru/man1/rview.1*
1072
1073 %files -n xxd
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/xxd
1076 %{_mandir}/man1/xxd.1*
1077 %lang(fr) %{_mandir}/fr/man1/xxd.1*
1078 %lang(it) %{_mandir}/it/man1/xxd.1*
1079 %lang(pl) %{_mandir}/pl/man1/xxd.1*
1080 %lang(ru) %{_mandir}/ru/man1/xxd.1*
1081
1082 %files rt
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/vimtutor
1085 %dir %{_sysconfdir}/vim
1086 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1087 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
1088
1089 %dir %{_datadir}/vim
1090 %dir %{_datadir}/vim/v*
1091 %dir %{_datadir}/vim/v*/doc
1092 %doc %{_datadir}/vim/v*/doc/*.txt
1093 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1094 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1095 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
1096 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
1097 %{_datadir}/vim/v*/ftplugin
1098 %{_datadir}/vim/v*/indent
1099 %{_datadir}/vim/v*/keymap
1100 %dir %{_datadir}/vim/v*/lang
1101 %doc %{_datadir}/vim/v*/lang/README*
1102
1103 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
1104 %{_datadir}/vim/vimfiles/after
1105 %{_datadir}/vim/vimfiles/ftdetect
1106
1107 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
1108 %lang(af) %{_datadir}/vim/v*/lang/af/
1109 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
1110 %lang(ca) %{_datadir}/vim/v*/lang/ca/
1111 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1112 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
1113 %lang(cs) %{_datadir}/vim/v*/lang/cs/
1114 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
1115 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
1116 %lang(de) %{_datadir}/vim/v*/lang/de/
1117 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1118 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
1119 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
1120 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1121 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1122 %lang(es) %{_datadir}/vim/v*/lang/es/
1123 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1124 %lang(fr) %{_datadir}/vim/v*/lang/fr/
1125 %lang(ga) %{_datadir}/vim/v*/lang/ga/
1126 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1127 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1128 %lang(it) %{_datadir}/vim/v*/lang/it/
1129 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1130 %lang(ja) %{_datadir}/vim/v*/lang/ja/
1131 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1132 %lang(ko) %{_datadir}/vim/v*/lang/ko/
1133 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1134 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1135 %lang(nb) %{_datadir}/vim/v*/lang/no/
1136 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1137 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1138 %lang(pl) %{_datadir}/vim/v*/lang/pl/
1139 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1140 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1141 %lang(ru) %{_datadir}/vim/v*/lang/ru/
1142 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1143 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1144 %lang(sk) %{_datadir}/vim/v*/lang/sk/
1145 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1146 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1147 %lang(sv) %{_datadir}/vim/v*/lang/sv/
1148 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1149 %lang(uk) %{_datadir}/vim/v*/lang/uk/
1150 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
1151 %lang(vi) %{_datadir}/vim/v*/lang/vi/
1152 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1153 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1154 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1155 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1156 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1157 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1158 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1159 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1160 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1161 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1162
1163 %dir %{_datadir}/vim/v*/spell
1164 %{_datadir}/vim/v*/spell/cleanadd.vim
1165 %lang(en_GB) %{_datadir}/vim/v*/spell/en.*.*
1166 %lang(he) %{_datadir}/vim/v*/spell/he.*
1167 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1168
1169 %{_datadir}/vim/v*/macros
1170 %{_datadir}/vim/v*/plugin
1171 %{_datadir}/vim/v*/print
1172 %{_datadir}/vim/v*/syntax
1173 %{_datadir}/vim/v*/tools
1174 %{_datadir}/vim/v*/tutor
1175 %{_datadir}/vim/v*/colors
1176 %{_datadir}/vim/v*/compiler
1177 %{_datadir}/vim/v*/autoload
1178 %{_datadir}/vim/v*/*.vim
1179
1180 %{_mandir}/man1/vim*
1181 %{_mandir}/man1/rvim.*
1182 %lang(fi) %{_mandir}/fi/man1/vim*
1183 %lang(fi) %{_mandir}/fi/man1/rvim.*
1184 %lang(fi) %{_mandir}/fi/man1/gvi*
1185 %lang(fi) %{_mandir}/fi/man1/rgv*
1186 %lang(fr) %{_mandir}/fr/man1/vim*
1187 %lang(fr) %{_mandir}/fr/man1/rvim.*
1188 %lang(fr) %{_mandir}/fr/man1/gvi*
1189 %lang(fr) %{_mandir}/fr/man1/rgv*
1190 %lang(id) %{_mandir}/id/man1/vim*
1191 %lang(it) %{_mandir}/it/man1/vim*
1192 %lang(pl) %{_mandir}/pl/man1/vim*
1193 %lang(ru) %{_mandir}/ru/man1/vim*
1194 %{_iconsdir}/hicolor/16x16/apps/vim.png
1195 %{_iconsdir}/hicolor/32x32/apps/vim.png
1196 %{_iconsdir}/hicolor/48x48/apps/vim.png
1197
1198 %if %{with athena}
1199 %files -n gvim-athena
1200 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{_bindir}/gvim.athena
1202 %{_desktopdir}/gvim-athena.desktop
1203 %endif
1204
1205 %if %{with motif}
1206 %files -n gvim-motif
1207 %defattr(644,root,root,755)
1208 %attr(755,root,root) %{_bindir}/gvim.motif
1209 %{_desktopdir}/gvim-motif.desktop
1210 %endif
1211
1212 %if %{with gtk}
1213 %files -n gvim-gtk
1214 %defattr(644,root,root,755)
1215 %attr(755,root,root) %{_bindir}/gvim.gtk
1216 %attr(755,root,root) %{_bindir}/rgvim
1217 %attr(755,root,root) %{_bindir}/rgview
1218 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1219 %lang(fi) %{_mandir}/fi/man1/gvi*
1220 %lang(fi) %{_mandir}/fi/man1/rgv*
1221 %lang(fr) %{_mandir}/fr/man1/gvi*
1222 %lang(fr) %{_mandir}/fr/man1/rgv*
1223 %lang(id) %{_mandir}/id/man1/gvi*
1224 %lang(id) %{_mandir}/id/man1/rgv*
1225 %lang(pl) %{_mandir}/pl/man1/gvi*
1226 %lang(pl) %{_mandir}/pl/man1/rgv*
1227 %{_desktopdir}/gvim-gtk.desktop
1228 %endif
1229
1230 %if %{with gnome}
1231 %files -n gvim-gnome
1232 %defattr(644,root,root,755)
1233 %attr(755,root,root) %{_bindir}/gvim.gnome
1234 %{_desktopdir}/gvim-gnome.desktop
1235 %endif
1236
1237 %if %{with bonobo}
1238 %files -n gvim-bonobo
1239 %defattr(644,root,root,755)
1240 %attr(755,root,root) %{_bindir}/vim-component
1241 %attr(755,root,root) %{_bindir}/vim-factory
1242 %{_libdir}/bonobo/servers/*
1243 %endif
This page took 0.22329 seconds and 4 git commands to generate.