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