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