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 291
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
308 Requires: hicolor-icon-theme
309 Requires: vim-plugin-securemodelines
310 Requires: vim-syntax-spec
311 # mktemp is for vimtutor
314 Obsoletes: gvim-bonobo
315 Obsoletes: vim-common
318 This package contains macros, documentation, syntax configuration and
319 manual pages for Vim. If you want to take advantage of Vim more
320 powerful features, you should install this package.
322 %description rt -l cs.UTF-8
323 Tento balíček obsahuje společné soubory pro všechny další balíčky s
326 %description rt -l da.UTF-8
327 The vim-rt package contains files which every VIM binary will need in
330 %description rt -l de.UTF-8
331 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
334 %description rt -l fr.UTF-8
335 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
336 VIM a besoin pour fonctionner.
338 %description rt -l id.UTF-8
339 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
342 %description rt -l is.UTF-8
343 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
346 %description rt -l it.UTF-8
347 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
348 per poter funzionare.
350 %description rt -l pl.UTF-8
351 W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
352 strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
353 zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
355 %description rt -l pt.UTF-8
356 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
357 irão necessitar para correr.
359 %description rt -l ru.UTF-8
360 Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
361 для работы любой программы vim.
363 %description rt -l sk.UTF-8
364 Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
365 funkciu každá verzia editoru VIM.
367 %description rt -l sv.UTF-8
368 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
371 %description rt -l uk.UTF-8
372 Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
373 для роботи будь-якої програми vim.
376 Summary: English dictionaries for VIMspell
377 Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
378 Group: Applications/Editors/Vim
379 Requires: %{name} = %{epoch}:%{version}-%{release}
381 %description spell-en
382 English dictionaries for VIMspell.
384 %description spell-en -l pl.UTF-8
385 Angielskie słowniki dla VIMspella.
387 %package -n gvim-athena
388 Summary: Vim for X Window built with Athena
389 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena
390 Group: Applications/Editors/Vim
391 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
397 %description -n gvim-athena
398 The classic Unix text editor now also under X Window System! This
399 version is built with Athena Widget Set.
401 %description -n gvim-athena -l pl.UTF-8
402 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
403 biblioteki Athena Widget Set.
405 %description -n gvim-athena -l ru.UTF-8
406 Этот пакет представляет собой версию VIM, собранную с библиотеками
407 Athena Widget Set, что позволяет запускать VIM как приложение X Window
408 System - с полностью графическим интерфейсом и поддержкой мыши.
410 %description -n gvim-athena -l uk.UTF-8
411 Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
412 Set, що дозволяє запускати VIM як прикладну програму X Window System -
413 з повністю графічним інтерфейсом та підтримкою миші.
415 %package -n gvim-motif
416 Summary: Vim for X Window built with Motif
417 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif
418 Group: Applications/Editors/Vim
419 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
425 %description -n gvim-motif
426 The classic Unix text editor now also under X Window System! This
427 version is built with Motif.
429 %description -n gvim-motif -l pl.UTF-8
430 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
433 %description -n gvim-motif -l ru.UTF-8
434 Этот пакет представляет собой версию VIM, собранную с библиотеками
435 Motif, что позволяет запускать VIM как приложение X Window System - с
436 полностью графическим интерфейсом и поддержкой мыши.
438 %description -n gvim-motif -l uk.UTF-8
439 Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
440 дозволяє запускати VIM як прикладну програму X Window System - з
441 повністю графічним інтерфейсом та підтримкою миші.
444 Summary: Vim for X Window built with gtk
445 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK
446 Group: Applications/Editors/Vim
447 Requires(post,postun): gtk+2
448 Requires(post,postun): hicolor-icon-theme
449 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
455 %description -n gvim-gtk
456 The classic Unix text editor now also under X Window System! This
457 version is built with GTK.
459 %description -n gvim-gtk -l pl.UTF-8
460 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
463 %description -n gvim-gtk -l ru.UTF-8
464 Этот пакет представляет собой версию VIM, собранную с библиотеками
465 GTK, что позволяет запускать VIM как приложение X Window System - с
466 полностью графическим интерфейсом и поддержкой мыши. Просто скажите
469 %description -n gvim-gtk -l uk.UTF-8
470 Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
471 запускати VIM як прикладну програму X Window System - з повністю
472 графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
474 %package -n gvim-gnome
475 Summary: Vim for X Window built with GNOME
476 Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME
477 Group: Applications/Editors/Vim
478 Requires(post,postun): gtk+2
479 Requires(post,postun): hicolor-icon-theme
480 Requires: %{name}-rt = %{epoch}:%{version}-%{release}
486 %description -n gvim-gnome
487 The classic Unix text editor now also under X Window System! This
488 version is build with GNOME.
490 %description -n gvim-gnome -l pl.UTF-8
491 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
494 %description -n gvim-gnome -l ru.UTF-8
495 Этот пакет представляет собой версию VIM, собранную с библиотеками
496 GNOME, что позволяет запускать VIM как приложение X Window System - с
497 полностью графическим интерфейсом и поддержкой мыши.
499 %description -n gvim-gnome -l uk.UTF-8
500 Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
501 дозволяє запускати VIM як прикладну програму X Window System - з
502 повністю графічним інтерфейсом та підтримкою миші.
505 %setup -q -n %{name}71 -b1 -b2
508 %patchset_patch 1 %{patchlevel}
536 %{?with_home_etc:%patch104 -p1}
539 %{?with_selinux:%patch105 -p1}
541 # autopaste patch - automatically switch to paste mode if `really fast typing'
547 install %{SOURCE14} runtime/indent
548 install %{SOURCE15} runtime/colors
549 install %{SOURCE17} runtime/syntax
550 install %{SOURCE18} runtime/syntax
551 install %{SOURCE19} runtime/syntax
552 install %{SOURCE20} runtime/syntax
557 # needed to prevent deconfiguring
564 LDFLAGS="%{rpmldflags} -static"
568 --disable-perlinterp \
569 --disable-pythoninterp \
570 --disable-rubyinterp \
571 --disable-tclinterp \
574 --disable-multibyte \
575 --with-features=small \
576 --with-tlib="ncurses -ltinfo" \
578 --with-modifiedby="PLD Linux Distribution" \
579 --with-compiledby="PLD Linux Distribution"
583 mv -f vim bin/vim.static
584 LDFLAGS="%{rpmldflags}"
591 %{!?with_perl:--disable-perlinterp} \
592 %{?with_perl:--enable-perlinterp} \
593 %{!?with_python:--disable-pythoninterp} \
594 %{?with_python:--enable-pythoninterp} \
595 %{!?with_ruby:--disable-rubyinterp} \
596 %{?with_ruby:--enable-rubyinterp} \
597 %{!?with_tcl:--disable-tclinterp} \
598 %{?with_tcl:--enable-tclinterp} \
601 --with-features=huge \
603 --with-tlib="ncurses -ltinfo" \
605 --with-modifiedby="PLD Linux Distribution" \
606 --with-compiledby="PLD Linux Distribution"
610 mv -f vim bin/vim.ncurses
615 --with-features=huge \
616 --enable-gui=athena \
618 %{!?with_perl:--disable-perlinterp} \
619 %{?with_perl:--enable-perlinterp} \
620 %{!?with_python:--disable-pythoninterp} \
621 %{?with_python:--enable-pythoninterp} \
622 %{!?with_ruby:--disable-rubyinterp} \
623 %{?with_ruby:--enable-rubyinterp} \
624 %{!?with_tcl:--disable-tclinterp} \
625 %{?with_tcl:--enable-tclinterp} \
630 --with-tlib="ncurses -ltinfo" \
632 --with-modifiedby="PLD Linux Distribution" \
633 --with-compiledby="PLD Linux Distribution"
636 mv -f vim bin/gvim.athena
643 --with-features=huge \
646 %{!?with_perl:--disable-perlinterp} \
647 %{?with_perl:--enable-perlinterp} \
648 %{!?with_python:--disable-pythoninterp} \
649 %{?with_python:--enable-pythoninterp} \
650 %{!?with_ruby:--disable-rubyinterp} \
651 %{?with_ruby:--enable-rubyinterp} \
652 %{!?with_tcl:--disable-tclinterp} \
653 %{?with_tcl:--enable-tclinterp} \
659 --with-tlib="ncurses -ltinfo" \
661 --with-modifiedby="PLD Linux Distribution" \
662 --with-compiledby="PLD Linux Distribution"
665 mv -f vim bin/gvim.motif
671 --with-features=huge \
673 --enable-gtk2-check \
675 %{!?with_perl:--disable-perlinterp} \
676 %{?with_perl:--enable-perlinterp} \
677 %{!?with_python:--disable-pythoninterp} \
678 %{?with_python:--enable-pythoninterp} \
679 %{!?with_ruby:--disable-rubyinterp} \
680 %{?with_ruby:--enable-rubyinterp} \
681 %{!?with_tcl:--disable-tclinterp} \
682 %{?with_tcl:--enable-tclinterp} \
685 --with-tlib="ncurses -ltinfo" \
687 --with-modifiedby="PLD Linux Distribution" \
688 --with-compiledby="PLD Linux Distribution"
691 mv -f vim bin/gvim.gtk
697 --with-features=huge \
698 --enable-gui=gnome2 \
699 --enable-gtk2-check \
700 --enable-gnome-check \
702 %{!?with_perl:--disable-perlinterp} \
703 %{?with_perl:--enable-perlinterp} \
704 %{!?with_python:--disable-pythoninterp} \
705 %{?with_python:--enable-pythoninterp} \
706 %{!?with_ruby:--disable-rubyinterp} \
707 %{?with_ruby:--enable-rubyinterp} \
708 %{!?with_tcl:--disable-tclinterp} \
709 %{?with_tcl:--enable-tclinterp} \
712 --with-tlib="ncurses -ltinfo" \
714 --with-modifiedby="PLD Linux Distribution" \
715 --with-compiledby="PLD Linux Distribution"
718 mv -f vim bin/gvim.gnome
721 %{__make} xxd/xxd languages
724 rm -rf $RPM_BUILD_ROOT
726 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
727 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
728 $RPM_BUILD_ROOT%{_desktopdir}
730 %{__make} -j1 install \
731 DESTDIR=$RPM_BUILD_ROOT
733 rm -f $RPM_BUILD_ROOT%{_bindir}/*
736 install src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
737 install src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
739 install src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
740 ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
742 install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
743 install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
747 # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
748 # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
749 # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
750 # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
751 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
752 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
753 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
754 # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
756 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
757 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
759 # not supported directories
760 rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
762 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
763 mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
765 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
766 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
767 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
768 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
769 ln -sf vi $RPM_BUILD_ROOT/bin/ex
770 ln -sf vi $RPM_BUILD_ROOT/bin/view
771 ln -sf vi $RPM_BUILD_ROOT/bin/rview
773 install %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
776 install src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
777 install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
780 install src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
781 install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
784 install src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
785 install %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
788 install src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
789 ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
790 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
791 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
792 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
793 ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
794 install %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
797 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
798 install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
799 install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
800 install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
802 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
804 unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4}
806 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
807 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
810 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/vim71/{ftplugin,syntax}/spec.vim
813 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/doc/vim2html.pl
814 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/shtags.pl
815 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/pltags.pl
816 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_perl.pl
817 chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_filter.pl
820 rm -rf $RPM_BUILD_ROOT
823 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
826 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
829 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
831 %postun -n gvim-athena
832 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
835 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
837 %postun -n gvim-motif
838 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
841 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
842 %update_icon_cache hicolor
845 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
846 %update_icon_cache hicolor
849 %update_desktop_database_post
850 %update_icon_cache hicolor
852 %postun -n gvim-gnome
853 %update_desktop_database_postun
854 %update_icon_cache hicolor
857 %defattr(644,root,root,755)
858 %attr(755,root,root) %{_bindir}/eview
859 %attr(755,root,root) %{_bindir}/evim
860 %attr(755,root,root) %{_bindir}/rvim
861 %attr(755,root,root) %{_bindir}/vim
862 %attr(755,root,root) %{_bindir}/vimdiff
863 %{_mandir}/man1/eview.1*
864 %{_mandir}/man1/evim.1*
865 %{_mandir}/man1/rvim.1*
866 %{_mandir}/man1/vimdiff.1*
867 %lang(fi) %{_mandir}/fi/man1/rvim.1*
868 %lang(fr) %{_mandir}/fr/man1/eview.1*
869 %lang(fr) %{_mandir}/fr/man1/evim.1*
870 %lang(fr) %{_mandir}/fr/man1/rvim.1*
871 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
872 %lang(id) %{_mandir}/id/man1/rvim.1*
873 %lang(it) %{_mandir}/it/man1/eview.1*
874 %lang(it) %{_mandir}/it/man1/evim.1*
875 %lang(it) %{_mandir}/it/man1/rvim.1*
876 %lang(it) %{_mandir}/it/man1/vimdiff.1*
877 %lang(pl) %{_mandir}/pl/man1/eview.1*
878 %lang(pl) %{_mandir}/pl/man1/evim.1*
879 %lang(pl) %{_mandir}/pl/man1/rvim.1*
880 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
881 %lang(ru) %{_mandir}/ru/man1/eview.1*
882 %lang(ru) %{_mandir}/ru/man1/evim.1*
883 %lang(ru) %{_mandir}/ru/man1/rvim.1*
884 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
885 %{_desktopdir}/%{name}.desktop
890 %defattr(644,root,root,755)
891 %attr(755,root,root) /bin/*
892 %{_mandir}/man1/vi.1*
893 %{_mandir}/man1/ex.1*
894 %{_mandir}/man1/view.1*
895 %{_mandir}/man1/rview.1*
896 %lang(fi) %{_mandir}/fi/man1/vi.1*
897 %lang(fi) %{_mandir}/fi/man1/ex.1*
898 %lang(fi) %{_mandir}/fi/man1/view.1*
899 %lang(fi) %{_mandir}/fi/man1/rview.1*
900 %lang(fr) %{_mandir}/fr/man1/vi.1*
901 %lang(fr) %{_mandir}/fr/man1/ex.1*
902 %lang(fr) %{_mandir}/fr/man1/view.1*
903 %lang(fr) %{_mandir}/fr/man1/rview.1*
904 %lang(id) %{_mandir}/id/man1/vi.1*
905 %lang(id) %{_mandir}/id/man1/ex.1*
906 %lang(id) %{_mandir}/id/man1/view.1*
907 %lang(id) %{_mandir}/id/man1/rview.1*
908 #%lang(it) %{_mandir}/it/man1/vi.1*
909 %lang(it) %{_mandir}/it/man1/ex.1*
910 %lang(it) %{_mandir}/it/man1/view.1*
911 %lang(it) %{_mandir}/it/man1/rview.1*
912 %lang(pl) %{_mandir}/pl/man1/vi.1*
913 %lang(pl) %{_mandir}/pl/man1/ex.1*
914 %lang(pl) %{_mandir}/pl/man1/view.1*
915 %lang(pl) %{_mandir}/pl/man1/rview.1*
916 #%lang(ru) %{_mandir}/ru/man1/vi.1*
917 %lang(ru) %{_mandir}/ru/man1/ex.1*
918 %lang(ru) %{_mandir}/ru/man1/view.1*
919 %lang(ru) %{_mandir}/ru/man1/rview.1*
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/xxd
924 %{_mandir}/man1/xxd.1*
925 %lang(fr) %{_mandir}/fr/man1/xxd.1*
926 %lang(it) %{_mandir}/it/man1/xxd.1*
927 %lang(pl) %{_mandir}/pl/man1/xxd.1*
928 %lang(ru) %{_mandir}/ru/man1/xxd.1*
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_bindir}/vimtutor
933 %dir %{_sysconfdir}/vim
934 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
938 %dir %{_datadir}/vim/v*
939 %dir %{_datadir}/vim/v*/doc
940 %doc %{_datadir}/vim/v*/doc/*.txt
941 %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
942 %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
943 %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
944 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
945 %{_datadir}/vim/v*/ftplugin
946 %{_datadir}/vim/v*/indent
947 %{_datadir}/vim/v*/keymap
948 %dir %{_datadir}/vim/v*/lang
949 %doc %{_datadir}/vim/v*/lang/README*
951 # just add after/ and ftdetect/ separately, other dirs caught by globs above or below
952 %{_datadir}/vim/vimfiles/after
953 %{_datadir}/vim/vimfiles/ftdetect
955 %lang(af) %{_datadir}/vim/v*/lang/menu_af*
956 %lang(af) %{_datadir}/vim/v*/lang/af/
957 %lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
958 %lang(ca) %{_datadir}/vim/v*/lang/ca/
959 %lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
960 %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
961 %lang(cs) %{_datadir}/vim/v*/lang/cs/
962 %lang(de) %{_datadir}/vim/v*/lang/menu_de*
963 %lang(de) %{_datadir}/vim/v*/lang/menu_*german*
964 %lang(de) %{_datadir}/vim/v*/lang/de/
965 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
966 %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
967 %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
968 %lang(es) %{_datadir}/vim/v*/lang/menu_es*
969 %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
970 %lang(es) %{_datadir}/vim/v*/lang/es/
971 %lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
972 %lang(fr) %{_datadir}/vim/v*/lang/fr/
973 %lang(ga) %{_datadir}/vim/v*/lang/ga/
974 %lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
975 %lang(it) %{_datadir}/vim/v*/lang/menu_it*
976 %lang(it) %{_datadir}/vim/v*/lang/it/
977 %lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
978 %lang(ja) %{_datadir}/vim/v*/lang/ja/
979 %lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
980 %lang(ko) %{_datadir}/vim/v*/lang/ko/
981 %lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
982 %lang(nb) %{_datadir}/vim/v*/lang/menu_no*
983 %lang(nb) %{_datadir}/vim/v*/lang/no/
984 %lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
985 %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
986 %lang(pl) %{_datadir}/vim/v*/lang/pl/
987 %lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
988 %lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
989 %lang(ru) %{_datadir}/vim/v*/lang/ru/
990 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
991 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
992 %lang(sk) %{_datadir}/vim/v*/lang/sk/
993 %lang(sl) %{_datadir}/vim/v*/lang/menu_sl_si*
994 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
995 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
996 %lang(sv) %{_datadir}/vim/v*/lang/sv/
997 %lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
998 %lang(uk) %{_datadir}/vim/v*/lang/uk/
999 %lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
1000 %lang(vi) %{_datadir}/vim/v*/lang/vi/
1001 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
1002 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
1003 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
1004 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
1005 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
1006 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN.UTF-8/
1007 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1008 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
1009 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
1010 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
1011 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
1012 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW.UTF-8/
1014 %dir %{_datadir}/vim/v*/spell
1015 %{_datadir}/vim/v*/spell/cleanadd.vim
1016 %lang(he) %{_datadir}/vim/v*/spell/he.*
1017 %lang(yi) %{_datadir}/vim/v*/spell/yi.*
1019 %{_datadir}/vim/v*/macros
1020 %{_datadir}/vim/v*/plugin
1021 %{_datadir}/vim/v*/print
1022 %{_datadir}/vim/v*/syntax
1023 %{_datadir}/vim/v*/tools
1024 %{_datadir}/vim/v*/tutor
1025 %{_datadir}/vim/v*/colors
1026 %{_datadir}/vim/v*/compiler
1027 %{_datadir}/vim/v*/autoload
1028 %{_datadir}/vim/v*/*.vim
1030 %{_mandir}/man1/rvim.1*
1031 %{_mandir}/man1/vim.1*
1032 %{_mandir}/man1/vimtutor.1*
1033 %lang(fi) %{_mandir}/fi/man1/rvim.1*
1034 %lang(fi) %{_mandir}/fi/man1/vim.1*
1035 %lang(fr) %{_mandir}/fr/man1/rvim.1*
1036 %lang(fr) %{_mandir}/fr/man1/vim.1*
1037 %lang(fr) %{_mandir}/fr/man1/vimtutor.1*
1038 %lang(id) %{_mandir}/id/man1/vim.1*
1039 %lang(it) %{_mandir}/it/man1/vim.1*
1040 %lang(it) %{_mandir}/it/man1/vimtutor.1*
1041 %lang(pl) %{_mandir}/pl/man1/vim.1*
1042 %lang(pl) %{_mandir}/pl/man1/vimtutor.1*
1043 %lang(ru) %{_mandir}/ru/man1/vim.1*
1044 %lang(ru) %{_mandir}/ru/man1/vimtutor.1*
1045 %{_iconsdir}/hicolor/16x16/apps/vim.png
1046 %{_iconsdir}/hicolor/32x32/apps/vim.png
1047 %{_iconsdir}/hicolor/48x48/apps/vim.png
1050 %defattr(644,root,root,755)
1051 %{_datadir}/vim/v*/spell/en.*.*
1054 %files -n gvim-athena
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/gvim.athena
1057 %{_desktopdir}/gvim-athena.desktop
1061 %files -n gvim-motif
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/gvim.motif
1064 %{_desktopdir}/gvim-motif.desktop
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/gvim.gtk
1071 %attr(755,root,root) %{_bindir}/gvimdiff
1072 %attr(755,root,root) %{_bindir}/gview
1073 %attr(755,root,root) %{_bindir}/rgvim
1074 %attr(755,root,root) %{_bindir}/rgview
1075 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1076 %{_mandir}/man1/gvi*
1077 %{_mandir}/man1/rgv*
1078 %lang(fi) %{_mandir}/fi/man1/gvi*
1079 %lang(fi) %{_mandir}/fi/man1/rgv*
1080 %lang(fr) %{_mandir}/fr/man1/gvi*
1081 %lang(fr) %{_mandir}/fr/man1/rgv*
1082 %lang(id) %{_mandir}/id/man1/gvi*
1083 %lang(id) %{_mandir}/id/man1/rgv*
1084 %lang(it) %{_mandir}/it/man1/gvi*
1085 %lang(it) %{_mandir}/it/man1/rgv*
1086 %lang(pl) %{_mandir}/pl/man1/gvi*
1087 %lang(pl) %{_mandir}/pl/man1/rgv*
1088 %lang(ru) %{_mandir}/ru/man1/gvi*
1089 %lang(ru) %{_mandir}/ru/man1/rgv*
1090 %{_desktopdir}/gvim-gtk.desktop
1094 %files -n gvim-gnome
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_bindir}/gvim.gnome
1097 %{_desktopdir}/gvim-gnome.desktop