]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim.spec
- obsolete - fixes already in official patches
[packages/vim.git] / vim.spec
index 4350e929fa2297e07011c1e99cf40269e7512c05..e01150064f15b7e63e7fe0b2aa246cb5f59afdde 100644 (file)
--- a/vim.spec
+++ b/vim.spec
@@ -1,10 +1,11 @@
 #
 # Conditional build:
 # _without_static      - without static version
-# _without_athena      - without Athena Widgets-based gvim
+# _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)
 #
 Summary:       Vi IMproved - a Vi clone
 Summary(de):   VIsual editor iMproved
@@ -12,28 +13,30 @@ Summary(fr):        editeur VIM : VIsual editor iMproved
 Summary(pl):   Vi IMproved - klon edytora Vi
 Summary(tr):   Geliþmiþ bir vi sürümü
 Name:          vim
-Version:       6.0ai
-Release:       3
-Epoch:         2
+Version:       6.0
+Release:       1
+Epoch:         4
 License:       Charityware
 Group:         Applications/Editors/Vim
 Group(de):     Applikationen/Editors/Vim
 Group(pl):     Aplikacje/Edytory/Vim
-Source0:       ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-src.tar.gz
-Source1:       ftp://ftp.vim.org/pub/editors/vim/unreleased/unix/%{name}-%{version}-rt.tar.gz
-#Source2:      ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-extra.tar.gz
-Source3:       ftp://ftp.vim.org/pub/editors/vim/unreleased/extra/%{name}-%{version}-lang.tar.gz
-Source4:       g%{name}-athena.desktop
-Source5:       g%{name}-motif.desktop
-Source6:       g%{name}-gtk.desktop
-Source7:       g%{name}-gnome.desktop
+Source0:       ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}.tar.bz2
+Source1:       ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-lang.tar.gz
+#Source2:      ftp://ftp.vim.org/pub/editors/vim/extra/%{name}-%{version}-extra.tar.gz
+Source3:       g%{name}-athena.desktop
+Source4:       g%{name}-motif.desktop
+Source5:       g%{name}-gtk.desktop
+Source6:       g%{name}-gnome.desktop
 Patch0:                %{name}-sysconfdir.patch
 Patch1:                %{name}-visual.patch
-Patch2:                %{name}-lilo.patch
-Patch3:                %{name}-phphighlight.patch
-Patch4:                %{name}-paths.patch
-#Patch5:               %{name}-speed_t.patch
+Patch2:                %{name}-phphighlight.patch
+Patch3:                %{name}-paths.patch
+Patch4:                %{name}-ispell.patch
+Patch5:                %{name}-pl.patch
+Patch6:                %{name}-shsyntax.patch
 URL:           http://www.vim.org/
+BuildRequires: autoconf
+BuildRequires: gettext-devel
 BuildRequires: gpm-devel
 BuildRequires: ncurses-devel
 %{!?_without_athena:BuildRequires:     Xaw3d-devel}
@@ -75,6 +78,27 @@ i wiele innych.
 Standart vi metin düzenleyicisinin geliþmiþ hali; daha fazla komut,
 birden fazla pencere desteði ve blok iþaretleme yetenekleri içerir.
 
+%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(de):     Applikationen/Editors/Vim
+Group(pl):     Aplikacje/Edytory/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:       Staticly linked Vim
 Summary(pl):   Statycznie zlinkowany Vim
@@ -91,7 +115,7 @@ 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 skompilowana statycznie
+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.
@@ -108,13 +132,13 @@ 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
+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 dla edytora vim. Je¿eli chcesz korzystaæ z
-zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.
+strony podrêcznika dla edytora Vim. Je¿eli chcesz korzystaæ z
+zaawansowanych mo¿liwo¶ci Vima, powiniene¶ zainstalowaæ ten pakiet.
 
 %package -n gvim-athena
 Summary:       Vim for X Window built with Athena
@@ -164,11 +188,11 @@ Obsoletes:        vim-X11
 
 %description -n gvim-gtk
 The classic Unix text editor now also under X Window System! This
-version is build with GTK and GNOME.
+version is build with GTK.
 
 %description -n gvim-gtk -l pl
-Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
-biblioteki GTK oraz GNOME.
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+biblioteki GTK.
 
 %package -n gvim-gnome
 Summary:       Vim for X Window built with gnome
@@ -185,20 +209,22 @@ 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
-biblioteki GNOME.
+Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem
+bibliotek GNOME.
 
 %prep
-%setup -q -b 1 -b 3 -n %{name}%(echo %{version} | sed -e "s#\.##g")
+%setup -q -b1 -n %{name}%(echo %{version} | sed -e "s#\.##g")
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
-#%patch5 -p1
+%{?_with_ispell:%patch4 -p1}
+%patch5 -p1
+%patch6 -p1
 
 %build
 cd src
+autoconf
 %configure \
        --disable-gui \
        --without-x \
@@ -216,8 +242,11 @@ cd src
 %{__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 \
@@ -235,11 +264,9 @@ mv -f vim vim.ncurses
 mv -f vim vim.static
 %endif
 
-%{__make} xxd/xxd
-mv -f xxd/xxd xxd.static
-
 %if %{!?_without_athena:1}%{?_without_athena:0}
 %{__make} distclean
+LDFLAGS="%{rpmldflags}"
 %configure \
        --with-features=huge \
        --enable-gui=athena \
@@ -326,7 +353,7 @@ rm $RPM_BUILD_ROOT%{_bindir}/*
 %{?_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.static                         $RPM_BUILD_ROOT/bin/xxd
+install src/xxd/xxd                            $RPM_BUILD_ROOT%{_bindir}/xxd
 install src/vimtutor                           $RPM_BUILD_ROOT%{_bindir}/vimtutor
 
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
@@ -360,10 +387,10 @@ ln -sf vi  $RPM_BUILD_ROOT/bin/rview
 %{!?_without_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gview}
 %{!?_without_gtk:ln -sf gvim                   $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/rgview}
 
-%{!?_without_athena:install %{SOURCE4}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
-%{!?_without_motif: install %{SOURCE5}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
-%{!?_without_gtk:   install %{SOURCE6}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
-%{!?_without_gnome: install %{SOURCE7}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_athena:install %{SOURCE3}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_motif: install %{SOURCE4}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_gtk:   install %{SOURCE5}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
+%{!?_without_gnome: install %{SOURCE6}         $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -373,13 +400,17 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/vim
 %attr(755,root,root) %{_bindir}/rvim
 
+%files -n xxd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/xxd
+%{_mandir}/man1/xxd.1*
+
 %files static
 %defattr(644,root,root,755)
 %attr(755,root,root) /bin/*
 
 %{_mandir}/man1/vi.1*
 %{_mandir}/man1/ex.1*
-%{_mandir}/man1/xxd.1*
 %{_mandir}/man1/view.1*
 %{_mandir}/man1/rview.1*
 
@@ -398,27 +429,46 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/vim/v*/keymap
 %dir %{_datadir}/vim/v*/lang
 %{_datadir}/vim/v*/lang/README*
-%lang(af) %{_datadir}/vim/v*/lang/*af*
-%lang(cs) %{_datadir}/vim/v*/lang/*cs*
-%lang(de) %{_datadir}/vim/v*/lang/*de*
+
+%lang(af) %{_datadir}/vim/v*/lang/af
+%lang(de) %{_datadir}/vim/v*/lang/de
 %lang(es) %{_datadir}/vim/v*/lang/es
-%lang(es) %{_datadir}/vim/v*/lang/*es_es*
-%lang(es) %{_datadir}/vim/v*/lang/*spanish*
-%lang(fr) %{_datadir}/vim/v*/lang/*fr*
-%lang(hu) %{_datadir}/vim/v*/lang/*hu*
-%lang(nl) %{_datadir}/vim/v*/lang/*nl*
-%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(zh_TW) %{_datadir}/vim/v*/lang/*zh*
+%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/vim*
 %{_mandir}/man1/rvim.*
 
 %if %{!?_without_athena:1}%{?_without_athena:0}
This page took 0.051546 seconds and 4 git commands to generate.