Hello community, here is the log from the commit of package vim for openSUSE:Factory checked in at 2011-11-07 16:18:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vim (Old) and /work/SRC/openSUSE:Factory/.vim.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vim", Maintainer is "idon...@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/vim/vim.changes 2011-10-19 14:08:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.vim.new/vim.changes 2011-11-07 16:18:11.000000000 +0100 @@ -1,0 +2,13 @@ +Mon Nov 7 12:59:21 UTC 2011 - idon...@suse.com + +- Move spec skeleton functionality into /etc/vimrc (bnc#720898) + +------------------------------------------------------------------- +Sun Nov 6 03:49:09 UTC 2011 - crrodrig...@opensuse.org + +- vim-enhanced,gvim: Never ever link against static libpython + this happends because %{_libdir}/python$vesion/config is + searched first and picks libpython.a instead of .so ... + + +------------------------------------------------------------------- Old: ---- dot.vimrc New: ---- vim73-no-static-libpython.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vim.spec ++++++ --- /var/tmp/diff_new_pack.4GBGdB/_old 2011-11-07 16:18:18.000000000 +0100 +++ /var/tmp/diff_new_pack.4GBGdB/_new 2011-11-07 16:18:18.000000000 +0100 @@ -88,7 +88,6 @@ Source18: missing-vim-client Source19: gvim.desktop Source20: spec.skeleton -Source21: dot.vimrc Source22: vim.conf Source23: apparmor.vim Source98: %{name}-7.3-patches.tar.bz2 @@ -112,6 +111,7 @@ Patch25: vim-7.2-lzma-support.patch Patch27: %{name}-7.3-disable_gcc_warning_eval_c.patch Patch100: vim-7.1.314-CVE-2009-0316-debian.patch +Patch101: vim73-no-static-libpython.patch %description Vim (Vi IMproved) is an almost compatible version of the UNIX editor @@ -277,6 +277,7 @@ #%patch25 %patch27 -p1 %patch100 -p1 +%patch101 cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE8} %{SOURCE10} . #rename no nb $RPM_BUILD_DIR/vim*/src/po/no.* #rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no* @@ -314,6 +315,10 @@ --enable-gtk2-check \ --with-gtk-prefix=/opt/gnome \ --with-gnome=/opt/gnome" + +pushd src +autoconf +popd # # build small default binary %configure \ @@ -350,10 +355,10 @@ gcc %{optflags} %{SOURCE13} -o vitmp %install -# # create icon directory to have the icon from the tarball installed install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps %makeinstall STRIP=: + # the last installed binary is gvim. preserve it and # fix its symlinks. e* was added here as it doesnt make much sense in # console @@ -361,13 +366,14 @@ for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do ln -s -vf gvim %{buildroot}%{_bindir}/$f done -# + # install the other binaries install -D -m 0755 vim-normal %{buildroot}/bin/vim-normal install -D -m 0755 vim-enhanced %{buildroot}%{_bindir}/vim-enhanced %if 0%{?with_splitted_gvim} install -D -m 0755 gvim-enhanced %{buildroot}%{_bindir}/gvim-enhanced %endif + # compat symlinks # we need a dummy target for /etc/alternatives/vim mkdir -p %{buildroot}%{_sysconfdir}/alternatives @@ -378,21 +384,23 @@ ln -s -f /bin/vim %{buildroot}%{_bindir}/vi ln -s -f vim %{buildroot}%{_bindir}/edit ln -s -f /bin/vim %{buildroot}/bin/ex -# + # man pages ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/vi.1.gz ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/ex.1.gz -# + # vitmp install -m 0755 vitmp %{buildroot}%{_bindir}/vitmp install -m 0644 %{SOURCE14} %{buildroot}%{_mandir}/man1/vitmp.1 install -m 0755 %{SOURCE15} %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132 -# + # make the vim settings more generic ln -s -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current + # additional files install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/vimrc install -D -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/gvimrc + # create site wide runtime directory mkdir -p -m 0755 %{buildroot}%{site_runtimepath}/after mkdir -m 0755 %{buildroot}%{site_runtimepath}/autoload @@ -404,9 +412,9 @@ mkdir -m 0755 %{buildroot}%{site_runtimepath}/after/syntax mkdir -m 0755 %{buildroot}%{_datadir}/vim/current/skeletons mkdir -m 0755 %{buildroot}%{_sysconfdir}/skel + # install spec helper install -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec -install -m 0644 %{SOURCE21} %{buildroot}%{_sysconfdir}/skel/.vimrc # desktop file for gvim install -D -m 0644 %{SOURCE19} %{buildroot}%{_datadir}/applications/gvim.desktop @@ -515,7 +523,6 @@ %files base %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/vimrc -%config(noreplace) %{_sysconfdir}/skel/.vimrc %ghost %{_sysconfdir}/alternatives/vim %dir /usr/lib/tmpfiles.d %config(noreplace) /usr/lib/tmpfiles.d/vim.conf ++++++ spec.skeleton ++++++ --- /var/tmp/diff_new_pack.4GBGdB/_old 2011-11-07 16:18:18.000000000 +0100 +++ /var/tmp/diff_new_pack.4GBGdB/_new 2011-11-07 16:18:18.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) specCURRENT_YEAR SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,8 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: specRPM_CREATION_NAME Version: Release: @@ -43,9 +41,6 @@ %install %make_install -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - %post %postun ++++++ suse.vimrc ++++++ --- /var/tmp/diff_new_pack.4GBGdB/_old 2011-11-07 16:18:18.000000000 +0100 +++ /var/tmp/diff_new_pack.4GBGdB/_new 2011-11-07 16:18:18.000000000 +0100 @@ -2,9 +2,42 @@ " author: Klaus Franken <k...@suse.de> " author: Werner Fink <wer...@suse.de> " author: Florian La Roche <flor...@suse.de> -" version: 00/01/20 +" version: 06/11/2011 " commented lines start with `"' +function! SKEL_spec() + 0r /usr/share/vim/current/skeletons/skeleton.spec + language time en_US + if $USER != '' + let login = $USER + elseif $LOGNAME != '' + let login = $LOGNAME + else + let login = 'unknown' + endif + let newline = stridx(login, "\n") + if newline != -1 + let login = strpart(login, 0, newline) + endif + if $HOSTNAME != '' + let hostname = $HOSTNAME + else + let hostname = system('hostname -f') + if v:shell_error + let hostname = 'localhost' + endif + endif + let newline = stridx(hostname, "\n") + if newline != -1 + let hostname = strpart(hostname, 0, newline) + endif + exe "%s/specCURRENT_YEAR/" . strftime("%Y") . "/ge" + exe "%s/specRPM_CREATION_DATE/" . strftime("%a\ %b\ %d\ %Y") . "/ge" + exe "%s/specRPM_CREATION_AUTHOR_MAIL/" . login . "@" . hostname . "/ge" + exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge" + setf spec +endfunction + " enable syntax highlighting syntax on @@ -248,5 +281,8 @@ " that it potentially can open for malicious users to do harmful things. set nomodeline +" Skeleton for spec files +autocmd BufNewFile *.spec call SKEL_spec() + " get easier to use and more user friendly vim defaults " /etc/vimrc ends here ++++++ vim73-no-static-libpython.patch ++++++ --- src/configure.in.orig +++ src/configure.in @@ -881,7 +881,7 @@ eof if test "${vi_cv_var_python_version}" = "1.4"; then vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" else - vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" + vi_cv_path_python_plibs="-lpython${vi_cv_var_python_version}" fi vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" dnl remove -ltermcap, it can conflict with an earlier -lncurses -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org