]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- updated to 7.0.50
[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_without  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     050
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 URL:            http://www.vim.org/
147 BuildRequires:  acl-devel
148 BuildRequires:  autoconf
149 BuildRequires:  gettext-devel
150 BuildRequires:  gpm-devel
151 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.6.0}
152 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
153 %{?with_selinux:BuildRequires:  libselinux-devel}
154 BuildRequires:  ncurses-devel
155 %{?with_motif:BuildRequires:    openmotif-devel}
156 %{?with_perl:BuildRequires:     perl-devel}
157 %{?with_python:BuildRequires:   python-devel}
158 %{?with_ruby:BuildRequires:     ruby-devel}
159 %{?with_tcl:BuildRequires:      tcl-devel}
160 %{?with_athena:BuildRequires:   xorg-lib-libXaw-devel}
161 Obsoletes:      kvim
162 %if %{with bonobo}
163 BuildRequires:  ORBit2-devel
164 BuildRequires:  libbonoboui-devel >= 2.2.0
165 BuildRequires:  libgnomeui-devel >= 2.2.0.1
166 BuildRequires:  nautilus-devel >= 2.2.0
167 %endif
168 BuildRequires:  rpmbuild(macros) >= 1.210
169 %if %{with static}
170 BuildRequires:  acl-static
171 BuildRequires:  attr-static
172 BuildRequires:  glibc-static
173 %{?with_selinux:BuildRequires:  libselinux-static}
174 BuildRequires:  ncurses-static
175 %else
176 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
177 Obsoletes:      elvis-static
178 Obsoletes:      nvi
179 Obsoletes:      vi
180 Obsoletes:      vim-minimal
181 Obsoletes:      vim-static
182 %endif
183 BuildRequires:  unzip
184 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
185 Provides:       vi-editor
186 Provides:       vi
187 Obsoletes:      vim-enhanced
188 Obsoletes:      vim-ispell
189 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
190
191 # that's example script
192 %define         _noautoreq      '/bin/csh'
193
194 %description
195 Text editor similar to Vi. Important improvements: multiple windows,
196 multi-level undo, block highliting, folding, and many other.
197
198 %description -l cs
199 ViM je nový a vylep¹ený editor vycházející z klasického editoru vi. Vi
200 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
201 populární. ViM je obohacený funkcemi jako: podpora více oken,
202 víceúrovòové undo, zvýrazòování blokù a øadu dal¹ích u¾iteèných
203 funkcí.
204
205 %description -l de
206 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
207 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
208 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
209 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
210 Standard-vi-Programm.
211
212 %description -l es
213 El editor Visual Mejorado es una versión actualizada y con nuevas
214 características adicionales del mundialmente famoso 'vi' que acompaña
215 prácticamente todos los sistemas UN*X. Posibilita trabajar con
216 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
217 otras muchas características del 'vi'.
218
219 %description -l fr
220 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
221 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
222 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
223 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
224 blocs et autres caractéristiques au vi de base.
225
226 %description -l id
227 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
228 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
229 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
230 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
231 windows, multi-level undo, block highlighting, dll.
232
233 %description -l is
234 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
235 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
236 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
237 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
238 fleira.
239
240 %description -l it
241 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
242 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
243 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
244 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
245 dei blocchi e altro.
246
247 %description -l pl
248 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
249 oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
250 folding i wiele innych.
251
252 %description -l pt
253 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
254 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
255 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
256 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
257 de blocos e mais.
258
259 %description -l pt_BR
260 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
261 características do mundialmente famoso 'vi' que acompanha praticamente
262 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
263 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
264 outras características do 'vi'.
265
266 %description -l ru
267 VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
268 ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
269 UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
270 ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
271
272 %description -l sk
273 VIM (VIsual editor iMproved) je nov¹ia a vylep¹ená verzia editoru vi.
274 Vi bol prvým skutoène obrazovkovo orientovaným editorom pre UNIX a
275 stále je veµmi populárny. VIM má oproti vi vylep¹enia ako: prácu s
276 viacerými oknami, viacnásobné undo, zvýrazòovanie blokov textu a iné.
277
278 %description -l sv
279 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
280 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
281 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
282 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
283 ändå.
284
285 %description -l tr
286 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
287 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
288
289 %description -l uk
290 VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
291 ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
292 æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
293 ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
294
295 %package -n xxd
296 Summary:        Utility to convert files to hexdump or do the reverse
297 Summary(pl):    Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
298 Group:          Applications/Editors/Vim
299
300 %description -n xxd
301 xxd creates a hex dump of a given file or standard input. It can also
302 convert a hex dump back to its original binary form. Like uuencode and
303 uudecode it allows the transmission of binary data in a `mail-safe'
304 ASCII representation, but has the advantage of decoding to standard
305 output. Moreover, it can be used to perform binary file patching.
306
307 %description -n xxd -l pl
308 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
309 Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
310 Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
311 binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
312 wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
313
314 %package static
315 Summary:        Statically linked Vim
316 Summary(pl):    Statycznie skonsolidowany Vim
317 Group:          Applications/Editors/Vim
318 Provides:       vi-editor
319 Provides:       vi
320 Obsoletes:      elvis-static
321 Obsoletes:      nvi
322 Obsoletes:      vim-minimal
323
324 %description static
325 Text editor similar to Vi. This version is built with minimal feature
326 and is installed in /bin as a rescue tool. The installation of this
327 package is STRONGLY recommended.
328
329 %description static -l pl
330 Edytor tekstu podobny do Vi. Ta wersja zosta³a skonsolidowana
331 statycznie i posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin
332 jako narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
333 zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
334
335 %description static -l ru
336 ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
337 ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
338 ÓÉÓÔÅÍÁ.
339
340 %description static -l uk
341 ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
342 ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
343
344 %package rt
345 Summary:        Vim runtime files
346 Summary(cs):    Soubory nezbytné pro libovolný editor ViM
347 Summary(da):    Fælles filer som er nødvendige for enhver version af VIM editoren
348 Summary(de):    Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
349 Summary(es):    Ficheros comunes a todas las versiones de VIM
350 Summary(fr):    Fichiers communs indispensables pour toute version de l'éditeur VIM
351 Summary(id):    File umum yang dibutuhkan oleh semua versi editor VIM
352 Summary(is):    Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
353 Summary(it):    File comuni necessari per tutte le versioni dell'editor VIM
354 Summary(ja):    ¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î VIM ¥¨¥Ç¥£¥¿¤ÇɬÍפȤµ¤ì¤ë¶¦ÄÌ¥Õ¥¡¥¤¥ë
355 Summary(nb):    Felles filer som er nødvendige for enhver versjon av VIM editoren
356 Summary(pl):    Pliki przydatne edytorowi Vim
357 Summary(pt):    Os ficheiros comuns necessários para qualquer versão do editor VIM
358 Summary(ru):    æÁÊÌÙ, ÔÒÅÂÕÅÍÙÅ ÄÌÑ ÌÀÂÏÊ ×ÅÒÓÉÉ ÒÅÄÁËÔÏÒÁ vim
359 Summary(sk):    Spoloèné súbory potrebné pre v¹etky verzie editoru VIM
360 Summary(sl):    Skupne datoteke, potrebne s katerokoli razlièico urejevalnika VIM
361 Summary(sv):    De gemensamma filerna som behövs av alla versioner av redigeraren VIM
362 Summary(uk):    æÁÊÌÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ÂÕÄØ-ÑËϧ ×ÅÒÓ¦§ ÒÅÄÁËÔÏÒÕ vim
363 Summary(zh_CN): Èκΰ汾µÄ VIM ±à¼­Æ÷ËùÐèµÄ¹«ÓÃÎļþ¡£
364 Group:          Applications/Editors/Vim
365 # mktemp is for vimtutor
366 Requires:       mktemp
367 Requires:       vi-editor
368 Obsoletes:      vim-common
369
370 %description rt
371 This package contains macros, documentation, syntax configuration and
372 manual pages for Vim. If you want to take advantage of Vim more
373 powerful features, you should install this package.
374
375 %description rt -l cs
376 Tento balíèek obsahuje spoleèné soubory pro v¹echny dal¹í balíèky s
377 vim.
378
379 %description rt -l da
380 The vim-rt package contains files which every VIM binary will need in
381 order to run.
382
383 %description rt -l de
384 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
385 Ausführung benötigt.
386
387 %description rt -l fr
388 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
389 VIM a besoin pour fonctionner.
390
391 %description rt -l id
392 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
393 berjalan.
394
395 %description rt -l is
396 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
397 til að keyra.
398
399 %description rt -l it
400 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
401 per poter funzionare.
402
403 %description rt -l pl
404 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
405 strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
406 zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
407
408 %description rt -l pt
409 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
410 irão necessitar para correr.
411
412 %description rt -l ru
413 ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
414 ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
415
416 %description rt -l sk
417 Balík vim-rt obsahuje súbory, ktoré bude potrebova» pre správnu
418 funkciu ka¾dá verzia editoru VIM.
419
420 %description rt -l sv
421 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
422 köra.
423
424 %description rt -l uk
425 ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
426 ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
427
428 %package -n gvim-athena
429 Summary:        Vim for X Window built with Athena
430 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Athena
431 Group:          Applications/Editors/Vim
432 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
433 Requires:       iconv
434 Provides:       vi-editor
435 Obsoletes:      vim-X11
436
437 %description -n gvim-athena
438 The classic Unix text editor now also under X Window System! This
439 version is built with Athena Widget Set.
440
441 %description -n gvim-athena -l pl
442 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
443 biblioteki Athena Widget Set.
444
445 %description -n gvim-athena -l ru
446 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
447 Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
448 System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
449
450 %description -n gvim-athena -l uk
451 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
452 Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
453 Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
454
455 %package -n gvim-motif
456 Summary:        Vim for X Window built with Motif
457 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
458 Group:          Applications/Editors/Vim
459 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
460 Requires:       iconv
461 Provides:       vi-editor
462 Obsoletes:      vim-X11
463
464 %description -n gvim-motif
465 The classic Unix text editor now also under X Window System! This
466 version is built with Motif.
467
468 %description -n gvim-motif -l pl
469 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
470 biblioteki Motif.
471
472 %description -n gvim-motif -l ru
473 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
474 Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
475 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
476
477 %description -n gvim-motif -l uk
478 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
479 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
480 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
481
482 %package -n gvim-gtk
483 Summary:        Vim for X Window built with gtk
484 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
485 Group:          Applications/Editors/Vim
486 Requires(post,postun):  gtk+2
487 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
488 Requires:       iconv
489 Provides:       vi-editor
490 Obsoletes:      vim-X11
491
492 %description -n gvim-gtk
493 The classic Unix text editor now also under X Window System! This
494 version is built with GTK.
495
496 %description -n gvim-gtk -l pl
497 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
498 biblioteki GTK.
499
500 %description -n gvim-gtk -l ru
501 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
502 GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
503 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
504 'gvim'...
505
506 %description -n gvim-gtk -l uk
507 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
508 ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
509 ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
510
511 %package -n gvim-gnome
512 Summary:        Vim for X Window built with GNOME
513 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GNOME
514 Group:          Applications/Editors/Vim
515 Requires(post,postun):  gtk+2
516 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
517 Requires:       iconv
518 Provides:       vi-editor
519 Obsoletes:      vim-X11
520
521 %description -n gvim-gnome
522 The classic Unix text editor now also under X Window System! This
523 version is build with GNOME.
524
525 %description -n gvim-gnome -l pl
526 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
527 bibliotek GNOME.
528
529 %description -n gvim-gnome -l ru
530 üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
531 GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
532 ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
533
534 %description -n gvim-gnome -l uk
535 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
536 ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
537 ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
538
539 %package -n gvim-bonobo
540 Summary:        Vim for X Window built as bonobo component
541 Summary(pl):    Vim dla X Window zbudowany jako element bonobo
542 Group:          Applications/Editors/Vim
543 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
544 Requires:       iconv
545 Provides:       vi-editor
546 Obsoletes:      vim-X11
547
548 %description -n gvim-bonobo
549 The classic Unix text editor now also under X Window System! This
550 version is build as bonobo component.
551
552 %description -n gvim-bonobo -l pl
553 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window, zbudowana jako
554 element bonobo.
555
556 %prep
557 %setup -q -n vim70 -b1
558 %patch0 -p1
559 %patch1 -p1
560 %patch2 -p1
561 %patch3 -p1
562 %patch4 -p1
563 %patch5 -p1
564 %patch6 -p1
565 %patch7 -p1
566 %patch8 -p1
567 %patch9 -p1
568 %patch10 -p0
569 %patch11 -p1
570 %patch12 -p1
571 %patch13 -p1
572 %patch14 -p1
573 %patch15 -p1
574 %patch16 -p1
575 %patch17 -p0
576 %patch18 -p0
577 %patch19 -p1
578 %patch20 -p1
579 %patch21 -p1
580 %patch22 -p1
581 %patch23 -p1
582
583 # official patches
584 %patch201 -p0
585 %patch202 -p0
586 %patch203 -p0
587 %patch204 -p0
588 # patch for -extra
589 #%patch205 -p0
590 %patch206 -p0
591 %patch207 -p0
592 %patch208 -p0
593 %patch209 -p0
594 %patch210 -p0
595 %patch211 -p0
596 %patch212 -p0
597 %patch213 -p0
598 %patch214 -p0
599 %patch215 -p0
600 %patch216 -p0
601 %patch217 -p0
602 %patch218 -p0
603 %patch219 -p0
604 %patch220 -p0
605 %patch221 -p0
606 %patch222 -p0
607 %patch223 -p0
608 %patch224 -p0
609 %patch225 -p0
610 %patch226 -p0
611 # patches for -extra
612 #%patch227 -p0
613 #%patch228 -p0
614 %patch229 -p0
615 %patch230 -p0
616 %patch231 -p0
617 # patch for -extra
618 #%patch232 -p0
619 %patch233 -p0
620 %patch234 -p0
621 %patch235 -p0
622 %patch236 -p0
623 %patch237 -p0
624 %patch238 -p0
625 %patch239 -p0
626 %patch240 -p0
627 %patch241 -p0
628 %patch242 -p0
629 %patch243 -p0
630 %patch244 -p0
631 # patch for -extra
632 #%patch245 -p0
633 %patch246 -p0
634 %patch247 -p0
635 %patch248 -p0
636 %patch249 -p0
637 %patch250 -p0
638
639 # bonobo
640 %if %{with bonobo}
641 %patch100 -p1
642 %patch101 -p1
643 %patch102 -p1
644 %patch103 -p1
645 %endif
646
647 # home etc
648 %{?with_home_etc:%patch104 -p1}
649
650 # selinux
651 %{?with_selinux:%patch105 -p1}
652
653 install %{SOURCE14} runtime/indent
654 install %{SOURCE15} runtime/colors
655 install %{SOURCE16} runtime/syntax
656 install %{SOURCE17} runtime/syntax
657 install %{SOURCE18} runtime/syntax
658 install %{SOURCE19} runtime/ftplugin/spec.vim
659
660 %build
661 cd src
662 %{__autoconf}
663 # needed to prevent deconfiguring
664 cp -f configure auto
665
666 install -d bin
667
668 %if %{with bonobo}
669 %{__make} distclean
670 %configure \
671         --with-features=huge \
672         --enable-gui=gnome2 \
673         --enable-bonobo \
674         --enable-gtk2-check \
675         --enable-gnome-check \
676         --with-x \
677         %{!?with_perl:--disable-perlinterp} \
678         %{?with_perl:--enable-perlinterp} \
679         %{!?with_python:--disable-pythoninterp} \
680         %{?with_python:--enable-pythoninterp} \
681         %{!?with_ruby:--disable-rubyinterp} \
682         %{?with_ruby:--enable-rubyinterp} \
683         %{!?with_tcl:--disable-tclinterp} \
684         %{?with_tcl:--enable-tclinterp} \
685         --disable-gpm \
686         --enable-cscope \
687         --enable-nls \
688         --with-modifiedby="PLD Linux Distribution" \
689         --with-compiledby="PLD Linux Distribution"
690
691 %{__make} vim-component vim-factory Vim_Control.server
692 mv vim-component vim-factory Vim_Control.server bin/
693 %endif
694
695 %if %{with static}
696 %{__make} distclean
697 LDFLAGS="%{rpmldflags} -static"
698 %configure \
699         --disable-gui \
700         --without-x \
701         --disable-perlinterp \
702         --disable-pythoninterp \
703         --disable-rubyinterp \
704         --disable-tclinterp \
705         --disable-cscope \
706         --disable-gpm \
707         --disable-multibyte \
708         %{?with_bonobo:--disable-bonobo} \
709         --with-features=small \
710         --with-tlib="ncurses -ltinfo" \
711         --disable-nls \
712         --with-modifiedby="PLD Linux Distribution" \
713         --with-compiledby="PLD Linux Distribution"
714
715 %{__make} vim
716
717 mv -f vim bin/vim.static
718 LDFLAGS="%{rpmldflags}"
719 %endif
720
721 %{__make} distclean
722 %configure \
723         --disable-gui \
724         --without-x \
725         %{!?with_perl:--disable-perlinterp} \
726         %{?with_perl:--enable-perlinterp} \
727         %{!?with_python:--disable-pythoninterp} \
728         %{?with_python:--enable-pythoninterp} \
729         %{!?with_ruby:--disable-rubyinterp} \
730         %{?with_ruby:--enable-rubyinterp} \
731         %{!?with_tcl:--disable-tclinterp} \
732         %{?with_tcl:--enable-tclinterp} \
733         %{?with_bonobo:--disable-bonobo} \
734         --enable-cscope \
735         --enable-gpm \
736         --with-features=huge \
737         --enable-multibyte \
738         --with-tlib="ncurses -ltinfo" \
739         --enable-nls \
740         --with-modifiedby="PLD Linux Distribution" \
741         --with-compiledby="PLD Linux Distribution"
742
743 %{__make} vim
744
745 mv -f vim bin/vim.ncurses
746
747 %if %{with athena}
748 %{__make} distclean
749 %configure \
750         --with-features=huge \
751         --enable-gui=athena \
752         --with-x \
753         %{!?with_perl:--disable-perlinterp} \
754         %{?with_perl:--enable-perlinterp} \
755         %{!?with_python:--disable-pythoninterp} \
756         %{?with_python:--enable-pythoninterp} \
757         %{!?with_ruby:--disable-rubyinterp} \
758         %{?with_ruby:--enable-rubyinterp} \
759         %{!?with_tcl:--disable-tclinterp} \
760         %{?with_tcl:--enable-tclinterp} \
761         %{?with_bonobo:--disable-bonobo} \
762         --enable-cscope \
763         --enable-fontset \
764         --disable-gpm \
765         --without-gnome \
766         --with-tlib="ncurses -ltinfo" \
767         --enable-nls \
768         --with-modifiedby="PLD Linux Distribution" \
769         --with-compiledby="PLD Linux Distribution"
770
771 %{__make} vim
772 mv -f vim bin/gvim.athena
773 %endif
774
775
776 %if %{with motif}
777 %{__make} distclean
778 %configure \
779         --with-features=huge \
780         --enable-gui=motif \
781         --with-x \
782         %{!?with_perl:--disable-perlinterp} \
783         %{?with_perl:--enable-perlinterp} \
784         %{!?with_python:--disable-pythoninterp} \
785         %{?with_python:--enable-pythoninterp} \
786         %{!?with_ruby:--disable-rubyinterp} \
787         %{?with_ruby:--enable-rubyinterp} \
788         %{!?with_tcl:--disable-tclinterp} \
789         %{?with_tcl:--enable-tclinterp} \
790         %{?with_bonobo:--disable-bonobo} \
791         --enable-multibyte \
792         --enable-cscope \
793         --enable-fontset \
794         --disable-gpm \
795         --without-gnome \
796         --with-tlib="ncurses -ltinfo" \
797         --enable-nls \
798         --with-modifiedby="PLD Linux Distribution" \
799         --with-compiledby="PLD Linux Distribution"
800
801 %{__make} vim
802 mv -f vim bin/gvim.motif
803 %endif
804
805 %if %{with gtk}
806 %{__make} distclean
807 %configure \
808         --with-features=huge \
809         --enable-gui=gtk2 \
810         --enable-gtk2-check \
811         --with-x \
812         %{!?with_perl:--disable-perlinterp} \
813         %{?with_perl:--enable-perlinterp} \
814         %{!?with_python:--disable-pythoninterp} \
815         %{?with_python:--enable-pythoninterp} \
816         %{!?with_ruby:--disable-rubyinterp} \
817         %{?with_ruby:--enable-rubyinterp} \
818         %{!?with_tcl:--disable-tclinterp} \
819         %{?with_tcl:--enable-tclinterp} \
820         %{?with_bonobo:--disable-bonobo} \
821         --disable-gpm \
822         --enable-cscope \
823         --with-tlib="ncurses -ltinfo" \
824         --enable-nls \
825         --with-modifiedby="PLD Linux Distribution" \
826         --with-compiledby="PLD Linux Distribution"
827
828 %{__make} vim
829 mv -f vim bin/gvim.gtk
830 %endif
831
832 %if %{with gnome}
833 %{__make} distclean
834 %configure \
835         --with-features=huge \
836         --enable-gui=gnome2 \
837         %{?with_bonobo:--disable-bonobo} \
838         --enable-gtk2-check \
839         --enable-gnome-check \
840         --with-x \
841         %{!?with_perl:--disable-perlinterp} \
842         %{?with_perl:--enable-perlinterp} \
843         %{!?with_python:--disable-pythoninterp} \
844         %{?with_python:--enable-pythoninterp} \
845         %{!?with_ruby:--disable-rubyinterp} \
846         %{?with_ruby:--enable-rubyinterp} \
847         %{!?with_tcl:--disable-tclinterp} \
848         %{?with_tcl:--enable-tclinterp} \
849         --disable-gpm \
850         --enable-cscope \
851         --with-tlib="ncurses -ltinfo" \
852         --enable-nls \
853         --with-modifiedby="PLD Linux Distribution" \
854         --with-compiledby="PLD Linux Distribution"
855
856 %{__make} vim
857 mv -f vim bin/gvim.gnome
858 %endif
859
860 %{__make} xxd/xxd languages
861
862 %install
863 rm -rf $RPM_BUILD_ROOT
864
865 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
866         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
867         $RPM_BUILD_ROOT%{_desktopdir}
868
869 %{__make} install \
870         DESTDIR=$RPM_BUILD_ROOT
871
872 rm -f $RPM_BUILD_ROOT%{_bindir}/*
873
874 %if %{with static}
875 install src/bin/vim.ncurses     $RPM_BUILD_ROOT%{_bindir}/vim
876 install src/bin/vim.static      $RPM_BUILD_ROOT/bin/vi
877 %else
878 install src/bin/vim.ncurses     $RPM_BUILD_ROOT/bin/vi
879 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
880 %endif
881 install src/xxd/xxd     $RPM_BUILD_ROOT%{_bindir}/xxd
882 install src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
883
884 # Moved into patch
885 #
886 # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
887 # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
888 # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
889 # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
890 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
891 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
892 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
893 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
894
895 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
896 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
897
898 # not supported directories
899 rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
900
901 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
902 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
903
904 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
905 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
906 ln -sf vi  $RPM_BUILD_ROOT/bin/view
907 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
908
909 install %{SOURCE14}     $RPM_BUILD_ROOT%{_desktopdir}
910
911 %if %{with athena}
912 install src/bin/gvim.athena     $RPM_BUILD_ROOT%{_bindir}/gvim.athena
913 install %{SOURCE10}     $RPM_BUILD_ROOT%{_desktopdir}
914 %endif
915 %if %{with motif}
916 install src/bin/gvim.motif      $RPM_BUILD_ROOT%{_bindir}/gvim.motif
917 install %{SOURCE11}     $RPM_BUILD_ROOT%{_desktopdir}
918 %endif
919 %if %{with gnome}
920 install src/bin/gvim.gnome      $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
921 install %{SOURCE13}     $RPM_BUILD_ROOT%{_desktopdir}
922 %endif
923 %if %{with gtk}
924 install src/bin/gvim.gtk        $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
925 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
926 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
927 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
928 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
929 install %{SOURCE12}     $RPM_BUILD_ROOT%{_desktopdir}
930 %endif
931
932 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
933 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
934 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
935 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
936
937 # Bonobo
938 %if %{with bonobo}
939 install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
940 install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
941 install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
942 %endif
943
944 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
945
946 # non-existent binaries
947 rm -rf $RPM_BUILD_ROOT%{_mandir}/*/man1/{evim,{,g}vimdiff}.1
948
949 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE3}
950
951 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
952 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
953
954 %clean
955 rm -rf $RPM_BUILD_ROOT
956
957 %post
958 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
959
960 %postun
961 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
962
963 %post -n gvim-athena
964 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
965
966 %postun -n gvim-athena
967 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
968
969 %post -n gvim-motif
970 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
971
972 %postun -n gvim-motif
973 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
974
975 %post -n gvim-gtk
976 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
977 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
978
979 %postun -n gvim-gtk
980 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
981 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
982
983 %post -n gvim-gnome
984 %update_desktop_database_post
985 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
986
987 %postun -n gvim-gnome
988 %update_desktop_database_postun
989 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
990
991 %files
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_bindir}/vim
994 %attr(755,root,root) %{_bindir}/rvim
995 %{_mandir}/man1/rvim.*
996 %lang(fi) %{_mandir}/fi/man1/rvim.*
997 %lang(fr) %{_mandir}/fr/man1/rvim.*
998 %lang(id) %{_mandir}/id/man1/rvim.*
999 %lang(pl) %{_mandir}/pl/man1/rvim.*
1000 %{_desktopdir}/%{name}.desktop
1001
1002 %if %{with static}
1003 %files static
1004 %endif
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) /bin/*
1007
1008 %{_mandir}/man1/vi.1*
1009 %{_mandir}/man1/ex.1*
1010 %{_mandir}/man1/view.1*
1011 %{_mandir}/man1/rview.1*
1012 %lang(fi) %{_mandir}/fi/man1/vi.1*
1013 %lang(fi) %{_mandir}/fi/man1/ex.1*
1014 %lang(fi) %{_mandir}/fi/man1/view.1*
1015 %lang(fi) %{_mandir}/fi/man1/rview.1*
1016 %lang(fr) %{_mandir}/fr/man1/vi.1*
1017 %lang(fr) %{_mandir}/fr/man1/ex.1*
1018 %lang(fr) %{_mandir}/fr/man1/view.1*
1019 %lang(fr) %{_mandir}/fr/man1/rview.1*
1020 %lang(id) %{_mandir}/id/man1/vi.1*
1021 %lang(id) %{_mandir}/id/man1/ex.1*
1022 %lang(id) %{_mandir}/id/man1/view.1*
1023 %lang(id) %{_mandir}/id/man1/rview.1*
1024 #%lang(it) %{_mandir}/it/man1/vi.1*
1025 %lang(it) %{_mandir}/it/man1/ex.1*
1026 %lang(it) %{_mandir}/it/man1/view.1*
1027 %lang(it) %{_mandir}/it/man1/rview.1*
1028 %lang(pl) %{_mandir}/pl/man1/vi.1*
1029 %lang(pl) %{_mandir}/pl/man1/ex.1*
1030 %lang(pl) %{_mandir}/pl/man1/view.1*
1031 %lang(pl) %{_mandir}/pl/man1/rview.1*
1032 #%lang(ru) %{_mandir}/ru/man1/vi.1*
1033 %lang(ru) %{_mandir}/ru/man1/ex.1*
1034 %lang(ru) %{_mandir}/ru/man1/view.1*
1035 %lang(ru) %{_mandir}/ru/man1/rview.1*
1036
1037 %files -n xxd
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_bindir}/xxd
1040 %{_mandir}/man1/xxd.1*
1041 %lang(fr) %{_mandir}/fr/man1/xxd.1*
1042 %lang(it) %{_mandir}/it/man1/xxd.1*
1043 %lang(pl) %{_mandir}/pl/man1/xxd.1*
1044 %lang(ru) %{_mandir}/ru/man1/xxd.1*
1045
1046 %files rt
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_bindir}/vimtutor
1049 %dir %{_sysconfdir}/vim
1050 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
1052
1053 %dir %{_datadir}/vim
1054 %dir %{_datadir}/vim/v*
1055 %dir %{_datadir}/vim/v*/doc
1056 %doc %{_datadir}/vim/v*/doc/*.txt
1057 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1058 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
1059 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
1060 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
1061 %{_datadir}/vim/v*/ftplugin
1062 %{_datadir}/vim/v*/indent
1063 %{_datadir}/vim/v*/keymap
1064 %dir %{_datadir}/vim/v*/lang
1065 %doc %{_datadir}/vim/v*/lang/README*
1066
1067 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
1068 %{_datadir}/vim/vimfiles/after
1069 %{_datadir}/vim/vimfiles/ftdetect
1070
1071 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
1072 %lang(af) %{_datadir}/vim/v*/lang/af/
1073 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
1074 %lang(ca) %{_datadir}/vim/v*/lang/ca/
1075 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1076 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
1077 %lang(cs) %{_datadir}/vim/v*/lang/cs/
1078 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
1079 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
1080 %lang(de) %{_datadir}/vim/v*/lang/de/
1081 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
1082 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
1083 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
1084 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
1085 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1086 %lang(es) %{_datadir}/vim/v*/lang/es/
1087 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
1088 %lang(fr) %{_datadir}/vim/v*/lang/fr/
1089 %lang(ga) %{_datadir}/vim/v*/lang/ga/
1090 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1091 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
1092 %lang(it) %{_datadir}/vim/v*/lang/it/
1093 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
1094 %lang(ja) %{_datadir}/vim/v*/lang/ja/
1095 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
1096 %lang(ko) %{_datadir}/vim/v*/lang/ko/
1097 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1098 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
1099 %lang(nb) %{_datadir}/vim/v*/lang/no/
1100 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1101 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
1102 %lang(pl) %{_datadir}/vim/v*/lang/pl/
1103 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1104 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
1105 %lang(ru) %{_datadir}/vim/v*/lang/ru/
1106 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1107 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
1108 %lang(sk) %{_datadir}/vim/v*/lang/sk/
1109 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1110 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
1111 %lang(sv) %{_datadir}/vim/v*/lang/sv/
1112 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
1113 %lang(uk) %{_datadir}/vim/v*/lang/uk/
1114 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
1115 %lang(vi) %{_datadir}/vim/v*/lang/vi/
1116 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1117 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1118 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1119 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1120 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1121 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1122 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1123 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1124 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1125 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1126
1127 %dir %{_datadir}/vim/v*/spell
1128 %{_datadir}/vim/v*/spell/cleanadd.vim
1129 %lang(en_GB) %{_datadir}/vim/v*/spell/en.*.*
1130 %lang(he) %{_datadir}/vim/v*/spell/he.*
1131 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1132
1133 %{_datadir}/vim/v*/macros
1134 %{_datadir}/vim/v*/plugin
1135 %{_datadir}/vim/v*/print
1136 %{_datadir}/vim/v*/syntax
1137 %{_datadir}/vim/v*/tools
1138 %{_datadir}/vim/v*/tutor
1139 %{_datadir}/vim/v*/colors
1140 %{_datadir}/vim/v*/compiler
1141 %{_datadir}/vim/v*/autoload
1142 %{_datadir}/vim/v*/*.vim
1143
1144 %{_mandir}/man1/vim*
1145 %{_mandir}/man1/rvim.*
1146 %lang(fi) %{_mandir}/fi/man1/vim*
1147 %lang(fi) %{_mandir}/fi/man1/rvim.*
1148 %lang(fi) %{_mandir}/fi/man1/gvi*
1149 %lang(fi) %{_mandir}/fi/man1/rgv*
1150 %lang(fr) %{_mandir}/fr/man1/vim*
1151 %lang(fr) %{_mandir}/fr/man1/rvim.*
1152 %lang(fr) %{_mandir}/fr/man1/gvi*
1153 %lang(fr) %{_mandir}/fr/man1/rgv*
1154 %lang(id) %{_mandir}/id/man1/vim*
1155 %lang(it) %{_mandir}/it/man1/vim*
1156 %lang(pl) %{_mandir}/pl/man1/vim*
1157 %lang(ru) %{_mandir}/ru/man1/vim*
1158 %{_iconsdir}/hicolor/16x16/apps/vim.png
1159 %{_iconsdir}/hicolor/32x32/apps/vim.png
1160 %{_iconsdir}/hicolor/48x48/apps/vim.png
1161
1162 %if %{with athena}
1163 %files -n gvim-athena
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_bindir}/gvim.athena
1166 %{_desktopdir}/gvim-athena.desktop
1167 %endif
1168
1169 %if %{with motif}
1170 %files -n gvim-motif
1171 %defattr(644,root,root,755)
1172 %attr(755,root,root) %{_bindir}/gvim.motif
1173 %{_desktopdir}/gvim-motif.desktop
1174 %endif
1175
1176 %if %{with gtk}
1177 %files -n gvim-gtk
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{_bindir}/gvim.gtk
1180 %attr(755,root,root) %{_bindir}/rgvim
1181 %attr(755,root,root) %{_bindir}/rgview
1182 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1183 %lang(fi) %{_mandir}/fi/man1/gvi*
1184 %lang(fi) %{_mandir}/fi/man1/rgv*
1185 %lang(fr) %{_mandir}/fr/man1/gvi*
1186 %lang(fr) %{_mandir}/fr/man1/rgv*
1187 %lang(id) %{_mandir}/id/man1/gvi*
1188 %lang(id) %{_mandir}/id/man1/rgv*
1189 %lang(pl) %{_mandir}/pl/man1/gvi*
1190 %lang(pl) %{_mandir}/pl/man1/rgv*
1191 %{_desktopdir}/gvim-gtk.desktop
1192 %endif
1193
1194 %if %{with gnome}
1195 %files -n gvim-gnome
1196 %defattr(644,root,root,755)
1197 %attr(755,root,root) %{_bindir}/gvim.gnome
1198 %{_desktopdir}/gvim-gnome.desktop
1199 %endif
1200
1201 %if %{with bonobo}
1202 %files -n gvim-bonobo
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{_bindir}/vim-component
1205 %attr(755,root,root) %{_bindir}/vim-factory
1206 %{_libdir}/bonobo/servers/*
1207 %endif
This page took 0.11125 seconds and 4 git commands to generate.