]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim.spec
- fixed %%files
[packages/vim.git] / vim.spec
index 98bc926d3d339bed103c5808413e6911964a99b0..e02a8d2587d588010ca11c3d7bbe01b67fd7e12a 100644 (file)
--- a/vim.spec
+++ b/vim.spec
-Summary:       Vim static
-Summary(pl):   Vim skompilowany statycznie
+#
+# Conditional build:
+# _without_static      - without static version
+# _without_athena      - without Athena Widgets-based gvim. DOESN'T WORK.
+# _without_motif       - without Motif-based gvim
+# _without_gtk         - without gtk+-based gvim support
+# _without_gnome       - without gnome-based gvim support
+# _with_ispell         - with spell checking (non-standard feature; disables RIGHTLEFT and FKMAP)
+# _with_perl           - with perl interp
+# _with_python         - with python interp
+# _with_ruby           - with ruby interp
+# _with_tcl            - with tcl interp
+
+%define                _ver            6.0
+%define                _patchlevel     208
+Summary:       Vi IMproved - a Vi clone
+Summary(de):   VIsual editor iMproved
+Summary(es):   Editor visual incrementado
+Summary(fr):   editeur VIM : VIsual editor iMproved
+Summary(pl):   Vi IMproved - klon edytora Vi
+Summary(pt_BR):        Editor visual incrementado
+Summary(ru):   Visual editor IMproved - åÄÉÎÓÔ×ÅÎÎÏ ðÒÁ×ÉÌØÎÙÊ òÅÄÁËÔÏÒ :)
+Summary(tr):   Geliþmiþ bir vi sürümü
+Summary(uk):   Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
 Name:          vim
-Version:       5.4d
-Release:       2d
-#######                ftp://ftp.nl.vim.org/pub/vim/unreleased/unix
-Source0:       %{name}-%{version}-src.tar.gz
-Source1:       %{name}-%{version}-rt.tar.gz
-#######                ftp://ftp.nl.vim.org/pub/vim/unreleased/extra
-Source2:       %{name}-%{version}-extra.tar.gz
-Source3:       gvim.wmconfig
-Patch0:                %{name}-hold_gui_events.patch
-Patch1:                %{name}-clip.patch
-Copyright:     GPL
+Version:       %{_ver}.%{_patchlevel}
+Release:       2
+Epoch:         4
+License:       Charityware
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Source0:       ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{_ver}.tar.bz2
+Source1:       ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{_ver}-lang.tar.gz
+Source2:       g%{name}-athena.desktop
+Source3:       g%{name}-motif.desktop
+Source4:       g%{name}-gtk.desktop
+Source5:       g%{name}-gnome.desktop
+#packed from   ftp://ftp.vim.org/pub/editors/vim/patches/6.0.*
+Source6:       %{name}-patches-%{_ver}.%{_patchlevel}.tar.bz2
+Source7:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Patch0:                %{name}-sysconfdir.patch
+Patch1:                %{name}-visual.patch
+Patch2:                %{name}-phphighlight.patch
+Patch3:                %{name}-paths.patch
+Patch4:                %{name}-ispell.patch
+Patch5:                %{name}-ispell-axp.patch
 URL:           http://www.vim.org/
-Buildroot:     /tmp/%{name}-%{version}-root
+BuildRequires: autoconf
+BuildRequires: gettext-devel
+BuildRequires: gpm-devel
+BuildRequires: ncurses-devel
+%{!?_without_athena:BuildRequires:     Xaw3d-devel}
+%{!?_without_gnome:BuildRequires:      esound-devel}
+%{!?_without_gnome:BuildRequires:      gnome-libs-devel}
+%{!?_without_gtk:BuildRequires:                gtk+-devel}
+%{!?_without_motif:BuildRequires:      motif-devel}
+%{!?_without_static:BuildRequires:     glibc-static}
+%{!?_without_static:BuildRequires:     ncurses-static}
+%{?_with_perl:BuildRequires:           perl-devel}
+%{?_with_python:BuildRequires:         python-devel}
+%{?_with_ruby:BuildRequires:           ruby}
+%{?_with_tcl:BuildRequires:            tcl-devel}
+Requires:      %{name}-rt = %{version}
+%{?_without_static:Requires:   %{name}-static = %{version}}
+Obsoletes:     vim-enhanced
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The classic Unix text editor. This version is build with minimal
-feature and is installed in /bin as a rescue tool. The installation of
-this package is STRONGLY recommended.
+Text editor similar to Vi. Important improvements: multiple windows,
+multi-level undo, block highliting, folding, and many other.
+
+%description -l de
+Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
+des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
+wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
+Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
+Standard-vi-Programm.
+
+%description -l es
+El editor Visual Mejorado es una versión actualizada y con nuevas
+características adicionales del mundialmente famoso 'vi' que acompaña
+prácticamente todos los sistemas UN*X. Posibilita trabajar con
+múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
+otras muchas características del 'vi'.
+
+%description -l fr
+L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
+caractéristiques supplémentaires de l'éditeur « vi » fourni avec
+pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
+mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
+blocs et autres caractéristiques au vi de base.
 
 %description -l pl
-Pakiet zawiera vim - klasyczny (unixowy) edytor tekstowy skompilowany 
-statycznie. Instalacja tego pakietu jest MOCNO zalecana, mo¿e on pomóc
-Tobie uratowaæ system w czasie awarii.
-
-%package       rt 
+Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu
+oknach, wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni,
+folding i wiele innych.
+
+%description -l pt_BR
+O editor Vim (Vi Enhanced) é um versão atualizada e com novas
+características do mundialmente famoso 'vi' que acompanha praticamente
+todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
+janelas, vários níveis de desfazer, blocos enfatizados, e muitas
+outras características do 'vi'.
+
+%description -l ru
+VIsual editor iMproved - ÜÔÏ ÏÂÎÏ×ÌÅÎÎÙÊ É ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÅÎÎÙÊ ËÌÏÎ
+ÒÅÄÁËÔÏÒÁ vi, ËÏÔÏÒÙÊ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÐÒÁËÔÉÞÅÓËÉ ÓÏ ×ÓÅÍÉ
+UN*X-ÓÉÓÔÅÍÁÍÉ. ÷ ÜÔÏÊ ×ÅÒÓÉÉ ÅÓÔØ ÍÎÏÇÏÕÒÏ×ÎÅ×ÙÊ ÏÔËÁÔ, ×ÙÄÅÌÅÎÉÅ
+ÂÌÏËÏ×, ÓÉÎÔÁËÓÉÞÅÓËÁÑ ÐÏÄÓ×ÅÔËÁ É ÍÎÏÇÏ ÄÒÕÇÏÇÏ...
+
+%description -l tr
+Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
+birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
+
+%description -l uk
+VIsual editor iMproved - ÃÅ ÏÎÏ×ÌÅÎÉÊ ÔÁ ÚÎÁÞÎÏ ÐÏ̦ÐÛÅÎÉÊ ËÌÏÎ
+ÒÅÄÁËÔÏÒÁ vi, ÑËÉÊ ÐÏÓÔÁ×ÌѤÔØÓÑ ÐÒÁËÔÉÞÎÏ Ú¦ ×Ó¦ÍÁ UN*X-ÓÉÓÔÅÍÁÍÉ. ÷
+æʠ×ÅÒÓ¦§ ¤ ÂÁÇÁÔÏÒ¦×ÎÅ×ÉʠצÄËÁÔ, ×ÉĦÌÅÎÎÑ ÂÌÏ˦×, ÓÉÎÔÁËÓÉÞÎÁ
+ЦÄÓצÔËÁ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ...
+
+%package -n xxd
+Summary:       Utility to convert files to hexdump or do the reverse
+Summary(pl):   Narzêdzie do zamiany plików na postaæ szesnastkow± i odwrotnie
+Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
+Group(pl):     Aplikacje/Edytory/Vim
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+
+%description -n xxd
+xxd creates a hex dump of a given file or standard input. It can also
+convert a hex dump back to its original binary form. Like uuencode and
+uudecode it allows the transmission of binary data in a `mail-safe'
+ASCII representation, but has the advantage of decoding to standard
+output. Moreover, it can be used to perform binary file patching.
+
+%description -n xxd -l pl
+xxd tworzy szesnastkowy zapis pliku podanego na standardowe wej¶cie.
+Mo¿e tak¿e przekonwertowaæ taki zapis na oryginaln±, binarn± postaæ.
+Podobnie jak uuencode i uudecode pozwala na przesy³anie danych
+binarnych w postaci ASCII, ale ma mo¿liwo¶æ dekodowania na standardowe
+wyj¶cie. Co wiêcej, mo¿e byæ u¿yty do modyfikowania plików binarnych.
+
+%package static
+Summary:       Statically linked Vim
+Summary(pl):   Statycznie zlinkowany Vim
+Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
+Group(pl):     Aplikacje/Edytory/Vim
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Provides:      vi
+Obsoletes:     vi
+Obsoletes:     vim-minimal
+
+%description static
+Text editor similar to Vi. This version is built with minimal feature
+and is installed in /bin as a rescue tool. The installation of this
+package is STRONGLY recommended.
+
+%description static -l pl
+Edytor tekstu podobny do Vi. Ta wersja zosta³a zlinkowana statycznie i
+posiada minimaln± ilo¶æ dodatków. Jest instalowana w /bin jako
+narzêdzie dla administratora. Instalacja tego pakietu jest MOCNO
+zalecana, mo¿e on pomóc Ci uratowaæ system w czasie awarii.
+
+%description static -l ru
+ðÁËÅÔ vim-static ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÒÁÚÎÏ×ÉÄÎÏÓÔØ vim ËÁË /bin/vi, ÞÔÏ
+ÕÄÏÂÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÄÁÖÅ ËÏÇÄÁ ÓÍÏÎÔÉÒÏ×ÁÎÁ ÔÏÌØËÏ ËÏÒÎÅ×ÁÑ ÆÁÊÌÏ×ÁÑ
+ÓÉÓÔÅÍÁ.
+
+%description static -l uk
+ðÁËÅÔ vim-static ×ÓÔÁÎÏ×ÌÀ¤ Ò¦ÚÎÏ×ÉÄ vim ÑË /bin/vi, ÝÏ ÚÒÕÞÎÏ ÄÌÑ
+ÚÁÐÕÓËÕ ÎÁצÔØ ÔÏĦ, ËÏÌÉ ÚÍÏÎÔÏ×ÁÎÁ Ô¦ÌØËÉ ËÏÒÎØÏ×Á ÆÁÊÌÏ×Á ÓÉÓÔÅÍÁ.
+
+%package rt
 Summary:       Vim runtime files
-Summary(pl):   Pliki przydatne edytorowi vim 
+Summary(pl):   Pliki przydatne edytorowi Vim
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Requires:      mktemp
+Requires:      which
+Obsoletes:     vim-common
 
 %description rt
 This package contains macros, documentation, syntax configuration and
-manual pages for vim. If you want to take advantage of vim more powerful
-features, you should install this package.
+manual pages for Vim. If you want to take advantage of Vim more
+powerful features, you should install this package.
 
 %description rt -l pl
-W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i strony
-podrêcznika edytora vim. Je¿eli zamierzasz korzystaæ z vim-a, powiniene¶
-zainstalowaæ ten pakiet.
-
-#%package      slang
-#Summary:      Vim 5.3 built with slang
-#Summary(pl):  Vim 5.3 korzystaj±cy z bibliotek Slang
-#Group:                Applications/Editors/Vim
-#Group(pl):    Alikacje/Edytory/Vim
-#Obsoletes:    vim-ncurses
-
-#%description slang
-#The classic Unix text editor build with slang library. It adds
-#multiple windows, multi-level undo, block highliting, and many other
-#features to the standard vi program.
-
-#%description slang -l pl
-#Wersja edytora vim skompilowana z bibliotek± slang. W porownaniu z
-#edytorem vi, ta wersja oferuje dodatkowo pracê z wieloma plikami,
-#wielopoziomowe operacje cofnij, bloki, pod¶wietlanie sk³adni i wiele
-#innych usprawnieñ.
-
-%package       ncurses 
-Summary:       Vim built with ncurses
-Summary(pl):   Vim korzystaj±cy z bibliotek ncurses
+W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i
+strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
+zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
+
+%description rt -l ru
+ðÁËÅÔ vim-rt ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ (ÎÁÐÒÉÍÅÒ, ÆÁÊÌÙ ÓÐÒÁ×ËÉ), ËÏÔÏÒÙÅ ÎÕÖÎÙ
+ÄÌÑ ÒÁÂÏÔÙ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÙ vim.
+
+%description rt -l uk
+ðÁËÅÔ vim-rt Í¦ÓÔÉÔØ ÆÁÊÌÉ (ÎÁÐÒÉËÌÁÄ, ÆÁÊÌÉ ÄÏצÄËÉ), ËÏÔÒ¦ ÐÏÔÒ¦ÂΦ
+ÄÌÑ ÒÏÂÏÔÉ ÂÕÄØ-ÑËϧ ÐÒÏÇÒÁÍÉ vim.
+
+%package -n gvim-athena
+Summary:       Vim for X Window built with Athena
+Summary(pl):   Vim dla X Window korzystaj±cy z biblioteki Athena
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
-Requires:      ncurses
-Obsoletes:     vim-slang
-
-%description ncurses
-The classic Unix text editor build with ncurses library. It adds
-multiple windows, multi-level undo, block highliting, and many other
-features to the standard vi program.
-
-%description ncurses -l pl
-Wersja edytora vim skompilowana z bibliotek± ncurses. W porownaniu z
-edytorem vi, ta wersja oferuje dodatkowo pracê z wieloma plikami,
-wielopoziomowe operacje cofnij, bloki, pod¶wietlanie sk³adni i wiele
-innych usprawnieñ.
-
-%package       athena
-Summary:       Vim built with X11 and athena support
-Summary(pl):   Vim pod X-Window korzystaj±cy z Athena Widget Set
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Requires:      %{name}-rt = %{version}
+Requires:      iconv
+Obsoletes:     vim-X11
+
+%description -n gvim-athena
+The classic Unix text editor now also under X Window System! This
+version is built with Athena Widget Set.
+
+%description -n gvim-athena -l pl
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+biblioteki Athena Widget Set.
+
+%description -n gvim-athena -l ru
+üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
+Athena Widget Set, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window
+System - Ó ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
+
+%description -n gvim-athena -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Athena Widget
+Set, ÝÏ ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System -
+Ú ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
+
+%package -n gvim-motif
+Summary:       Vim for X Window built with Motif
+Summary(pl):   Vim dla X Window korzystaj±cy z biblioteki Motif
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
-Obsoletes:     vim-lesstif
-Obsoletes:     vim-gtk
-
-%description athena 
-The classic Unix text editor now also under X Window System! 
-This version is build with Athena Widget Set. 
-
-%description athena -l pl
-Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
-z wykorzystaniem Athena Widget Set.
-
-%package lesstif
-Summary:       Vim built with X11 and LessTif support
-Summary(pl):   Vim pod X-Window korzystaj±cy z bibliotek LessTif
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Requires:      %{name}-rt = %{version}
+Requires:      iconv
+Obsoletes:     vim-X11
+
+%description -n gvim-motif
+The classic Unix text editor now also under X Window System! This
+version is built with Motif.
+
+%description -n gvim-motif -l pl
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+biblioteki Motif.
+
+%description -n gvim-motif -l ru
+üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
+Motif, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
+ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
+
+%description -n gvim-motif -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ Motif, ÝÏ
+ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
+ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
+
+%package -n gvim-gtk
+Summary:       Vim for X Window built with gtk
+Summary(pl):   Vim dla X Window korzystaj±cy z biblioteki GTK
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
-Requires:      lesstif
-Obsoletes:     vim-athena
-Obsoletes:     vim-gtk
-
-%description lesstif
-The classic Unix text editor now also under X Window System! 
-This version is build with LessTif.
-
-%description lesstif -l pl
-Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
-z wykorzystaniem LessTif.
-
-%package gtk
-Summary:       Vim built with X11 and gtk support
-Summary(pl):   Vim pod X-Window korzystaj±cy z bibliotek gtk
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Requires:      %{name}-rt = %{version}
+Requires:      iconv
+Obsoletes:     vim-X11
+
+%description -n gvim-gtk
+The classic Unix text editor now also under X Window System! This
+version is built with GTK.
+
+%description -n gvim-gtk -l pl
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+biblioteki GTK.
+
+%description -n gvim-gtk -l ru
+üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
+GTK, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
+ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ. ðÒÏÓÔÏ ÓËÁÖÉÔÅ
+'gvim'...
+
+%description -n gvim-gtk -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GTK, ÝÏ ÄÏÚ×ÏÌѤ
+ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú ÐÏ×ΦÓÔÀ
+ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦. ðÒÏÓÔÏ ÓËÁÖ¦ÔØ 'gvim'...
+
+%package -n gvim-gnome
+Summary:       Vim for X Window built with gnome
+Summary(pl):   Vim dla X Window korzystaj±cy z biblioteki GNOME
 Group:         Applications/Editors/Vim
+Group(cs):     Aplikace/Editory/Vim
+Group(da):     Programmer/Tekstbehandlere/Vim
+Group(de):     Applikationen/Editoren/Vim
+Group(es):     Aplicaciones/Editores/Vim
+Group(fr):     Applications/Editeurs/Vim
+Group(is):     Forrit/Ritlar/Vim
+Group(it):     Applicazioni/Editor/Vim
+Group(ja):     ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿/Vim
+Group(no):     Applikasjoner/Editorer/Vim
 Group(pl):     Aplikacje/Edytory/Vim
-Requires:      gtk+
-Obsoletes:     vim-athena
-Obsoletes:     vim-lesstif
-
-%description gtk
-The classic Unix text editor now also under X Window System!
-This version is build with gtk.
-
-%description gtk -l pl
-Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
-z wykorzystaniem gtk.
+Group(pt):     Aplicações/Editores/Vim
+Group(ru):     ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ/Vim
+Group(sl):     Programi/Urejevalniki/Vim
+Group(sv):     Tillämpningar/Editorer/Vim
+Group(uk):     ðÒÉËÌÁÄΦ ðÒÏÇÒÁÍÉ/òÅÄÁËÔÏÒÉ/Vim
+Requires:      %{name}-rt = %{version}
+Requires:      iconv
+Obsoletes:     vim-X11
+
+%description -n gvim-gnome
+The classic Unix text editor now also under X Window System! This
+version is build with GNOME.
+
+%description -n gvim-gnome -l pl
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+bibliotek GNOME.
+
+%description -n gvim-gnome -l ru
+üÔÏÔ ÐÁËÅÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ×ÅÒÓÉÀ VIM, ÓÏÂÒÁÎÎÕÀ Ó ÂÉÂÌÉÏÔÅËÁÍÉ
+GNOME, ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓËÁÔØ VIM ËÁË ÐÒÉÌÏÖÅÎÉÅ X Window System - Ó
+ÐÏÌÎÏÓÔØÀ ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ É ÐÏÄÄÅÒÖËÏÊ ÍÙÛÉ.
+
+%description -n gvim-gnome -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÒÓ¦À VIM, Ú¦ÂÒÁÎՠڠ¦Â̦ÏÔÅËÁÍÉ GNOME, ÝÏ
+ÄÏÚ×ÏÌѤ ÚÁÐÕÓËÁÔÉ VIM ÑË ÐÒÉËÌÁÄÎÕ ÐÒÏÇÒÁÍÕ X Window System - Ú
+ÐÏ×ΦÓÔÀ ÇÒÁƦÞÎÉÍ ¦ÎÔÅÒÆÅÊÓÏÍ ÔÁ Ð¦ÄÔÒÉÍËÏÀ ÍÉÛ¦.
 
 %prep
-%setup -q  -b 1 -b 2
-%patch 
+%setup -q -b1 -a6 -n %{name}%(echo %{_ver} | sed -e "s#\.##g")
+%patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%{?_with_ispell:%patch4 -p1}
+%ifarch alpha
+%{?_with_ispell:%patch5 -p1}
+%endif
+
+# these patches are to "extra" package which we don't need (nor use)
+rm -f patches/6.0.{027,048,053,064,070,073,093,106,107,115,116,117,119,123,121,122,125,135,161,162,164,165,179,186,188,205,207}
+# apply the rest of official patches
+for f in patches/6.0.* ; do
+       echo "Applying official patch `basename $f` ..."
+       patch -s -p0 < $f
+done
 
 %build
 cd src
-
-LDFLAGS=-static CFLAGS=-O ./configure --disable-gui --without-x \
---disable-perlinterp --disable-pythoninterp --disable-tclinterp \
---disable-cscope --enable-min-features \
---datadir=/etc --with-tlib=termcap --prefix=/usr
-make vim
-make xxd/xxd
-mv vim vim.termcap
-mv xxd/xxd xxd.termcap
-
-#make distclean
-#LDFLAGS=-s CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-gui --without-x \
-#--disable-perlinterp --disable-pythoninterp --disable-tclinterp \
-#--disable-cscope --with-tlib=slang --prefix=/usr
-#make
-#mv src/vim src/vim.slang
-
-make distclean
-LDFLAGS=-s CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-gui --without-x \
---disable-perlinterp --disable-pythoninterp --disable-tclinterp \
---disable-cscope --with-tlib=ncurses --prefix=/usr
-make vim
-mv vim vim.ncurses
-
-make distclean
-LDFLAGS=-s CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-gui=athena --with-x \
---disable-perlinterp --disable-pythoninterp --disable-tclinterp \
---disable-cscope --with-tlib=termcap --prefix=/usr
-make vim
-mv vim vim.athena
-
-make distclean
-LDFLAGS=-s CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-gui=motif --with-x \
---disable-perlinterp --disable-pythoninterp --disable-tclinterp \
---disable-cscope --with-tlib=termcap --prefix=/usr
-make vim
-mv vim vim.lesstif
-
-make distclean
-LDFLAGS=-s CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-gui=gtk --with-x \
---disable-perlinterp --disable-pythoninterp --disable-tclinterp \
---disable-cscope --with-tlib=termcap --prefix=/usr
-make vim
-mv vim vim.gtk
-
-cd ..
+autoconf
+%configure \
+       --disable-gui \
+       --without-x \
+       %{!?_with_perl:--disable-perlinterp} \
+       %{?_with_perl:--enable-perlinterp} \
+       %{!?_with_python:--disable-pythoninterp} \
+       %{?_with_python:--enable-pythoninterp} \
+       %{!?_with_ruby:--disable-rubyinterp} \
+       %{?_with_ruby:--enable-rubyinterp} \
+       %{!?_with_tcl:--disable-tclinterp} \
+       %{?_with_tcl:--enable-tclinterp} \
+       --enable-cscope \
+       --enable-gpm \
+       --with-features=huge \
+       --enable-multibyte \
+       --with-tlib=ncurses \
+       --enable-nls
+
+%{__make} vim
+mv -f vim vim.ncurses
+
+%{__make} xxd/xxd
+
+%if %{!?_without_static:1}%{?_without_static:0}
+%{__make} distclean
+LDFLAGS="%{rpmldflags} -static"
+%configure \
+       --disable-gui \
+       --without-x \
+       --disable-perlinterp \
+       --disable-pythoninterp \
+       --disable-rubyinterp \
+       --disable-tclinterp \
+       --disable-cscope \
+       --disable-gpm \
+       --disable-multibyte \
+       --with-features=small \
+       --with-tlib=tinfo \
+       --disable-nls
+
+%{__make} vim
+mv -f vim vim.static
+%endif
+
+%if %{!?_without_athena:1}%{?_without_athena:0}
+%{__make} distclean
+LDFLAGS="%{rpmldflags}"
+%configure \
+       --with-features=huge \
+       --enable-gui=athena \
+       --with-x \
+       %{!?_with_perl:--disable-perlinterp} \
+       %{?_with_perl:--enable-perlinterp} \
+       %{!?_with_python:--disable-pythoninterp} \
+       %{?_with_python:--enable-pythoninterp} \
+       %{!?_with_ruby:--disable-rubyinterp} \
+       %{?_with_ruby:--enable-rubyinterp} \
+       %{!?_with_tcl:--disable-tclinterp} \
+       %{?_with_tcl:--enable-tclinterp} \
+       --enable-cscope \
+       --enable-fontset \
+       --disable-gpm \
+       --without-gnome \
+       --enable-nls
+%{__make} vim
+mv -f vim gvim.athena
+%endif
+
+%if %{!?_without_motif:1}%{?_without_motif:0}
+%{__make} distclean
+%configure \
+       --with-features=huge \
+       --enable-gui=motif \
+       --with-x \
+       %{!?_with_perl:--disable-perlinterp} \
+       %{?_with_perl:--enable-perlinterp} \
+       %{!?_with_python:--disable-pythoninterp} \
+       %{?_with_python:--enable-pythoninterp} \
+       %{!?_with_ruby:--disable-rubyinterp} \
+       %{?_with_ruby:--enable-rubyinterp} \
+       %{!?_with_tcl:--disable-tclinterp} \
+       %{?_with_tcl:--enable-tclinterp} \
+       --enable-multibyte \
+       --enable-cscope \
+       --enable-fontset \
+       --disable-gpm \
+       --without-gnome \
+       --enable-nls
+%{__make} vim
+mv -f vim gvim.motif
+%endif
+
+%if %{!?_without_gtk:1}%{?_without_gtk:0}
+%{__make} distclean
+%configure \
+       --with-features=huge \
+       --enable-gui=gtk \
+       --with-x \
+       %{!?_with_perl:--disable-perlinterp} \
+       %{?_with_perl:--enable-perlinterp} \
+       %{!?_with_python:--disable-pythoninterp} \
+       %{?_with_python:--enable-pythoninterp} \
+       %{!?_with_ruby:--disable-rubyinterp} \
+       %{?_with_ruby:--enable-rubyinterp} \
+       %{!?_with_tcl:--disable-tclinterp} \
+       %{?_with_tcl:--enable-tclinterp} \
+       --disable-gpm \
+       --enable-cscope \
+       --enable-fontset \
+       --enable-nls
+%{__make} vim
+mv -f vim gvim.gtk
+%endif
+
+%if %{!?_without_gnome:1}%{?_without_gnome:0}
+%{__make} distclean
+%configure \
+       --with-features=huge \
+       --enable-gui=gnome \
+       --with-x \
+       %{!?_with_perl:--disable-perlinterp} \
+       %{?_with_perl:--enable-perlinterp} \
+       %{!?_with_python:--disable-pythoninterp} \
+       %{?_with_python:--enable-pythoninterp} \
+       %{!?_with_ruby:--disable-rubyinterp} \
+       %{?_with_ruby:--enable-rubyinterp} \
+       %{!?_with_tcl:--disable-tclinterp} \
+       %{?_with_tcl:--enable-tclinterp} \
+       --disable-gpm \
+       --enable-cscope \
+       --enable-fontset \
+       --enable-nls
+%{__make} vim
+mv -f vim gvim.gnome
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
+       $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
+       $RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
 
-install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
-install -d $RPM_BUILD_ROOT/bin
-install -d $RPM_BUILD_ROOT/usr/{bin,X11R6/bin,share/vim/doc,man/man1}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+rm -f $RPM_BUILD_ROOT%{_bindir}/*
 
-# make prefix=$RPM_BUILD_ROOT/usr install
+%{!?_without_static:install src/vim.ncurses    $RPM_BUILD_ROOT%{_bindir}/vim}
+%{?_without_static:install src/vim.ncurses     $RPM_BUILD_ROOT/bin/vi}
+%{!?_without_static:install src/vim.static     $RPM_BUILD_ROOT/bin/vi}
+%{?_without_static:ln -sf /bin/vi              $RPM_BUILD_ROOT%{_bindir}/vim}
+install src/xxd/xxd                            $RPM_BUILD_ROOT%{_bindir}/xxd
+install src/vimtutor                           $RPM_BUILD_ROOT%{_bindir}/vimtutor
 
-install -s src/vim.termcap $RPM_BUILD_ROOT/bin/vi
-install -s src/xxd.termcap $RPM_BUILD_ROOT/bin/xxd
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
 
-#install -s src/vim.slang $RPM_BUILD_ROOT/usr/bin/vim.slang
+install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-install -s src/vim.ncurses $RPM_BUILD_ROOT/usr/bin/vim.ncurses
-install -s src/vim.athena  $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.athena
-install -s src/vim.lesstif $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.lesstif
-install -s src/vim.gtk     $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.gtk
+install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-rm -f $RPM_BUILD_ROOT/usr/man/man1/*.1
+echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
+echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
+echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
+echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
+echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
 
-install runtime/doc/vim.1 $RPM_BUILD_ROOT/usr/man/man1
-install runtime/doc/xxd.1 $RPM_BUILD_ROOT/usr/man/man1
+mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
+mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
 
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/vi.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/ex.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/view.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/gvim.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/gview.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rvim.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rview.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rgvim.1
-echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rgview.1
+ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
+ln -sf vi  $RPM_BUILD_ROOT/bin/ex
+ln -sf vi  $RPM_BUILD_ROOT/bin/view
+ln -sf vi  $RPM_BUILD_ROOT/bin/rview
 
-cp -a runtime/macros $RPM_BUILD_ROOT/usr/share/vim/macros
-cp -a runtime/syntax $RPM_BUILD_ROOT/usr/share/vim/syntax
-cp -a runtime/tutor  $RPM_BUILD_ROOT/usr/share/vim/tutor
+%{!?_without_athena:install src/gvim.athena    $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.athena}
+%{!?_without_motif: install src/gvim.motif     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.motif}
+%{!?_without_gtk:   install src/gvim.gtk       $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gtk}
+%{!?_without_gnome: install src/gvim.gnome     $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim.gnome}
 
-install runtime/*.vim $RPM_BUILD_ROOT/usr/share/vim
-install runtime/vimrc_example $RPM_BUILD_ROOT/usr/share/vim/vimrc
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/X11/wmconfig/gvim
+%{!?_without_gtk:ln -sf gvim.gtk               $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gvim}
+%{!?_without_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgvim}
+%{!?_without_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
+%{!?_without_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
 
-touch $RPM_BUILD_ROOT/usr/bin/vim $RPM_BUILD_ROOT/usr/X11R6/bin/gvim
+%{!?_without_athena:install %{SOURCE2}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_motif: install %{SOURCE3}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_gtk:   install %{SOURCE4}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_gnome: install %{SOURCE5}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
 
-install runtime/doc/*.txt $RPM_BUILD_ROOT/usr/share/vim/doc
-install runtime/doc/tags  $RPM_BUILD_ROOT/usr/share/vim/doc
-
-ln -sf vi $RPM_BUILD_ROOT/bin/ex
-ln -sf vi $RPM_BUILD_ROOT/bin/view
-ln -sf vi $RPM_BUILD_ROOT/bin/rview
-ln -sf /bin/vi $RPM_BUILD_ROOT/usr/bin/vi
-ln -sf vim $RPM_BUILD_ROOT/usr/bin/rvim
-
-ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgvim
-ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gview
-ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgview
-
-bzip2 -9 $RPM_BUILD_ROOT/usr/man/man1/*
+bzip2 -dc %{SOURCE7} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%post slang
-#ln -sf /usr/bin/vim.slang /usr/bin/vim
-
-%post ncurses
-ln -sf /usr/bin/vim.ncurses /usr/bin/vim
-
-%post athena
-ln -sf /usr/X11R6/bin/gvim.athena /usr/X11R6/bin/gvim
-
-%post lesstif 
-ln -sf /usr/X11R6/bin/gvim.lesstif /usr/X11R6/bin/gvim
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vim
+%attr(755,root,root) %{_bindir}/rvim
 
-%post gtk
-ln -sf /usr/X11R6/bin/gvim.gtk /usr/X11R6/bin/gvim
+%files -n xxd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/xxd
+%{_mandir}/man1/xxd.1*
 
-%files
+%files static
+%defattr(644,root,root,755)
 %attr(755,root,root) /bin/*
-%attr(755,root,root) /usr/bin/vi
-
-#%files slang
-#%attr(711,root,root) /usr/bin/vim.slang
-#%attr(711,root,root) /usr/bin/rvim
-#%attr(711,root,root) %ghost /usr/bin/vim
-
-%files ncurses
-%attr(755,root,root) /usr/bin/vim.ncurses
-%attr(755,root,root) /usr/bin/rvim
-%attr(755,root,root) %ghost /usr/bin/vim
-
-%files athena
-%attr(755,root,root) /usr/X11R6/bin/gvim.athena
-%attr(755,root,root) /usr/X11R6/bin/rgvim
-%attr(755,root,root) /usr/X11R6/bin/rgview
-%attr(644,root,root) %config(missingok) /etc/X11/wmconfig/gvim
-%attr(755,root,root) %ghost /usr/X11R6/bin/gvim
-
-%files lesstif 
-%attr(755,root,root) /usr/X11R6/bin/gvim.lesstif
-%attr(755,root,root) /usr/X11R6/bin/rgvim
-%attr(755,root,root) /usr/X11R6/bin/rgview
-%attr(644,root,root) %config(missingok) /etc/X11/wmconfig/gvim
-%attr(755,root,root) %ghost /usr/X11R6/bin/gvim
-
-%files gtk
-%attr(755,root,root) /usr/X11R6/bin/gvim.gtk
-%attr(755,root,root) /usr/X11R6/bin/rgvim
-%attr(755,root,root) /usr/X11R6/bin/rgview
-%attr(644,root,root) %config(missingok) /etc/X11/wmconfig/gvim
-%attr(755,root,root) %ghost /usr/X11R6/bin/gvim
+
+%{_mandir}/man1/vi.1*
+%{_mandir}/man1/ex.1*
+%{_mandir}/man1/view.1*
+%{_mandir}/man1/rview.1*
+%lang(fi) %{_mandir}/fi/man1/vi.1*
+%lang(fi) %{_mandir}/fi/man1/ex.1*
+%lang(fi) %{_mandir}/fi/man1/view.1*
+%lang(fi) %{_mandir}/fi/man1/rview.1*
+%lang(fr) %{_mandir}/fr/man1/vi.1*
+%lang(fr) %{_mandir}/fr/man1/ex.1*
+%lang(fr) %{_mandir}/fr/man1/view.1*
+%lang(fr) %{_mandir}/fr/man1/rview.1*
+%lang(id) %{_mandir}/id/man1/vi.1*
+%lang(id) %{_mandir}/id/man1/ex.1*
+%lang(id) %{_mandir}/id/man1/view.1*
+%lang(id) %{_mandir}/id/man1/rview.1*
+%lang(pl) %{_mandir}/pl/man1/vi.1*
+%lang(pl) %{_mandir}/pl/man1/ex.1*
+%lang(pl) %{_mandir}/pl/man1/view.1*
+%lang(pl) %{_mandir}/pl/man1/rview.1*
 
 %files rt
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vimtutor
+%dir %{_sysconfdir}/vim
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/vimrc
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vim/gvimrc
+
+%dir %{_datadir}/vim
+%dir %{_datadir}/vim/v*
+%{_datadir}/vim/v*/doc
+%{_datadir}/vim/v*/ftplugin
+%{_datadir}/vim/v*/indent
+%{_datadir}/vim/v*/keymap
+%dir %{_datadir}/vim/v*/lang
+%{_datadir}/vim/v*/lang/README*
+
+%lang(af) %{_datadir}/vim/v*/lang/af
+%lang(de) %{_datadir}/vim/v*/lang/de
+%lang(es) %{_datadir}/vim/v*/lang/es
+%lang(fr) %{_datadir}/vim/v*/lang/fr
+%lang(it) %{_datadir}/vim/v*/lang/it
+%lang(ja) %{_datadir}/vim/v*/lang/ja*
+%lang(ko) %{_datadir}/vim/v*/lang/ko
+%lang(pl) %{_datadir}/vim/v*/lang/pl
+%lang(sk) %{_datadir}/vim/v*/lang/sk
+#%lang(tr) %{_datadir}/vim/v*/lang/tr
+%lang(uk) %{_datadir}/vim/v*/lang/uk
+%lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN*
+%lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW
+
+%lang(af) %{_datadir}/vim/v*/lang/menu_af_af*
+%lang(cs) %{_datadir}/vim/v*/lang/menu_cs_cz*
+%lang(de) %{_datadir}/vim/v*/lang/menu_de_de*
+%lang(es) %{_datadir}/vim/v*/lang/menu_es_es*
+%lang(fr) %{_datadir}/vim/v*/lang/menu_fr_fr*
+%lang(hu) %{_datadir}/vim/v*/lang/menu_hu_hu*
+%lang(it) %{_datadir}/vim/v*/lang/menu_it_it*
+%lang(jp) %{_datadir}/vim/v*/lang/menu_ja_jp*
+%lang(ko) %{_datadir}/vim/v*/lang/menu_ko_kr*
+%lang(nl) %{_datadir}/vim/v*/lang/menu_nl_nl*
+%lang(pl) %{_datadir}/vim/v*/lang/menu_pl_pl*
+%lang(sk) %{_datadir}/vim/v*/lang/menu_sk_sk*
+%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
+%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
+
+%{_datadir}/vim/v*/macros
+%{_datadir}/vim/v*/plugin
+%{_datadir}/vim/v*/syntax
+%{_datadir}/vim/v*/tutor
+%{_datadir}/vim/v*/colors
+%{_datadir}/vim/v*/compiler
+%{_datadir}/vim/v*/*.vim
+%{_datadir}/vim/v*/*.ps
+
+%{_mandir}/man1/vim*
+%{_mandir}/man1/rvim.*
+%lang(fi) %{_mandir}/fi/man1/vim*
+%lang(fi) %{_mandir}/fi/man1/rvim.*
+%lang(fr) %{_mandir}/fr/man1/vim*
+%lang(fr) %{_mandir}/fr/man1/rvim.*
+%lang(id) %{_mandir}/id/man1/vim*
+%lang(id) %{_mandir}/id/man1/rvim.*
+%lang(it) %{_mandir}/it/man1/vim*
+%lang(pl) %{_mandir}/pl/man1/vim*
+%lang(pl) %{_mandir}/pl/man1/rvim.*
+
+%if %{!?_without_athena:1}%{?_without_athena:0}
+%files -n gvim-athena
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.athena
+%{_applnkdir}/Development/Editors/gvim-athena.desktop
+%endif
 
-%attr(644,root,man) /usr/man/man1/*
-
-%dir /usr/share/vim
-/usr/share/vim/macros
-
-%dir /usr/share/vim/syntax
-/usr/share/vim/syntax/*.vim
-
-/usr/share/vim/tutor
-/usr/share/vim/bugreport.vim
-/usr/share/vim/filetype.vim
-/usr/share/vim/scripts.vim
-/usr/share/vim/mswin.vim
-/usr/share/vim/ftoff.vim
-/usr/share/vim/doc
-
-%config %verify(not size mtime md5) /usr/share/vim/menu.vim
-%config %verify(not size mtime md5) /usr/share/vim/vimrc
-
-%changelog
-* Thu Feb 04 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [5.4d-2d]
-- symlink /usr/bin/vi -> /bin/vi
-- doc package moved to /usr/share/vim/doc (crazy cpio .. ;)
-
-* Tue Feb  2 1999 Artur Frysiak <wiget@usa.net>
-  [5.4d-1d]
-- upgraded to 5.4d
-- now /usr/share/vim/doc is symlink to /usr/doc/%{name}-rt-%{version}
-- added missingok option to wmconfig files
-
-* Wed Jan 13 1999 Artur Frysiak <wiget@usa.net>
-  [5.4c-1d]
-- upgraded to 5.4c
-- added gtk subpackage
-- using %%{version} makro in Summary tags
-- some chenges in %%build section
-- changed Group to Applications/Editors/Vim
-
-* Sun Dec 27 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [5.3-4d]
-- fixed some errors in rt subpackage. 
-  by Ziemek Borowski <ziembor@mail.ceu.edu.pl>
-- fixed etcdir in vim-ststic subpackage.
-
-* Thu Nov 12 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
-  [5.3-2d]
-- added /usr/share/vim/doc/{help.txt,tags} to rt subpackage (was missing)
-
-* Sun Oct 04 1998 Marcin Korzonek <mkorz@shadow.eu.org>
-  [5.3-1]
-- completely rewritten spec, added 4 subpackages
-
-* Thu Aug 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [5.0-1d]
-- build against glibc-2.1,
-- translation modified for pl,
-- added build-root support,
-- added %changelog,
-- fixed permissions fo ELF binaries.
+%if %{!?_without_motif:1}%{?_without_motif:0}
+%files -n gvim-motif
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.motif
+%{_applnkdir}/Development/Editors/gvim-motif.desktop
+%endif
+
+%if %{!?_without_gtk:1}%{?_without_gtk:0}
+%files -n gvim-gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gtk
+%attr(755,root,root) %{_prefix}/X11R6/bin/rgvim
+%attr(755,root,root) %{_prefix}/X11R6/bin/rgview
+%attr(755,root,root) %verify(not link) %{_prefix}/X11R6/bin/gvim
+%{_applnkdir}/Development/Editors/gvim-gtk.desktop
+%endif
+
+%if %{!?_without_gnome:1}%{?_without_gnome:0}
+%files -n gvim-gnome
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/X11R6/bin/gvim.gnome
+%{_applnkdir}/Development/Editors/gvim-gnome.desktop
+%endif
This page took 0.075588 seconds and 4 git commands to generate.