3 # - create vim-full (better name, anybody?) or/and other packages
4 # for scripting languages support
7 /usr/share/man/fr/man1/eview.1
8 /usr/share/man/it/man1/eview.1
9 /usr/share/man/man1/eview.1
10 /usr/share/man/pl/man1/eview.1
11 /usr/share/man/ru/man1/eview.1
12 /usr/share/vim/vim71/lang/menu_sl_si.cp1250.vim
13 /usr/share/vim/vim71/lang/menu_sl_si.latin2.vim
14 /usr/share/vim/vim71/lang/menu_sl_si.utf-8.vim
15 /usr/share/vim/vim71/lang/zh_CN.UTF-8/LC_MESSAGES/vim.mo
16 /usr/share/vim/vim71/lang/zh_TW.UTF-8/LC_MESSAGES/vim.mo
20 %bcond_without static # don't build static version
21 %bcond_without athena # don't build Athena Widgets-based gvim
22 %bcond_without motif # don't build Motif-based gvim
23 %bcond_without gtk # don't build GTK+-based gvim support
24 %bcond_without gnome # don't build GNOME-based gvim support
25 %bcond_with perl # with Perl interp
26 %bcond_with python # with Python interp
27 %bcond_with ruby # with Ruby interp
28 %bcond_with tcl # with Tcl interp
29 %bcond_without selinux # without selinux support
30 %bcond_without home_etc # without home_etc support
33 %define _patchlevel 116
36 # cflags get changed while configuring
37 %undefine configure_cache
39 Summary: Vi IMproved - a Vi clone
40 Summary(de.UTF-8): VIsual editor iMproved
41 Summary(es.UTF-8): Editor visual incrementado
42 Summary(fr.UTF-8): Editeur VIM : VIsual editor iMproved
43 Summary(pl.UTF-8): Vi IMproved - klon edytora Vi
44 Summary(pt_BR.UTF-8): Editor visual incrementado
45 Summary(ru.UTF-8): Visual editor IMproved - Единственно Правильный Редактор :)
46 Summary(tr.UTF-8): Gelişmiş bir vi sürümü
47 Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
49 Version: %{_ver}.%{_patchlevel}
53 Group: Applications/Editors/Vim
54 Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2
55 # Source0-md5: 44c6b4914f38d6f9aa959640b89da329
56 Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-lang.tar.gz
57 # Source1-md5: 144aa049ba70621acf4247f0459f3ee7
58 Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-extra.tar.gz
59 # Source2-md5: 605cc7ae31bcc9d7864bb0bb6025f55d
60 Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
61 # Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
62 Source4: http://skawina.eu.org/mikolaj/usr_doc_pl.zip
63 # Source4-md5: ff96284b1c913d55cf0877839b34d490
64 Source10: g%{name}-athena.desktop
65 Source11: g%{name}-motif.desktop
66 Source12: g%{name}-gtk.desktop
67 Source13: g%{name}-gnome.desktop
68 Source14: %{name}.desktop
69 # http://www.vim.org/scripts/script.php?script_id=415 (1.15)
70 Source15: zenburn.%{name}
71 Source16: spec.%{name}
72 # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.3)
73 Source17: javascript.%{name}
74 Source18: nagios.%{name}
75 Source19: %{name}-ftplugin-spec.vim
76 Patch0: %{name}-sysconfdir.patch
77 Patch1: %{name}-visual.patch
78 Patch2: %{name}-paths.patch
79 Patch3: %{name}-%{name}rc.patch
80 Patch4: %{name}-no_libelf.patch
81 Patch5: %{name}-egrep.patch
82 Patch6: %{name}-awk.patch
83 Patch7: %{name}-filetype_vim-perl_tests.patch
84 Patch8: %{name}-apache.patch
85 Patch9: %{name}-po-syntax.patch
86 Patch10: %{name}-modprobe.patch
87 Patch11: %{name}-doubleparenthesis.patch
88 Patch12: %{name}-syntax-fstab.patch
89 Patch13: 010_all_%{name}-6.3-vixie.patch
90 Patch14: 013_all_%{name}-7.0-cron-vars-79981.patch
91 Patch15: 020_all_%{name}-7.0-fstab-tmpfs-size.patch
92 Patch16: 021_all_%{name}-7.0-fstab-bogus-errors.patch
93 Patch17: 024_all_%{name}-6.3-bash-83565.patch
94 Patch18: 027_all_%{name}-7.0-automake-substitutions-93378.patch
95 Patch19: %{name}-smarty.patch
96 Patch20: %{name}-tutor-lessdeps.patch
97 Patch21: %{name}-nagios.patch
98 Patch22: %{name}-filetypes.patch
99 Patch23: %{name}-man_installation.patch
100 Patch102: %{name}-gtkfilechooser.patch
101 Patch104: %{name}-home_etc.patch
102 Patch105: %{name}-selinux.patch
103 Patch106: %{name}-autopaste.patch
104 Patch107: %{name}-ft-cron.patch
105 %patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{_patchlevel}
106 URL: http://www.vim.org/
107 BuildRequires: acl-devel
108 BuildRequires: autoconf
109 BuildRequires: gettext-devel
110 BuildRequires: gpm-devel
111 %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.6.0}
112 %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.2.0.1}
113 %{?with_selinux:BuildRequires: libselinux-devel}
114 BuildRequires: ncurses-devel
115 %{?with_motif:BuildRequires: openmotif-devel}
116 %{?with_perl:BuildRequires: perl-devel}
117 %{?with_python:BuildRequires: python-devel >= 2.5}
118 BuildRequires: rpmbuild(macros) >= 1.351
119 %{?with_ruby:BuildRequires: ruby-devel}
120 %{?with_tcl:BuildRequires: tcl-devel}
121 %{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
124 BuildRequires: acl-static
125 BuildRequires: attr-static
126 BuildRequires: glibc-static
127 %{?with_selinux:BuildRequires: libselinux-static}
128 BuildRequires: ncurses-static
130 Provides: %{name}-static = %{epoch}:%{version}-%{release}
131 Obsoletes: elvis-static
134 Obsoletes: vim-minimal
135 Obsoletes: vim-static
138 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
141 Obsoletes: vim-enhanced
142 Obsoletes: vim-ispell
143 Obsoletes: vim-plugin-multvals
144 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
146 # that's example script
147 %define _noautoreq '/bin/csh'
150 Text editor similar to Vi. Important improvements: multiple windows,
151 multi-level undo, block highliting, folding, and many other.
153 %description -l cs.UTF-8
154 ViM je nový a vylepšený editor vycházející z klasického editoru vi. Vi
155 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
156 populární. ViM je obohacený funkcemi jako: podpora více oken,
157 víceúrovňové undo, zvýrazňování bloků a řadu dalších užitečných
160 %description -l de.UTF-8
161 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
162 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
163 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
164 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
165 Standard-vi-Programm.
167 %description -l es.UTF-8
168 El editor Visual Mejorado es una versión actualizada y con nuevas
169 características adicionales del mundialmente famoso 'vi' que acompaña
170 prácticamente todos los sistemas UN*X. Posibilita trabajar con
171 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
172 otras muchas características del 'vi'.
174 %description -l fr.UTF-8
175 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
176 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
177 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
178 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
179 blocs et autres caractéristiques au vi de base.
181 %description -l id.UTF-8
182 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
183 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
184 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
185 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
186 windows, multi-level undo, block highlighting, dll.
188 %description -l is.UTF-8
189 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
190 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
191 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
192 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
195 %description -l it.UTF-8
196 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
197 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
198 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
199 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
202 %description -l pl.UTF-8
203 Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
204 oknach, wielopoziomowa opcja 'cofnij', bloki, podświetlanie składni,
205 folding i wiele innych.
207 %description -l pt.UTF-8
208 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
209 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
210 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
211 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
214 %description -l pt_BR.UTF-8
215 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
216 características do mundialmente famoso 'vi' que acompanha praticamente
217 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
218 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
219 outras características do 'vi'.
221 %description -l ru.UTF-8
222 VIsual editor iMproved - это обновленный и значительно улучшенный клон
223 редактора vi, который поставляется практически со всеми
224 UN*X-системами. В этой версии есть многоуровневый откат, выделение
225 блоков, синтаксическая подсветка и много другого...
227 %description -l sk.UTF-8
228 VIM (VIsual editor iMproved) je novšia a vylepšená verzia editoru vi.
229 Vi bol prvým skutočne obrazovkovo orientovaným editorom pre UNIX a
230 stále je veľmi populárny. VIM má oproti vi vylepšenia ako: prácu s
231 viacerými oknami, viacnásobné undo, zvýrazňovanie blokov textu a iné.
233 %description -l sv.UTF-8
234 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
235 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
236 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
237 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
240 %description -l tr.UTF-8
241 Standart vi metin düzenleyicisinin gelişmiş hali; daha fazla komut,
242 birden fazla pencere desteği ve blok işaretleme yetenekleri içerir.
244 %description -l uk.UTF-8
245 VIsual editor iMproved - це оновлений та значно поліпшений клон
246 редактора vi, який поставляється практично зі всіма UN*X-системами. В
247 цій версії є багаторівневий відкат, виділення блоків, синтаксична
248 підсвітка та багато іншого...
251 Summary: Utility to convert files to hexdump or do the reverse
252 Summary(pl.UTF-8): Narzędzie do zamiany plików na postać szesnastkową i odwrotnie
253 Group: Applications/Editors/Vim
256 xxd creates a hex dump of a given file or standard input. It can also
257 convert a hex dump back to its original binary form. Like uuencode and
258 uudecode it allows the transmission of binary data in a `mail-safe'
259 ASCII representation, but has the advantage of decoding to standard
260 output. Moreover, it can be used to perform binary file patching.
262 %description -n xxd -l pl.UTF-8
263 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wejście.
264 Może także przekonwertować taki zapis na oryginalną, binarną postać.
265 Podobnie jak uuencode i uudecode pozwala na przesyłanie danych
266 binarnych w postaci ASCII, ale ma możliwość dekodowania na standardowe
267 wyjście. Co więcej, może być użyty do modyfikowania plików binarnych.
270 Summary: Statically linked Vim
271 Summary(pl.UTF-8): Statycznie skonsolidowany Vim
272 Group: Applications/Editors/Vim
275 Obsoletes: elvis-static
277 Obsoletes: vim-minimal
280 Text editor similar to Vi. This version is built with minimal feature
281 and is installed in /bin as a rescue tool. The installation of this
282 package is STRONGLY recommended.
284 %description static -l pl.UTF-8
285 Edytor tekstu podobny do Vi. Ta wersja została skonsolidowana
286 statycznie i posiada minimalną ilość dodatków. Jest instalowana w /bin
287 jako narzędzie dla administratora. Instalacja tego pakietu jest MOCNO
288 zalecana, może on pomóc Ci uratować system w czasie awarii.
290 %description static -l ru.UTF-8
291 Пакет vim-static устанавливает разновидность vim как /bin/vi, что
292 удобно для запуска даже когда смонтирована только корневая файловая
295 %description static -l uk.UTF-8
296 Пакет vim-static встановлює різновид vim як /bin/vi, що зручно для
297 запуску навіть тоді, коли змонтована тільки корньова файлова система.
300 Summary: Vim runtime files
301 Summary(cs.UTF-8): Soubory nezbytné pro libovolný editor ViM
302 Summary(da.UTF-8): Fælles filer som er nødvendige for enhver version af VIM editoren
303 Summary(de.UTF-8): Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
304 Summary(es.UTF-8): Ficheros comunes a todas las versiones de VIM
305 Summary(fr.UTF-8): Fichiers communs indispensables pour toute version de l'éditeur VIM
306 Summary(id.UTF-8): File umum yang dibutuhkan oleh semua versi editor VIM
307 Summary(is.UTF-8): Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
308 Summary(it.UTF-8): File comuni necessari per tutte le versioni dell'editor VIM
309 Summary(ja.UTF-8): すべてのバージョンの VIM エディタで必要とされる共通ファイル
310 Summary(nb.UTF-8): Felles filer som er nødvendige for enhver versjon av VIM editoren
311 Summary(pl.UTF-8): Pliki przydatne edytorowi Vim
312 Summary(pt.UTF-8): Os ficheiros comuns necessários para qualquer versão do editor VIM
313 Summary(ru.UTF-8): Файлы, требуемые для любой версии редактора vim
314 Summary(sk.UTF-8): Spoločné súbory potrebné pre všetky verzie editoru VIM
315 Summary(sl.UTF-8): Skupne datoteke, potrebne s katerokoli različico urejevalnika VIM
316 Summary(sv.UTF-8): De gemensamma filerna som behövs av alla versioner av redigeraren VIM
317 Summary(uk.UTF-8): Файли, потрібні для будь-якої версії редактору vim
318 Summary(zh_CN.UTF-8): 任何版本的 VIM 编辑器所需的公用文件。
319 Group: Applications/Editors/Vim
320 # mktemp is for vimtutor
323 Obsoletes: gvim-bonobo
324 Obsoletes: vim-common
327 This package contains macros, documentation, syntax configuration and
328 manual pages for Vim. If you want to take advantage of Vim more
329 powerful features, you should install this package.
331 %description rt -l cs.UTF-8
332 Tento balíček obsahuje společné soubory pro všechny další balíčky s
335 %description rt -l da.UTF-8
336 The vim-rt package contains files which every VIM binary will need in
339 %description rt -l de.UTF-8
340 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
343 %description rt -l fr.UTF-8
344 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
345 VIM a besoin pour fonctionner.
347 %description rt -l id.UTF-8
348 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
351 %description rt -l is.UTF-8
352 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
355 %description rt -l it.UTF-8
356 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
357 per poter funzionare.
359 %description rt -l pl.UTF-8
360 W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
361 strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
362 zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
364 %description rt -l pt.UTF-8
365 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
366 irão necessitar para correr.
368 %description rt -l ru.UTF-8
369 Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
370 для работы любой программы vim.
372 %description rt -l sk.UTF-8
373 Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
374 funkciu každá verzia editoru VIM.
376 %description rt -l sv.UTF-8
377 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
380 %description rt -l uk.UTF-8
381 Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
382 для роботи будь-якої програми vim.
385 Summary: English dictionaries for VIMspell
386 Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
387 Group: Applications/Editors/Vim
388 Requires: %{name} = %{epoch}:%{version}-%{release}
390 %description spell-en
391 English dictionaries for VIMspell.
393 %description spell-en -l pl.UTF-8
394 Angielskie słowniki dla VIMspella.
396 %package -n gvim-athena
397 Summary: Vim for X Window built with Athena
398 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena
399 Group: Applications/Editors/Vim
400 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
406 %description -n gvim-athena
407 The classic Unix text editor now also under X Window System! This
408 version is built with Athena Widget Set.
410 %description -n gvim-athena -l pl.UTF-8
411 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
412 biblioteki Athena Widget Set.
414 %description -n gvim-athena -l ru.UTF-8
415 Этот пакет представляет собой версию VIM, собранную с библиотеками
416 Athena Widget Set, что позволяет запускать VIM как приложение X Window
417 System - с полностью графическим интерфейсом и поддержкой мыши.
419 %description -n gvim-athena -l uk.UTF-8
420 Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
421 Set, що дозволяє запускати VIM як прикладну програму X Window System -
422 з повністю графічним інтерфейсом та підтримкою миші.
424 %package -n gvim-motif
425 Summary: Vim for X Window built with Motif
426 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif
427 Group: Applications/Editors/Vim
428 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
434 %description -n gvim-motif
435 The classic Unix text editor now also under X Window System! This
436 version is built with Motif.
438 %description -n gvim-motif -l pl.UTF-8
439 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
442 %description -n gvim-motif -l ru.UTF-8
443 Этот пакет представляет собой версию VIM, собранную с библиотеками
444 Motif, что позволяет запускать VIM как приложение X Window System - с
445 полностью графическим интерфейсом и поддержкой мыши.
447 %description -n gvim-motif -l uk.UTF-8
448 Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
449 дозволяє запускати VIM як прикладну програму X Window System - з
450 повністю графічним інтерфейсом та підтримкою миші.
453 Summary: Vim for X Window built with gtk
454 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK
455 Group: Applications/Editors/Vim
456 Requires(post,postun): gtk+2
457 Requires(post,postun): hicolor-icon-theme
458 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
464 %description -n gvim-gtk
465 The classic Unix text editor now also under X Window System! This
466 version is built with GTK.
468 %description -n gvim-gtk -l pl.UTF-8
469 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
472 %description -n gvim-gtk -l ru.UTF-8
473 Этот пакет представляет собой версию VIM, собранную с библиотеками
474 GTK, что позволяет запускать VIM как приложение X Window System - с
475 полностью графическим интерфейсом и поддержкой мыши. Просто скажите
478 %description -n gvim-gtk -l uk.UTF-8
479 Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
480 запускати VIM як прикладну програму X Window System - з повністю
481 графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
483 %package -n gvim-gnome
484 Summary: Vim for X Window built with GNOME
485 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME
486 Group: Applications/Editors/Vim
487 Requires(post,postun): gtk+2
488 Requires(post,postun): hicolor-icon-theme
489 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
495 %description -n gvim-gnome
496 The classic Unix text editor now also under X Window System! This
497 version is build with GNOME.
499 %description -n gvim-gnome -l pl.UTF-8
500 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
503 %description -n gvim-gnome -l ru.UTF-8
504 Этот пакет представляет собой версию VIM, собранную с библиотеками
505 GNOME, что позволяет запускать VIM как приложение X Window System - с
506 полностью графическим интерфейсом и поддержкой мыши.
508 %description -n gvim-gnome -l uk.UTF-8
509 Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
510 дозволяє запускати VIM як прикладну програму X Window System - з
511 повністю графічним інтерфейсом та підтримкою миші.
514 %setup -q -n %{name}71 -b1 -b2
517 %patchset_patch 1 %{_patchlevel}
545 %{?with_home_etc:%patch104 -p1}
548 %{?with_selinux:%patch105 -p1}
550 # autopaste patch - automatically switch to paste mode if `really fast typing'
556 install %{SOURCE14} runtime/indent
557 install %{SOURCE15} runtime/colors
558 install %{SOURCE16} runtime/syntax
559 install %{SOURCE17} runtime/syntax
560 install %{SOURCE18} runtime/syntax
561 install %{SOURCE19} runtime/ftplugin/spec.vim
566 # needed to prevent deconfiguring
573 LDFLAGS="%{rpmldflags} -static"
577 --disable-perlinterp \
578 --disable-pythoninterp \
579 --disable-rubyinterp \
580 --disable-tclinterp \
583 --disable-multibyte \
584 --with-features=small \
585 --with-tlib="ncurses -ltinfo" \
587 --with-modifiedby="PLD Linux Distribution" \
588 --with-compiledby="PLD Linux Distribution"
592 mv -f vim bin/vim.static
593 LDFLAGS="%{rpmldflags}"
600 %{!?with_perl:--disable-perlinterp} \
601 %{?with_perl:--enable-perlinterp} \
602 %{!?with_python:--disable-pythoninterp} \
603 %{?with_python:--enable-pythoninterp} \
604 %{!?with_ruby:--disable-rubyinterp} \
605 %{?with_ruby:--enable-rubyinterp} \
606 %{!?with_tcl:--disable-tclinterp} \
607 %{?with_tcl:--enable-tclinterp} \
610 --with-features=huge \
612 --with-tlib="ncurses -ltinfo" \
614 --with-modifiedby="PLD Linux Distribution" \
615 --with-compiledby="PLD Linux Distribution"
619 mv -f vim bin/vim.ncurses
624 --with-features=huge \
625 --enable-gui=athena \
627 %{!?with_perl:--disable-perlinterp} \
628 %{?with_perl:--enable-perlinterp} \
629 %{!?with_python:--disable-pythoninterp} \
630 %{?with_python:--enable-pythoninterp} \
631 %{!?with_ruby:--disable-rubyinterp} \
632 %{?with_ruby:--enable-rubyinterp} \
633 %{!?with_tcl:--disable-tclinterp} \
634 %{?with_tcl:--enable-tclinterp} \
639 --with-tlib="ncurses -ltinfo" \
641 --with-modifiedby="PLD Linux Distribution" \
642 --with-compiledby="PLD Linux Distribution"
645 mv -f vim bin/gvim.athena
652 --with-features=huge \
655 %{!?with_perl:--disable-perlinterp} \
656 %{?with_perl:--enable-perlinterp} \
657 %{!?with_python:--disable-pythoninterp} \
658 %{?with_python:--enable-pythoninterp} \
659 %{!?with_ruby:--disable-rubyinterp} \
660 %{?with_ruby:--enable-rubyinterp} \
661 %{!?with_tcl:--disable-tclinterp} \
662 %{?with_tcl:--enable-tclinterp} \
668 --with-tlib="ncurses -ltinfo" \
670 --with-modifiedby="PLD Linux Distribution" \
671 --with-compiledby="PLD Linux Distribution"
674 mv -f vim bin/gvim.motif
680 --with-features=huge \
682 --enable-gtk2-check \
684 %{!?with_perl:--disable-perlinterp} \
685 %{?with_perl:--enable-perlinterp} \
686 %{!?with_python:--disable-pythoninterp} \
687 %{?with_python:--enable-pythoninterp} \
688 %{!?with_ruby:--disable-rubyinterp} \
689 %{?with_ruby:--enable-rubyinterp} \
690 %{!?with_tcl:--disable-tclinterp} \
691 %{?with_tcl:--enable-tclinterp} \
694 --with-tlib="ncurses -ltinfo" \
696 --with-modifiedby="PLD Linux Distribution" \
697 --with-compiledby="PLD Linux Distribution"
700 mv -f vim bin/gvim.gtk
706 --with-features=huge \
707 --enable-gui=gnome2 \
708 --enable-gtk2-check \
709 --enable-gnome-check \
711 %{!?with_perl:--disable-perlinterp} \
712 %{?with_perl:--enable-perlinterp} \
713 %{!?with_python:--disable-pythoninterp} \
714 %{?with_python:--enable-pythoninterp} \
715 %{!?with_ruby:--disable-rubyinterp} \
716 %{?with_ruby:--enable-rubyinterp} \
717 %{!?with_tcl:--disable-tclinterp} \
718 %{?with_tcl:--enable-tclinterp} \
721 --with-tlib="ncurses -ltinfo" \
723 --with-modifiedby="PLD Linux Distribution" \
724 --with-compiledby="PLD Linux Distribution"
727 mv -f vim bin/gvim.gnome
730 %{__make} xxd/xxd languages
733 rm -rf $RPM_BUILD_ROOT
735 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
736 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
737 $RPM_BUILD_ROOT%{_desktopdir}
739 %{__make} -j1 install \
740 DESTDIR=$RPM_BUILD_ROOT
742 rm -f $RPM_BUILD_ROOT%{_bindir}/*
745 install src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
746 install src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
748 install src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
749 ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
751 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
752 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
756 # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
757 # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
758 # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
759 # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
760 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
761 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
762 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
763 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
765 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
766 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
768 # not supported directories
769 rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
771 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
772 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
774 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
775 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
776 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
777 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
778 ln -sf vi $RPM_BUILD_ROOT/bin/ex
779 ln -sf vi $RPM_BUILD_ROOT/bin/view
780 ln -sf vi $RPM_BUILD_ROOT/bin/rview
782 install %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
785 install src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
786 install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
789 install src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
790 install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
793 install src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
794 install %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
797 install src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
798 ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
799 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
800 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
801 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
802 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
803 install %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
806 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
807 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
808 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
809 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
811 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
813 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4}
815 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
816 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
819 rm -rf $RPM_BUILD_ROOT
822 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
825 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
828 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
830 %postun -n gvim-athena
831 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
834 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
836 %postun -n gvim-motif
837 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
840 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
841 %update_icon_cache hicolor
844 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
845 %update_icon_cache hicolor
848 %update_desktop_database_post
849 %update_icon_cache hicolor
851 %postun -n gvim-gnome
852 %update_desktop_database_postun
853 %update_icon_cache hicolor
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{_bindir}/eview
858 %attr(755,root,root) %{_bindir}/evim
859 %attr(755,root,root) %{_bindir}/rvim
860 %attr(755,root,root) %{_bindir}/vim
861 %attr(755,root,root) %{_bindir}/vimdiff
862 #%{_mandir}/man1/eview.1*
863 %{_mandir}/man1/evim.1*
864 %{_mandir}/man1/rvim.1*
865 %{_mandir}/man1/vimdiff.1*
866 %lang(fi) %{_mandir}/fi/man1/rvim.1*
867 #%lang(fr) %{_mandir}/fr/man1/eview.1*
868 %lang(fr) %{_mandir}/fr/man1/evim.1*
869 %lang(fr) %{_mandir}/fr/man1/rvim.1*
870 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
871 %lang(id) %{_mandir}/id/man1/rvim.1*
872 #%lang(it) %{_mandir}/it/man1/eview.1*
873 %lang(it) %{_mandir}/it/man1/evim.1*
874 %lang(it) %{_mandir}/it/man1/rvim.1*
875 %lang(it) %{_mandir}/it/man1/vimdiff.1*
876 #%lang(pl) %{_mandir}/pl/man1/eview.1*
877 %lang(pl) %{_mandir}/pl/man1/evim.1*
878 %lang(pl) %{_mandir}/pl/man1/rvim.1*
879 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
880 #%lang(ru) %{_mandir}/ru/man1/eview.1*
881 %lang(ru) %{_mandir}/ru/man1/evim.1*
882 %lang(ru) %{_mandir}/ru/man1/rvim.1*
883 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
884 %{_desktopdir}/%{name}.desktop
889 %defattr(644,root,root,755)
890 %attr(755,root,root) /bin/*
891 %{_mandir}/man1/vi.1*
892 %{_mandir}/man1/ex.1*
893 %{_mandir}/man1/view.1*
894 %{_mandir}/man1/rview.1*
895 %lang(fi) %{_mandir}/fi/man1/vi.1*
896 %lang(fi) %{_mandir}/fi/man1/ex.1*
897 %lang(fi) %{_mandir}/fi/man1/view.1*
898 %lang(fi) %{_mandir}/fi/man1/rview.1*
899 %lang(fr) %{_mandir}/fr/man1/vi.1*
900 %lang(fr) %{_mandir}/fr/man1/ex.1*
901 %lang(fr) %{_mandir}/fr/man1/view.1*
902 %lang(fr) %{_mandir}/fr/man1/rview.1*
903 %lang(id) %{_mandir}/id/man1/vi.1*
904 %lang(id) %{_mandir}/id/man1/ex.1*
905 %lang(id) %{_mandir}/id/man1/view.1*
906 %lang(id) %{_mandir}/id/man1/rview.1*
907 #%lang(it) %{_mandir}/it/man1/vi.1*
908 %lang(it) %{_mandir}/it/man1/ex.1*
909 %lang(it) %{_mandir}/it/man1/view.1*
910 %lang(it) %{_mandir}/it/man1/rview.1*
911 %lang(pl) %{_mandir}/pl/man1/vi.1*
912 %lang(pl) %{_mandir}/pl/man1/ex.1*
913 %lang(pl) %{_mandir}/pl/man1/view.1*
914 %lang(pl) %{_mandir}/pl/man1/rview.1*
915 #%lang(ru) %{_mandir}/ru/man1/vi.1*
916 %lang(ru) %{_mandir}/ru/man1/ex.1*
917 %lang(ru) %{_mandir}/ru/man1/view.1*
918 %lang(ru) %{_mandir}/ru/man1/rview.1*
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_bindir}/xxd
923 %{_mandir}/man1/xxd.1*
924 %lang(fr) %{_mandir}/fr/man1/xxd.1*
925 %lang(it) %{_mandir}/it/man1/xxd.1*
926 %lang(pl) %{_mandir}/pl/man1/xxd.1*
927 %lang(ru) %{_mandir}/ru/man1/xxd.1*
930 %defattr(644,root,root,755)
931 %attr(755,root,root) %{_bindir}/vimtutor
932 %dir %{_sysconfdir}/vim
933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
934 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
937 %dir %{_datadir}/vim/v*
938 %dir %{_datadir}/vim/v*/doc
939 %doc %{_datadir}/vim/v*/doc/*.txt
940 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
941 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
942 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
943 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
944 %{_datadir}/vim/v*/ftplugin
945 %{_datadir}/vim/v*/indent
946 %{_datadir}/vim/v*/keymap
947 %dir %{_datadir}/vim/v*/lang
948 %doc %{_datadir}/vim/v*/lang/README*
950 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
951 %{_datadir}/vim/vimfiles/after
952 %{_datadir}/vim/vimfiles/ftdetect
954 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
955 %lang(af) %{_datadir}/vim/v*/lang/af/
956 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
957 %lang(ca) %{_datadir}/vim/v*/lang/ca/
958 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
959 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
960 %lang(cs) %{_datadir}/vim/v*/lang/cs/
961 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
962 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
963 %lang(de) %{_datadir}/vim/v*/lang/de/
964 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
965 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
966 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
967 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
968 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
969 %lang(es) %{_datadir}/vim/v*/lang/es/
970 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
971 %lang(fr) %{_datadir}/vim/v*/lang/fr/
972 %lang(ga) %{_datadir}/vim/v*/lang/ga/
973 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
974 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
975 %lang(it) %{_datadir}/vim/v*/lang/it/
976 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
977 %lang(ja) %{_datadir}/vim/v*/lang/ja/
978 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
979 %lang(ko) %{_datadir}/vim/v*/lang/ko/
980 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
981 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
982 %lang(nb) %{_datadir}/vim/v*/lang/no/
983 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
984 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
985 %lang(pl) %{_datadir}/vim/v*/lang/pl/
986 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
987 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
988 %lang(ru) %{_datadir}/vim/v*/lang/ru/
989 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
990 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
991 %lang(sk) %{_datadir}/vim/v*/lang/sk/
992 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
993 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
994 %lang(sv) %{_datadir}/vim/v*/lang/sv/
995 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
996 %lang(uk) %{_datadir}/vim/v*/lang/uk/
997 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
998 %lang(vi) %{_datadir}/vim/v*/lang/vi/
999 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1000 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1001 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1002 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1003 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1004 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1005 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1006 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1007 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1008 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1010 %dir %{_datadir}/vim/v*/spell
1011 %{_datadir}/vim/v*/spell/cleanadd.vim
1012 %lang(he) %{_datadir}/vim/v*/spell/he.*
1013 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1015 %{_datadir}/vim/v*/macros
1016 %{_datadir}/vim/v*/plugin
1017 %{_datadir}/vim/v*/print
1018 %{_datadir}/vim/v*/syntax
1019 %{_datadir}/vim/v*/tools
1020 %{_datadir}/vim/v*/tutor
1021 %{_datadir}/vim/v*/colors
1022 %{_datadir}/vim/v*/compiler
1023 %{_datadir}/vim/v*/autoload
1024 %{_datadir}/vim/v*/*.vim
1026 %{_mandir}/man1/rvim.1*
1027 %{_mandir}/man1/vim.1*
1028 %{_mandir}/man1/vimtutor.1*
1029 %lang(fi) %{_mandir}/fi/man1/rvim.1*
1030 %lang(fi) %{_mandir}/fi/man1/vim.1*
1031 %lang(fr) %{_mandir}/fr/man1/rvim.1*
1032 %lang(fr) %{_mandir}/fr/man1/vim.1*
1033 %lang(fr) %{_mandir}/fr/man1/vimtutor.1*
1034 %lang(id) %{_mandir}/id/man1/vim.1*
1035 %lang(it) %{_mandir}/it/man1/vim.1*
1036 %lang(it) %{_mandir}/it/man1/vimtutor.1*
1037 %lang(pl) %{_mandir}/pl/man1/vim.1*
1038 %lang(pl) %{_mandir}/pl/man1/vimtutor.1*
1039 %lang(ru) %{_mandir}/ru/man1/vim.1*
1040 %lang(ru) %{_mandir}/ru/man1/vimtutor.1*
1041 %{_iconsdir}/hicolor/16x16/apps/vim.png
1042 %{_iconsdir}/hicolor/32x32/apps/vim.png
1043 %{_iconsdir}/hicolor/48x48/apps/vim.png
1046 %defattr(644,root,root,755)
1047 %{_datadir}/vim/v*/spell/en.*.*
1050 %files -n gvim-athena
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_bindir}/gvim.athena
1053 %{_desktopdir}/gvim-athena.desktop
1057 %files -n gvim-motif
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/gvim.motif
1060 %{_desktopdir}/gvim-motif.desktop
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/gvim.gtk
1067 %attr(755,root,root) %{_bindir}/gvimdiff
1068 %attr(755,root,root) %{_bindir}/rgvim
1069 %attr(755,root,root) %{_bindir}/rgview
1070 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1071 %{_mandir}/man1/gvi*
1072 %{_mandir}/man1/rgv*
1073 %lang(fi) %{_mandir}/fi/man1/gvi*
1074 %lang(fi) %{_mandir}/fi/man1/rgv*
1075 %lang(fr) %{_mandir}/fr/man1/gvi*
1076 %lang(fr) %{_mandir}/fr/man1/rgv*
1077 %lang(id) %{_mandir}/id/man1/gvi*
1078 %lang(id) %{_mandir}/id/man1/rgv*
1079 %lang(it) %{_mandir}/it/man1/gvi*
1080 %lang(it) %{_mandir}/it/man1/rgv*
1081 %lang(pl) %{_mandir}/pl/man1/gvi*
1082 %lang(pl) %{_mandir}/pl/man1/rgv*
1083 %lang(ru) %{_mandir}/ru/man1/gvi*
1084 %lang(ru) %{_mandir}/ru/man1/rgv*
1085 %{_desktopdir}/gvim-gtk.desktop
1089 %files -n gvim-gnome
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_bindir}/gvim.gnome
1092 %{_desktopdir}/gvim-gnome.desktop