]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim.spec
This commit was manufactured by cvs2git to create tag 'auto-ac-vim-
[packages/vim.git] / vim.spec
index 27fdbbb66ba46eb19393cb6e5d1ff21ecb06c9ab..492acda7fa78585d089d8deb92a83ecf0384fda4 100644 (file)
--- a/vim.spec
+++ b/vim.spec
@@ -1,20 +1,8 @@
 # TODO:
-# - some nice icon
 # - create vim-full (better name, anybody?) or/and other packages
 #   for scripting languages support
-# - unpackaged files:
-%if 0
-   /usr/share/man/fr/man1/eview.1
-   /usr/share/man/it/man1/eview.1
-   /usr/share/man/man1/eview.1
-   /usr/share/man/pl/man1/eview.1
-   /usr/share/man/ru/man1/eview.1
-   /usr/share/vim/vim71/lang/menu_sl_si.cp1250.vim
-   /usr/share/vim/vim71/lang/menu_sl_si.latin2.vim
-   /usr/share/vim/vim71/lang/menu_sl_si.utf-8.vim
-   /usr/share/vim/vim71/lang/zh_CN.UTF-8/LC_MESSAGES/vim.mo
-   /usr/share/vim/vim71/lang/zh_TW.UTF-8/LC_MESSAGES/vim.mo
-%endif
+# - warning: Installed (but unpackaged) file(s) found:
+#   /usr/bin/gview
 #
 # Conditional build:
 %bcond_without static          # don't build static version
 %bcond_without motif           # don't build Motif-based gvim
 %bcond_without gtk             # don't build GTK+-based gvim support
 %bcond_without gnome           # don't build GNOME-based gvim support
-%bcond_with    perl            # with Perl interp
-%bcond_with    python          # with Python interp
+%bcond_without perl            # without Perl interp
+%bcond_without python          # without Python interp
 %bcond_with    ruby            # with Ruby interp
 %bcond_with    tcl             # with Tcl interp
 %bcond_without selinux         # without selinux support
 %bcond_without home_etc        # without home_etc support
 #
-%define                _ver            7.1
-%define                _patchlevel     116
-%define                _rel            2
+%define                ver             7.1
+%define                patchlevel      244
 
 # cflags get changed while configuring
 %undefine      configure_cache
@@ -46,16 +33,16 @@ Summary(ru.UTF-8):  Visual editor IMproved - Единственно Правил
 Summary(tr.UTF-8):     Gelişmiş bir vi sürümü
 Summary(uk.UTF-8):     Visual editor IMproved - Єдино Вірний Редактор :)
 Name:          vim
-Version:       %{_ver}.%{_patchlevel}
-Release:       %{_rel}
+Version:       %{ver}.%{patchlevel}
+Release:       1
 Epoch:         4
 License:       Charityware
 Group:         Applications/Editors/Vim
-Source0:       ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2
+Source0:       ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
 # Source0-md5: 44c6b4914f38d6f9aa959640b89da329
-Source1:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-lang.tar.gz
+Source1:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-lang.tar.gz
 # Source1-md5: 144aa049ba70621acf4247f0459f3ee7
-Source2:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-extra.tar.gz
+Source2:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-extra.tar.gz
 # Source2-md5: 605cc7ae31bcc9d7864bb0bb6025f55d
 Source3:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
@@ -68,11 +55,9 @@ Source13:    g%{name}-gnome.desktop
 Source14:      %{name}.desktop
 # http://www.vim.org/scripts/script.php?script_id=415 (1.15)
 Source15:      zenburn.%{name}
-Source16:      spec.%{name}
 # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.3)
 Source17:      javascript.%{name}
 Source18:      nagios.%{name}
-Source19:      %{name}-ftplugin-spec.vim
 Patch0:                %{name}-sysconfdir.patch
 Patch1:                %{name}-visual.patch
 Patch2:                %{name}-paths.patch
@@ -102,8 +87,9 @@ Patch104:    %{name}-home_etc.patch
 Patch105:      %{name}-selinux.patch
 Patch106:      %{name}-autopaste.patch
 Patch107:      %{name}-ft-cron.patch
-%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{_patchlevel}
+%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{patchlevel}
 URL:           http://www.vim.org/
+%{?with_athena:BuildRequires:  XFree86-devel}
 BuildRequires: acl-devel
 BuildRequires: autoconf
 BuildRequires: gettext-devel
@@ -115,10 +101,9 @@ BuildRequires:     ncurses-devel
 %{?with_motif:BuildRequires:   openmotif-devel}
 %{?with_perl:BuildRequires:    perl-devel}
 %{?with_python:BuildRequires:  python-devel >= 2.5}
-BuildRequires: rpmbuild(macros) >= 1.351
+BuildRequires: rpmbuild(macros) >= 1.426
 %{?with_ruby:BuildRequires:    ruby-devel}
 %{?with_tcl:BuildRequires:     tcl-devel}
-%{?with_athena:BuildRequires:  xorg-lib-libXaw-devel}
 Obsoletes:     kvim
 %if %{with static}
 BuildRequires: acl-static
@@ -317,6 +302,8 @@ Summary(sv.UTF-8):  De gemensamma filerna som behövs av alla versioner av redige
 Summary(uk.UTF-8):     Файли, потрібні для будь-якої версії редактору vim
 Summary(zh_CN.UTF-8):  任何版本的 VIM 编辑器所需的公用文件。
 Group:         Applications/Editors/Vim
+Requires:      vim-plugin-securemodelines
+Requires:      vim-syntax-spec
 # mktemp is for vimtutor
 Requires:      mktemp
 Requires:      vi-editor
@@ -514,7 +501,7 @@ GNOME, что позволяет запускать VIM как приложен
 %setup -q -n %{name}71 -b1 -b2
 
 # official patches
-%patchset_patch 1 %{_patchlevel}
+%patchset_patch 1 %{patchlevel}
 
 %patch0 -p1
 %patch1 -p1
@@ -555,10 +542,8 @@ GNOME, что позволяет запускать VIM как приложен
 
 install %{SOURCE14} runtime/indent
 install %{SOURCE15} runtime/colors
-install %{SOURCE16} runtime/syntax
 install %{SOURCE17} runtime/syntax
 install %{SOURCE18} runtime/syntax
-install %{SOURCE19} runtime/ftplugin/spec.vim
 
 %build
 cd src
@@ -815,6 +800,16 @@ unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4}
 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
 
+# separate package
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/vim71/{ftplugin,syntax}/spec.vim
+
+# no autodeps
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/doc/vim2html.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/shtags.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/pltags.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_perl.pl
+chmod a-x $RPM_BUILD_ROOT%{_datadir}/vim/vim71/tools/efm_filter.pl
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -859,25 +854,25 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/rvim
 %attr(755,root,root) %{_bindir}/vim
 %attr(755,root,root) %{_bindir}/vimdiff
-#%{_mandir}/man1/eview.1*
+%{_mandir}/man1/eview.1*
 %{_mandir}/man1/evim.1*
 %{_mandir}/man1/rvim.1*
 %{_mandir}/man1/vimdiff.1*
 %lang(fi) %{_mandir}/fi/man1/rvim.1*
-#%lang(fr) %{_mandir}/fr/man1/eview.1*
+%lang(fr) %{_mandir}/fr/man1/eview.1*
 %lang(fr) %{_mandir}/fr/man1/evim.1*
 %lang(fr) %{_mandir}/fr/man1/rvim.1*
 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
 %lang(id) %{_mandir}/id/man1/rvim.1*
-#%lang(it) %{_mandir}/it/man1/eview.1*
+%lang(it) %{_mandir}/it/man1/eview.1*
 %lang(it) %{_mandir}/it/man1/evim.1*
 %lang(it) %{_mandir}/it/man1/rvim.1*
 %lang(it) %{_mandir}/it/man1/vimdiff.1*
-#%lang(pl) %{_mandir}/pl/man1/eview.1*
+%lang(pl) %{_mandir}/pl/man1/eview.1*
 %lang(pl) %{_mandir}/pl/man1/evim.1*
 %lang(pl) %{_mandir}/pl/man1/rvim.1*
 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
-#%lang(ru) %{_mandir}/ru/man1/eview.1*
+%lang(ru) %{_mandir}/ru/man1/eview.1*
 %lang(ru) %{_mandir}/ru/man1/evim.1*
 %lang(ru) %{_mandir}/ru/man1/rvim.1*
 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
@@ -989,6 +984,7 @@ rm -rf $RPM_BUILD_ROOT
 %lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
 %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
 %lang(sk) %{_datadir}/vim/v*/lang/sk/
+%lang(sl) %{_datadir}/vim/v*/lang/menu_sl_si*
 %lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
 %lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
 %lang(sv) %{_datadir}/vim/v*/lang/sv/
@@ -1001,11 +997,13 @@ rm -rf $RPM_BUILD_ROOT
 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
 %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
 %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
+%lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN.UTF-8/
 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
 %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
 %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
+%lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW.UTF-8/
 
 %dir %{_datadir}/vim/v*/spell
 %{_datadir}/vim/v*/spell/cleanadd.vim
This page took 0.044515 seconds and 4 git commands to generate.