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