2 # - create vim-full (better name, anybody?) or/and other packages
3 # for scripting languages support
4 # - warning: Installed (but unpackaged) file(s) found:
8 %bcond_without static # don't build static version
9 %bcond_without athena # don't build Athena Widgets-based gvim
10 %bcond_without motif # don't build Motif-based gvim
11 %bcond_without gtk # don't build GTK+-based gvim support
12 %bcond_without gnome # don't build GNOME-based gvim support
13 %bcond_with perl # with Perl interp
14 %bcond_with python # with Python interp
15 %bcond_with ruby # with Ruby interp
16 %bcond_with tcl # with Tcl interp
17 %bcond_without selinux # without selinux support
18 %bcond_without home_etc # without home_etc support
21 %define patchlevel 244
23 # cflags get changed while configuring
24 %undefine configure_cache
26 Summary: Vi IMproved - a Vi clone
27 Summary(de.UTF-8): VIsual editor iMproved
28 Summary(es.UTF-8): Editor visual incrementado
29 Summary(fr.UTF-8): Editeur VIM : VIsual editor iMproved
30 Summary(pl.UTF-8): Vi IMproved - klon edytora Vi
31 Summary(pt_BR.UTF-8): Editor visual incrementado
32 Summary(ru.UTF-8): Visual editor IMproved - Единственно Правильный Редактор :)
33 Summary(tr.UTF-8): Gelişmiş bir vi sürümü
34 Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
36 Version: %{ver}.%{patchlevel}
40 Group: Applications/Editors/Vim
41 Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
42 # Source0-md5: 44c6b4914f38d6f9aa959640b89da329
43 Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-lang.tar.gz
44 # Source1-md5: 144aa049ba70621acf4247f0459f3ee7
45 Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-extra.tar.gz
46 # Source2-md5: 605cc7ae31bcc9d7864bb0bb6025f55d
47 Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
48 # Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
49 Source4: http://skawina.eu.org/mikolaj/usr_doc_pl.zip
50 # Source4-md5: ff96284b1c913d55cf0877839b34d490
51 Source10: g%{name}-athena.desktop
52 Source11: g%{name}-motif.desktop
53 Source12: g%{name}-gtk.desktop
54 Source13: g%{name}-gnome.desktop
55 Source14: %{name}.desktop
56 # http://www.vim.org/scripts/script.php?script_id=415 (1.15)
57 Source15: zenburn.%{name}
58 # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.3)
59 Source17: javascript.%{name}
60 Source18: nagios.%{name}
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 Patch102: %{name}-gtkfilechooser.patch
86 Patch104: %{name}-home_etc.patch
87 Patch105: %{name}-selinux.patch
88 Patch106: %{name}-autopaste.patch
89 Patch107: %{name}-ft-cron.patch
90 %patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{patchlevel}
91 URL: http://www.vim.org/
92 BuildRequires: acl-devel
93 BuildRequires: autoconf
94 BuildRequires: gettext-devel
95 BuildRequires: gpm-devel
96 %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.6.0}
97 %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.2.0.1}
98 %{?with_selinux:BuildRequires: libselinux-devel}
99 BuildRequires: ncurses-devel
100 %{?with_motif:BuildRequires: openmotif-devel}
101 %{?with_perl:BuildRequires: perl-devel}
102 %{?with_python:BuildRequires: python-devel >= 2.5}
103 BuildRequires: rpmbuild(macros) >= 1.426
104 %{?with_ruby:BuildRequires: ruby-devel}
105 %{?with_tcl:BuildRequires: tcl-devel}
106 %{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
109 BuildRequires: acl-static
110 BuildRequires: attr-static
111 BuildRequires: glibc-static
112 %{?with_selinux:BuildRequires: libselinux-static}
113 BuildRequires: ncurses-static
115 Provides: %{name}-static = %{epoch}:%{version}-%{release}
116 Obsoletes: elvis-static
119 Obsoletes: vim-minimal
120 Obsoletes: vim-static
123 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
126 Obsoletes: vim-enhanced
127 Obsoletes: vim-ispell
128 Obsoletes: vim-plugin-multvals
129 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
131 # that's example script
132 %define _noautoreq '/bin/csh'
135 Text editor similar to Vi. Important improvements: multiple windows,
136 multi-level undo, block highliting, folding, and many other.
138 %description -l cs.UTF-8
139 ViM je nový a vylepšený editor vycházející z klasického editoru vi. Vi
140 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
141 populární. ViM je obohacený funkcemi jako: podpora více oken,
142 víceúrovňové undo, zvýrazňování bloků a řadu dalších užitečných
145 %description -l de.UTF-8
146 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
147 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
148 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
149 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
150 Standard-vi-Programm.
152 %description -l es.UTF-8
153 El editor Visual Mejorado es una versión actualizada y con nuevas
154 características adicionales del mundialmente famoso 'vi' que acompaña
155 prácticamente todos los sistemas UN*X. Posibilita trabajar con
156 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
157 otras muchas características del 'vi'.
159 %description -l fr.UTF-8
160 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
161 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
162 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
163 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
164 blocs et autres caractéristiques au vi de base.
166 %description -l id.UTF-8
167 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
168 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
169 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
170 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
171 windows, multi-level undo, block highlighting, dll.
173 %description -l is.UTF-8
174 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
175 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
176 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
177 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
180 %description -l it.UTF-8
181 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
182 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
183 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
184 finestre multiple, funzione \"annulla\" multilivello, evidenziazione
187 %description -l pl.UTF-8
188 Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
189 oknach, wielopoziomowa opcja 'cofnij', bloki, podświetlanie składni,
190 folding i wiele innych.
192 %description -l pt.UTF-8
193 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
194 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
195 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
196 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
199 %description -l pt_BR.UTF-8
200 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
201 características do mundialmente famoso 'vi' que acompanha praticamente
202 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
203 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
204 outras características do 'vi'.
206 %description -l ru.UTF-8
207 VIsual editor iMproved - это обновленный и значительно улучшенный клон
208 редактора vi, который поставляется практически со всеми
209 UN*X-системами. В этой версии есть многоуровневый откат, выделение
210 блоков, синтаксическая подсветка и много другого...
212 %description -l sk.UTF-8
213 VIM (VIsual editor iMproved) je novšia a vylepšená verzia editoru vi.
214 Vi bol prvým skutočne obrazovkovo orientovaným editorom pre UNIX a
215 stále je veľmi populárny. VIM má oproti vi vylepšenia ako: prácu s
216 viacerými oknami, viacnásobné undo, zvýrazňovanie blokov textu a iné.
218 %description -l sv.UTF-8
219 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
220 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
221 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
222 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
225 %description -l tr.UTF-8
226 Standart vi metin düzenleyicisinin gelişmiş hali; daha fazla komut,
227 birden fazla pencere desteği ve blok işaretleme yetenekleri içerir.
229 %description -l uk.UTF-8
230 VIsual editor iMproved - це оновлений та значно поліпшений клон
231 редактора vi, який поставляється практично зі всіма UN*X-системами. В
232 цій версії є багаторівневий відкат, виділення блоків, синтаксична
233 підсвітка та багато іншого...
236 Summary: Utility to convert files to hexdump or do the reverse
237 Summary(pl.UTF-8): Narzędzie do zamiany plików na postać szesnastkową i odwrotnie
238 Group: Applications/Editors/Vim
241 xxd creates a hex dump of a given file or standard input. It can also
242 convert a hex dump back to its original binary form. Like uuencode and
243 uudecode it allows the transmission of binary data in a `mail-safe'
244 ASCII representation, but has the advantage of decoding to standard
245 output. Moreover, it can be used to perform binary file patching.
247 %description -n xxd -l pl.UTF-8
248 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wejście.
249 Może także przekonwertować taki zapis na oryginalną, binarną postać.
250 Podobnie jak uuencode i uudecode pozwala na przesyłanie danych
251 binarnych w postaci ASCII, ale ma możliwość dekodowania na standardowe
252 wyjście. Co więcej, może być użyty do modyfikowania plików binarnych.
255 Summary: Statically linked Vim
256 Summary(pl.UTF-8): Statycznie skonsolidowany Vim
257 Group: Applications/Editors/Vim
260 Obsoletes: elvis-static
262 Obsoletes: vim-minimal
265 Text editor similar to Vi. This version is built with minimal feature
266 and is installed in /bin as a rescue tool. The installation of this
267 package is STRONGLY recommended.
269 %description static -l pl.UTF-8
270 Edytor tekstu podobny do Vi. Ta wersja została skonsolidowana
271 statycznie i posiada minimalną ilość dodatków. Jest instalowana w /bin
272 jako narzędzie dla administratora. Instalacja tego pakietu jest MOCNO
273 zalecana, może on pomóc Ci uratować system w czasie awarii.
275 %description static -l ru.UTF-8
276 Пакет vim-static устанавливает разновидность vim как /bin/vi, что
277 удобно для запуска даже когда смонтирована только корневая файловая
280 %description static -l uk.UTF-8
281 Пакет vim-static встановлює різновид vim як /bin/vi, що зручно для
282 запуску навіть тоді, коли змонтована тільки корньова файлова система.
285 Summary: Vim runtime files
286 Summary(cs.UTF-8): Soubory nezbytné pro libovolný editor ViM
287 Summary(da.UTF-8): Fælles filer som er nødvendige for enhver version af VIM editoren
288 Summary(de.UTF-8): Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
289 Summary(es.UTF-8): Ficheros comunes a todas las versiones de VIM
290 Summary(fr.UTF-8): Fichiers communs indispensables pour toute version de l'éditeur VIM
291 Summary(id.UTF-8): File umum yang dibutuhkan oleh semua versi editor VIM
292 Summary(is.UTF-8): Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
293 Summary(it.UTF-8): File comuni necessari per tutte le versioni dell'editor VIM
294 Summary(ja.UTF-8): すべてのバージョンの VIM エディタで必要とされる共通ファイル
295 Summary(nb.UTF-8): Felles filer som er nødvendige for enhver versjon av VIM editoren
296 Summary(pl.UTF-8): Pliki przydatne edytorowi Vim
297 Summary(pt.UTF-8): Os ficheiros comuns necessários para qualquer versão do editor VIM
298 Summary(ru.UTF-8): Файлы, требуемые для любой версии редактора vim
299 Summary(sk.UTF-8): Spoločné súbory potrebné pre všetky verzie editoru VIM
300 Summary(sl.UTF-8): Skupne datoteke, potrebne s katerokoli različico urejevalnika VIM
301 Summary(sv.UTF-8): De gemensamma filerna som behövs av alla versioner av redigeraren VIM
302 Summary(uk.UTF-8): Файли, потрібні для будь-якої версії редактору vim
303 Summary(zh_CN.UTF-8): 任何版本的 VIM 编辑器所需的公用文件。
304 Group: Applications/Editors/Vim
305 Requires: vim-syntax-spec
306 # mktemp is for vimtutor
309 Suggests: vim-plugin-securemodelines
310 Obsoletes: gvim-bonobo
311 Obsoletes: vim-common
314 This package contains macros, documentation, syntax configuration and
315 manual pages for Vim. If you want to take advantage of Vim more
316 powerful features, you should install this package.
318 %description rt -l cs.UTF-8
319 Tento balíček obsahuje společné soubory pro všechny další balíčky s
322 %description rt -l da.UTF-8
323 The vim-rt package contains files which every VIM binary will need in
326 %description rt -l de.UTF-8
327 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
330 %description rt -l fr.UTF-8
331 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
332 VIM a besoin pour fonctionner.
334 %description rt -l id.UTF-8
335 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
338 %description rt -l is.UTF-8
339 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
342 %description rt -l it.UTF-8
343 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
344 per poter funzionare.
346 %description rt -l pl.UTF-8
347 W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
348 strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
349 zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
351 %description rt -l pt.UTF-8
352 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
353 irão necessitar para correr.
355 %description rt -l ru.UTF-8
356 Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
357 для работы любой программы vim.
359 %description rt -l sk.UTF-8
360 Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
361 funkciu každá verzia editoru VIM.
363 %description rt -l sv.UTF-8
364 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
367 %description rt -l uk.UTF-8
368 Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
369 для роботи будь-якої програми vim.
372 Summary: English dictionaries for VIMspell
373 Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
374 Group: Applications/Editors/Vim
375 Requires: %{name} = %{epoch}:%{version}-%{release}
377 %description spell-en
378 English dictionaries for VIMspell.
380 %description spell-en -l pl.UTF-8
381 Angielskie słowniki dla VIMspella.
383 %package -n gvim-athena
384 Summary: Vim for X Window built with Athena
385 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena
386 Group: Applications/Editors/Vim
387 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
393 %description -n gvim-athena
394 The classic Unix text editor now also under X Window System! This
395 version is built with Athena Widget Set.
397 %description -n gvim-athena -l pl.UTF-8
398 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
399 biblioteki Athena Widget Set.
401 %description -n gvim-athena -l ru.UTF-8
402 Этот пакет представляет собой версию VIM, собранную с библиотеками
403 Athena Widget Set, что позволяет запускать VIM как приложение X Window
404 System - с полностью графическим интерфейсом и поддержкой мыши.
406 %description -n gvim-athena -l uk.UTF-8
407 Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
408 Set, що дозволяє запускати VIM як прикладну програму X Window System -
409 з повністю графічним інтерфейсом та підтримкою миші.
411 %package -n gvim-motif
412 Summary: Vim for X Window built with Motif
413 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif
414 Group: Applications/Editors/Vim
415 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
421 %description -n gvim-motif
422 The classic Unix text editor now also under X Window System! This
423 version is built with Motif.
425 %description -n gvim-motif -l pl.UTF-8
426 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
429 %description -n gvim-motif -l ru.UTF-8
430 Этот пакет представляет собой версию VIM, собранную с библиотеками
431 Motif, что позволяет запускать VIM как приложение X Window System - с
432 полностью графическим интерфейсом и поддержкой мыши.
434 %description -n gvim-motif -l uk.UTF-8
435 Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
436 дозволяє запускати VIM як прикладну програму X Window System - з
437 повністю графічним інтерфейсом та підтримкою миші.
440 Summary: Vim for X Window built with gtk
441 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK
442 Group: Applications/Editors/Vim
443 Requires(post,postun): gtk+2
444 Requires(post,postun): hicolor-icon-theme
445 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
451 %description -n gvim-gtk
452 The classic Unix text editor now also under X Window System! This
453 version is built with GTK.
455 %description -n gvim-gtk -l pl.UTF-8
456 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
459 %description -n gvim-gtk -l ru.UTF-8
460 Этот пакет представляет собой версию VIM, собранную с библиотеками
461 GTK, что позволяет запускать VIM как приложение X Window System - с
462 полностью графическим интерфейсом и поддержкой мыши. Просто скажите
465 %description -n gvim-gtk -l uk.UTF-8
466 Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
467 запускати VIM як прикладну програму X Window System - з повністю
468 графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
470 %package -n gvim-gnome
471 Summary: Vim for X Window built with GNOME
472 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME
473 Group: Applications/Editors/Vim
474 Requires(post,postun): gtk+2
475 Requires(post,postun): hicolor-icon-theme
476 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
482 %description -n gvim-gnome
483 The classic Unix text editor now also under X Window System! This
484 version is build with GNOME.
486 %description -n gvim-gnome -l pl.UTF-8
487 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
490 %description -n gvim-gnome -l ru.UTF-8
491 Этот пакет представляет собой версию VIM, собранную с библиотеками
492 GNOME, что позволяет запускать VIM как приложение X Window System - с
493 полностью графическим интерфейсом и поддержкой мыши.
495 %description -n gvim-gnome -l uk.UTF-8
496 Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
497 дозволяє запускати VIM як прикладну програму X Window System - з
498 повністю графічним інтерфейсом та підтримкою миші.
501 %setup -q -n %{name}71 -b1 -b2
504 %patchset_patch 1 %{patchlevel}
532 %{?with_home_etc:%patch104 -p1}
535 %{?with_selinux:%patch105 -p1}
537 # autopaste patch - automatically switch to paste mode if `really fast typing'
543 install %{SOURCE14} runtime/indent
544 install %{SOURCE15} runtime/colors
545 install %{SOURCE17} runtime/syntax
546 install %{SOURCE18} runtime/syntax
551 # needed to prevent deconfiguring
558 LDFLAGS="%{rpmldflags} -static"
562 --disable-perlinterp \
563 --disable-pythoninterp \
564 --disable-rubyinterp \
565 --disable-tclinterp \
568 --disable-multibyte \
569 --with-features=small \
570 --with-tlib="ncurses -ltinfo" \
572 --with-modifiedby="PLD Linux Distribution" \
573 --with-compiledby="PLD Linux Distribution"
577 mv -f vim bin/vim.static
578 LDFLAGS="%{rpmldflags}"
585 %{!?with_perl:--disable-perlinterp} \
586 %{?with_perl:--enable-perlinterp} \
587 %{!?with_python:--disable-pythoninterp} \
588 %{?with_python:--enable-pythoninterp} \
589 %{!?with_ruby:--disable-rubyinterp} \
590 %{?with_ruby:--enable-rubyinterp} \
591 %{!?with_tcl:--disable-tclinterp} \
592 %{?with_tcl:--enable-tclinterp} \
595 --with-features=huge \
597 --with-tlib="ncurses -ltinfo" \
599 --with-modifiedby="PLD Linux Distribution" \
600 --with-compiledby="PLD Linux Distribution"
604 mv -f vim bin/vim.ncurses
609 --with-features=huge \
610 --enable-gui=athena \
612 %{!?with_perl:--disable-perlinterp} \
613 %{?with_perl:--enable-perlinterp} \
614 %{!?with_python:--disable-pythoninterp} \
615 %{?with_python:--enable-pythoninterp} \
616 %{!?with_ruby:--disable-rubyinterp} \
617 %{?with_ruby:--enable-rubyinterp} \
618 %{!?with_tcl:--disable-tclinterp} \
619 %{?with_tcl:--enable-tclinterp} \
624 --with-tlib="ncurses -ltinfo" \
626 --with-modifiedby="PLD Linux Distribution" \
627 --with-compiledby="PLD Linux Distribution"
630 mv -f vim bin/gvim.athena
637 --with-features=huge \
640 %{!?with_perl:--disable-perlinterp} \
641 %{?with_perl:--enable-perlinterp} \
642 %{!?with_python:--disable-pythoninterp} \
643 %{?with_python:--enable-pythoninterp} \
644 %{!?with_ruby:--disable-rubyinterp} \
645 %{?with_ruby:--enable-rubyinterp} \
646 %{!?with_tcl:--disable-tclinterp} \
647 %{?with_tcl:--enable-tclinterp} \
653 --with-tlib="ncurses -ltinfo" \
655 --with-modifiedby="PLD Linux Distribution" \
656 --with-compiledby="PLD Linux Distribution"
659 mv -f vim bin/gvim.motif
665 --with-features=huge \
667 --enable-gtk2-check \
669 %{!?with_perl:--disable-perlinterp} \
670 %{?with_perl:--enable-perlinterp} \
671 %{!?with_python:--disable-pythoninterp} \
672 %{?with_python:--enable-pythoninterp} \
673 %{!?with_ruby:--disable-rubyinterp} \
674 %{?with_ruby:--enable-rubyinterp} \
675 %{!?with_tcl:--disable-tclinterp} \
676 %{?with_tcl:--enable-tclinterp} \
679 --with-tlib="ncurses -ltinfo" \
681 --with-modifiedby="PLD Linux Distribution" \
682 --with-compiledby="PLD Linux Distribution"
685 mv -f vim bin/gvim.gtk
691 --with-features=huge \
692 --enable-gui=gnome2 \
693 --enable-gtk2-check \
694 --enable-gnome-check \
696 %{!?with_perl:--disable-perlinterp} \
697 %{?with_perl:--enable-perlinterp} \
698 %{!?with_python:--disable-pythoninterp} \
699 %{?with_python:--enable-pythoninterp} \
700 %{!?with_ruby:--disable-rubyinterp} \
701 %{?with_ruby:--enable-rubyinterp} \
702 %{!?with_tcl:--disable-tclinterp} \
703 %{?with_tcl:--enable-tclinterp} \
706 --with-tlib="ncurses -ltinfo" \
708 --with-modifiedby="PLD Linux Distribution" \
709 --with-compiledby="PLD Linux Distribution"
712 mv -f vim bin/gvim.gnome
715 %{__make} xxd/xxd languages
718 rm -rf $RPM_BUILD_ROOT
720 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
721 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
722 $RPM_BUILD_ROOT%{_desktopdir}
724 %{__make} -j1 install \
725 DESTDIR=$RPM_BUILD_ROOT
727 rm -f $RPM_BUILD_ROOT%{_bindir}/*
730 install src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
731 install src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
733 install src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
734 ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
736 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
737 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
741 # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
742 # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
743 # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
744 # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
745 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
746 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
747 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
748 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
750 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
751 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
753 # not supported directories
754 rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
756 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
757 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
759 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
760 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
761 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
762 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
763 ln -sf vi $RPM_BUILD_ROOT/bin/ex
764 ln -sf vi $RPM_BUILD_ROOT/bin/view
765 ln -sf vi $RPM_BUILD_ROOT/bin/rview
767 install %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
770 install src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
771 install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
774 install src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
775 install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
778 install src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
779 install %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
782 install src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
783 ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
784 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
785 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
786 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
787 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
788 install %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
791 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
792 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
793 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
794 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
796 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
798 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4}
800 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
801 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
804 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/vim71/{ftplugin,syntax}/spec.vim
807 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/doc/vim2html.pl
808 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/shtags.pl
809 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/pltags.pl
810 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_perl.pl
811 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_filter.pl
814 rm -rf $RPM_BUILD_ROOT
817 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
820 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
823 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
825 %postun -n gvim-athena
826 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
829 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
831 %postun -n gvim-motif
832 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
835 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
836 %update_icon_cache hicolor
839 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
840 %update_icon_cache hicolor
843 %update_desktop_database_post
844 %update_icon_cache hicolor
846 %postun -n gvim-gnome
847 %update_desktop_database_postun
848 %update_icon_cache hicolor
851 %defattr(644,root,root,755)
852 %attr(755,root,root) %{_bindir}/eview
853 %attr(755,root,root) %{_bindir}/evim
854 %attr(755,root,root) %{_bindir}/rvim
855 %attr(755,root,root) %{_bindir}/vim
856 %attr(755,root,root) %{_bindir}/vimdiff
857 %{_mandir}/man1/eview.1*
858 %{_mandir}/man1/evim.1*
859 %{_mandir}/man1/rvim.1*
860 %{_mandir}/man1/vimdiff.1*
861 %lang(fi) %{_mandir}/fi/man1/rvim.1*
862 %lang(fr) %{_mandir}/fr/man1/eview.1*
863 %lang(fr) %{_mandir}/fr/man1/evim.1*
864 %lang(fr) %{_mandir}/fr/man1/rvim.1*
865 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
866 %lang(id) %{_mandir}/id/man1/rvim.1*
867 %lang(it) %{_mandir}/it/man1/eview.1*
868 %lang(it) %{_mandir}/it/man1/evim.1*
869 %lang(it) %{_mandir}/it/man1/rvim.1*
870 %lang(it) %{_mandir}/it/man1/vimdiff.1*
871 %lang(pl) %{_mandir}/pl/man1/eview.1*
872 %lang(pl) %{_mandir}/pl/man1/evim.1*
873 %lang(pl) %{_mandir}/pl/man1/rvim.1*
874 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
875 %lang(ru) %{_mandir}/ru/man1/eview.1*
876 %lang(ru) %{_mandir}/ru/man1/evim.1*
877 %lang(ru) %{_mandir}/ru/man1/rvim.1*
878 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
879 %{_desktopdir}/%{name}.desktop
884 %defattr(644,root,root,755)
885 %attr(755,root,root) /bin/*
886 %{_mandir}/man1/vi.1*
887 %{_mandir}/man1/ex.1*
888 %{_mandir}/man1/view.1*
889 %{_mandir}/man1/rview.1*
890 %lang(fi) %{_mandir}/fi/man1/vi.1*
891 %lang(fi) %{_mandir}/fi/man1/ex.1*
892 %lang(fi) %{_mandir}/fi/man1/view.1*
893 %lang(fi) %{_mandir}/fi/man1/rview.1*
894 %lang(fr) %{_mandir}/fr/man1/vi.1*
895 %lang(fr) %{_mandir}/fr/man1/ex.1*
896 %lang(fr) %{_mandir}/fr/man1/view.1*
897 %lang(fr) %{_mandir}/fr/man1/rview.1*
898 %lang(id) %{_mandir}/id/man1/vi.1*
899 %lang(id) %{_mandir}/id/man1/ex.1*
900 %lang(id) %{_mandir}/id/man1/view.1*
901 %lang(id) %{_mandir}/id/man1/rview.1*
902 #%lang(it) %{_mandir}/it/man1/vi.1*
903 %lang(it) %{_mandir}/it/man1/ex.1*
904 %lang(it) %{_mandir}/it/man1/view.1*
905 %lang(it) %{_mandir}/it/man1/rview.1*
906 %lang(pl) %{_mandir}/pl/man1/vi.1*
907 %lang(pl) %{_mandir}/pl/man1/ex.1*
908 %lang(pl) %{_mandir}/pl/man1/view.1*
909 %lang(pl) %{_mandir}/pl/man1/rview.1*
910 #%lang(ru) %{_mandir}/ru/man1/vi.1*
911 %lang(ru) %{_mandir}/ru/man1/ex.1*
912 %lang(ru) %{_mandir}/ru/man1/view.1*
913 %lang(ru) %{_mandir}/ru/man1/rview.1*
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_bindir}/xxd
918 %{_mandir}/man1/xxd.1*
919 %lang(fr) %{_mandir}/fr/man1/xxd.1*
920 %lang(it) %{_mandir}/it/man1/xxd.1*
921 %lang(pl) %{_mandir}/pl/man1/xxd.1*
922 %lang(ru) %{_mandir}/ru/man1/xxd.1*
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_bindir}/vimtutor
927 %dir %{_sysconfdir}/vim
928 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
929 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
932 %dir %{_datadir}/vim/v*
933 %dir %{_datadir}/vim/v*/doc
934 %doc %{_datadir}/vim/v*/doc/*.txt
935 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
936 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
937 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
938 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
939 %{_datadir}/vim/v*/ftplugin
940 %{_datadir}/vim/v*/indent
941 %{_datadir}/vim/v*/keymap
942 %dir %{_datadir}/vim/v*/lang
943 %doc %{_datadir}/vim/v*/lang/README*
945 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
946 %{_datadir}/vim/vimfiles/after
947 %{_datadir}/vim/vimfiles/ftdetect
949 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
950 %lang(af) %{_datadir}/vim/v*/lang/af/
951 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
952 %lang(ca) %{_datadir}/vim/v*/lang/ca/
953 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
954 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
955 %lang(cs) %{_datadir}/vim/v*/lang/cs/
956 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
957 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
958 %lang(de) %{_datadir}/vim/v*/lang/de/
959 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
960 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
961 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
962 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
963 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
964 %lang(es) %{_datadir}/vim/v*/lang/es/
965 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
966 %lang(fr) %{_datadir}/vim/v*/lang/fr/
967 %lang(ga) %{_datadir}/vim/v*/lang/ga/
968 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
969 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
970 %lang(it) %{_datadir}/vim/v*/lang/it/
971 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
972 %lang(ja) %{_datadir}/vim/v*/lang/ja/
973 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
974 %lang(ko) %{_datadir}/vim/v*/lang/ko/
975 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
976 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
977 %lang(nb) %{_datadir}/vim/v*/lang/no/
978 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
979 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
980 %lang(pl) %{_datadir}/vim/v*/lang/pl/
981 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
982 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
983 %lang(ru) %{_datadir}/vim/v*/lang/ru/
984 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
985 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
986 %lang(sk) %{_datadir}/vim/v*/lang/sk/
987 %lang(sl) %{_datadir}/vim/v*/lang/menu_sl_si*
988 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
989 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
990 %lang(sv) %{_datadir}/vim/v*/lang/sv/
991 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
992 %lang(uk) %{_datadir}/vim/v*/lang/uk/
993 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
994 %lang(vi) %{_datadir}/vim/v*/lang/vi/
995 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
996 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
997 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
998 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
999 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1000 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN.UTF-8/
1001 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1002 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1003 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1004 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1005 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1006 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW.UTF-8/
1008 %dir %{_datadir}/vim/v*/spell
1009 %{_datadir}/vim/v*/spell/cleanadd.vim
1010 %lang(he) %{_datadir}/vim/v*/spell/he.*
1011 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1013 %{_datadir}/vim/v*/macros
1014 %{_datadir}/vim/v*/plugin
1015 %{_datadir}/vim/v*/print
1016 %{_datadir}/vim/v*/syntax
1017 %{_datadir}/vim/v*/tools
1018 %{_datadir}/vim/v*/tutor
1019 %{_datadir}/vim/v*/colors
1020 %{_datadir}/vim/v*/compiler
1021 %{_datadir}/vim/v*/autoload
1022 %{_datadir}/vim/v*/*.vim
1024 %{_mandir}/man1/rvim.1*
1025 %{_mandir}/man1/vim.1*
1026 %{_mandir}/man1/vimtutor.1*
1027 %lang(fi) %{_mandir}/fi/man1/rvim.1*
1028 %lang(fi) %{_mandir}/fi/man1/vim.1*
1029 %lang(fr) %{_mandir}/fr/man1/rvim.1*
1030 %lang(fr) %{_mandir}/fr/man1/vim.1*
1031 %lang(fr) %{_mandir}/fr/man1/vimtutor.1*
1032 %lang(id) %{_mandir}/id/man1/vim.1*
1033 %lang(it) %{_mandir}/it/man1/vim.1*
1034 %lang(it) %{_mandir}/it/man1/vimtutor.1*
1035 %lang(pl) %{_mandir}/pl/man1/vim.1*
1036 %lang(pl) %{_mandir}/pl/man1/vimtutor.1*
1037 %lang(ru) %{_mandir}/ru/man1/vim.1*
1038 %lang(ru) %{_mandir}/ru/man1/vimtutor.1*
1039 %{_iconsdir}/hicolor/16x16/apps/vim.png
1040 %{_iconsdir}/hicolor/32x32/apps/vim.png
1041 %{_iconsdir}/hicolor/48x48/apps/vim.png
1044 %defattr(644,root,root,755)
1045 %{_datadir}/vim/v*/spell/en.*.*
1048 %files -n gvim-athena
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/gvim.athena
1051 %{_desktopdir}/gvim-athena.desktop
1055 %files -n gvim-motif
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/gvim.motif
1058 %{_desktopdir}/gvim-motif.desktop
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/gvim.gtk
1065 %attr(755,root,root) %{_bindir}/gvimdiff
1066 %attr(755,root,root) %{_bindir}/rgvim
1067 %attr(755,root,root) %{_bindir}/rgview
1068 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1069 %{_mandir}/man1/gvi*
1070 %{_mandir}/man1/rgv*
1071 %lang(fi) %{_mandir}/fi/man1/gvi*
1072 %lang(fi) %{_mandir}/fi/man1/rgv*
1073 %lang(fr) %{_mandir}/fr/man1/gvi*
1074 %lang(fr) %{_mandir}/fr/man1/rgv*
1075 %lang(id) %{_mandir}/id/man1/gvi*
1076 %lang(id) %{_mandir}/id/man1/rgv*
1077 %lang(it) %{_mandir}/it/man1/gvi*
1078 %lang(it) %{_mandir}/it/man1/rgv*
1079 %lang(pl) %{_mandir}/pl/man1/gvi*
1080 %lang(pl) %{_mandir}/pl/man1/rgv*
1081 %lang(ru) %{_mandir}/ru/man1/gvi*
1082 %lang(ru) %{_mandir}/ru/man1/rgv*
1083 %{_desktopdir}/gvim-gtk.desktop
1087 %files -n gvim-gnome
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_bindir}/gvim.gnome
1090 %{_desktopdir}/gvim-gnome.desktop