Hello community, here is the log from the commit of package vim for openSUSE:Factory checked in at 2012-05-07 22:53:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vim (Old) and /work/SRC/openSUSE:Factory/.vim.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "vim", Maintainer is "idonmez@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/vim/vim.changes 2012-03-27 08:59:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.vim.new/vim.changes 2012-05-07 22:53:14.000000000 +0200 @@ -1,0 +2,7 @@ +Wed Apr 25 08:53:49 UTC 2012 - saschpe@suse.de + +- Add a vim-python subpackage that only enables Python interpreter support + (and X11 clibboard, too), for users that don't want the extra dependencies + of vim-enhanced (basically the perl, ruby and tcl base packages) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vim.spec ++++++ --- /var/tmp/diff_new_pack.ypHVLe/_old 2012-05-07 22:53:15.000000000 +0200 +++ /var/tmp/diff_new_pack.ypHVLe/_new 2012-05-07 22:53:15.000000000 +0200 @@ -130,7 +130,6 @@ environment install additionally vim-data. %package data - Summary: Vi IMproved Group: Productivity/Editors/Vi PreReq: %{vim_prereq} @@ -153,7 +152,6 @@ Package vim-data contains the runtime files. %package base - Summary: Vi IMproved Group: Productivity/Editors/Vi PreReq: %{vim_prereq} @@ -177,7 +175,6 @@ want to install the vim-data package. %package enhanced - Summary: A version of the VIM editor which includes recent enhancements Group: Productivity/Editors/Vi PreReq: %{vim_prereq} @@ -198,10 +195,26 @@ install the base package 'vim', for online help, etc. If you need the graphical features of vim, you might want to install package gvim too. -%if 0%{?with_splitted_gvim} +%package python +Summary: A version of the VIM editor which includes recent enhancements +Group: Productivity/Editors/Vi +PreReq: %{vim_prereq} +PreReq: update-alternatives +Provides: vi +Provides: vim_client -%package -n gvim-base +%description python +The vim-python package contains a version of VIM with extra, recently +introduced features like Python and X11 clipboard support, but it has no +graphical user interface. + +Install the vim-python package if you'd like to use these features but don't +want to have the extra dependencies on Perl, Ruby and TCL runtimes. You'll also +need to install the base package 'vim', for online help, etc. If you need the +graphical features of vim, you might want to install package gvim too. +%if 0%{?with_splitted_gvim} +%package -n gvim-base Summary: dummy package for a subpackage only build in the buildservice Group: Productivity/Editors/Vi PreReq: %{vim_prereq} @@ -212,7 +225,6 @@ dummy package for a subpackage only build in the buildservice %package -n gvim-enhanced - Summary: dummy package for a subpackage only build in the buildservice Group: Productivity/Editors/Vi PreReq: %{gvim_prereq} @@ -223,11 +235,9 @@ %description -n gvim-enhanced dummy package for a subpackage only build in the buildservice - %endif %package -n gvim - Summary: A GUI for Vi Group: Productivity/Editors/Vi PreReq: %{gvim_prereq} @@ -305,7 +315,9 @@ --enable-tclinterp \ --with-tclsh=%{_bindir}/tclsh \ --with-python-config-dir=%{py_libdir}/config" - +export PYTHON_OPTIONS="\ + --enable-pythoninterp \ + --with-python-config-dir=%{py_libdir}/config" export GUI_OPTIONS="\ --enable-xim \ --enable-fontset \ @@ -333,6 +345,13 @@ cp src/vim vim-enhanced make distclean # +# build python binary +%configure ${COMMON_OPTIONS} ${PYTHON_OPTIONS} --disable-gui +sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h +%make +cp src/vim vim-python +make distclean +# # build enhanced gvim binary %configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} ${GUI_OPTIONS} sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h @@ -366,6 +385,7 @@ # install the other binaries install -D -m 0755 vim-normal %{buildroot}/bin/vim-normal install -D -m 0755 vim-enhanced %{buildroot}%{_bindir}/vim-enhanced +install -D -m 0755 vim-python %{buildroot}%{_bindir}/vim-python %if 0%{?with_splitted_gvim} install -D -m 0755 gvim-enhanced %{buildroot}%{_bindir}/gvim-enhanced %endif @@ -473,6 +493,10 @@ /usr/sbin/update-alternatives --install \ /bin/vim vim %{_bindir}/vim-enhanced 20 +%post python +/usr/sbin/update-alternatives --install \ + /bin/vim vim %{_bindir}/vim-python 18 + %post -n gvim /usr/sbin/update-alternatives --install \ %{_bindir}/gvim gvim %{_bindir}/gvim-normal 5 @@ -502,6 +526,11 @@ /usr/sbin/update-alternatives --remove vim %{_bindir}/vim-enhanced fi +%preun python +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove vim %{_bindir}/vim-python +fi + %preun -n gvim if [ "$1" = 0 ] ; then /usr/sbin/update-alternatives --remove vim %{_bindir}/gvim @@ -654,6 +683,10 @@ %defattr(-,root,root,-) %{_bindir}/vim-enhanced +%files python +%defattr(-,root,root,-) +%{_bindir}/vim-python + %files -n gvim %defattr(-,root,root,-) %{_bindir}/gvim-normal -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org