Hello community,

here is the log from the commit of package vim for openSUSE:Factory checked in 
at 2018-01-19 11:49:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vim (Old)
 and      /work/SRC/openSUSE:Factory/.vim.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vim"

Fri Jan 19 11:49:47 2018 rev:201 rq:566638 version:8.0.1428

Changes:
--------
--- /work/SRC/openSUSE:Factory/vim/vim.changes  2018-01-16 09:32:34.541193157 
+0100
+++ /work/SRC/openSUSE:Factory/.vim.new/vim.changes     2018-01-19 
11:49:48.965245977 +0100
@@ -1,0 +2,8 @@
+Wed Jan 17 11:18:07 UTC 2018 - tchva...@suse.com
+
+- Sort with spec-cleaner
+- Add conditional to build with python2 in order to build with py3
+  only enviroment
+- Convert dependencies to pkgconfig style
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vim.spec ++++++
--- /var/tmp/diff_new_pack.oDHCG6/_old  2018-01-19 11:49:50.969151506 +0100
+++ /var/tmp/diff_new_pack.oDHCG6/_new  2018-01-19 11:49:50.969151506 +0100
@@ -22,6 +22,7 @@
 %define VIM_SUBDIR vim80
 %define site_runtimepath %{_datadir}/vim/site
 %define make make VIMRCLOC=%{_sysconfdir} 
VIMRUNTIMEDIR=%{_datadir}/vim/current MAKE="make -e" %{?_smp_mflags}
+%bcond_without python2
 Name:           vim
 Version:        %{pkg_version}.%{patchlevel_compact}
 Release:        0
@@ -65,24 +66,26 @@
 BuildRequires:  fdupes
 BuildRequires:  gettext-devel
 BuildRequires:  gpm-devel
-BuildRequires:  gtk3-devel
 BuildRequires:  krb5-mini
 BuildRequires:  libacl-devel
-BuildRequires:  lua-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  perl
 BuildRequires:  pkgconfig
+%if %{with python2}
 BuildRequires:  python2-devel
-BuildRequires:  python3-devel
+%endif
 # Needed to convert svg to png
 BuildRequires:  rsvg-view
 BuildRequires:  ruby-devel
 BuildRequires:  update-desktop-files
-PreReq:         fileutils
-PreReq:         sh-utils
+BuildRequires:  pkgconfig(gtk+-3.0)
+BuildRequires:  pkgconfig(lua)
+BuildRequires:  pkgconfig(python3)
+BuildRequires:  pkgconfig(xt)
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Recommends:     vim-data = %{version}-%{release}
+Conflicts:      vim-base < 8.0
 Provides:       vi
 Provides:       vim-base = %{version}-%{release}
 Provides:       vim-enhanced = %{version}-%{release}
@@ -91,12 +94,7 @@
 Obsoletes:      vim-enhanced < %{version}-%{release}
 Obsoletes:      vim-python < %{version}-%{release}
 Provides:       vim_client
-Conflicts:      vim-base < 8.0
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{?libperl_requires}
-%if 0%{?suse_version} > 1200
-BuildRequires:  pkgconfig(xt)
-%endif
 
 %description
 Vim (Vi IMproved) is an almost compatible version of the UNIX editor
@@ -123,6 +121,7 @@
 Requires:       vim-data = %{version}-%{release}
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+Conflicts:      gvim < 8.0
 Provides:       gvim-base = %{version}-%{release}
 Provides:       gvim-enhanced = %{version}-%{release}
 Obsoletes:      gvim-base < %{version}-%{release}
@@ -130,7 +129,6 @@
 Provides:       gvim_client
 Provides:       vi
 Provides:       vim_client
-Conflicts:      gvim < 8.0
 
 %description -n gvim
 Package gvim contains the largest set of features of vim, which is
@@ -189,10 +187,15 @@
     --with-global-runtime=%{site_runtimepath} \
     --enable-luainterp=dynamic \
     --enable-perlinterp=yes \
-    --enable-pythoninterp=dynamic \
     --enable-python3interp=dynamic \
     --enable-rubyinterp=dynamic"
 
+%if %{with python2}
+COMMON_OPTIONS="${COMMON_OPTIONS} --enable-pythoninterp=yes"
+%else
+COMMON_OPTIONS="${COMMON_OPTIONS} --enable-pythoninterp=no"
+%endif
+
 export GUI_OPTIONS="\
     --disable-icon-cache-update \
     --enable-xim \
@@ -210,7 +213,7 @@
 cp src/vim vim-nox11
 
 # build gvim
-make distclean
+make %{?_smp_mflags} distclean
 %configure ${COMMON_OPTIONS} ${GUI_OPTIONS}
 sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
 make %{?_smp_mflags}
@@ -220,7 +223,7 @@
 gcc %{optflags} %{SOURCE13} -o vitmp
 
 %install
-%makeinstall STRIP=:
+%make_install STRIP=:
 # create icon directory to have the icons installed and convert them to all 
hicolor expected sizes.
 for size in %{_datadir}/icons/hicolor/*[0-9]x[0-9]*; do
   SIZE=$(echo $size | awk -Fx {'print $2}')
@@ -342,10 +345,10 @@
 trap "printf '\e[r'" EXIT
 # Look for "TEST FAILURE" in the build log
 %ifarch ppc ppc64 ppc64le
-LC_ALL=en_US.UTF-8 make test || { echo "Ignore transient errors for PowerPC. 
boo#1072651"; }
+LC_ALL=en_US.UTF-8 make -j1 test || { echo "Ignore transient errors for 
PowerPC. boo#1072651"; }
 %else
-make test
-LC_ALL=en_US.UTF-8 make test
+make -j1 test
+LC_ALL=en_US.UTF-8 make -j1 test
 %endif
 
 %post
@@ -367,7 +370,6 @@
 %icon_theme_cache_postun
 
 %files
-%defattr(-,root,root,-)
 %config(noreplace) %{_sysconfdir}/vimrc
 %ghost %{_sysconfdir}/alternatives/vim
 %{_bindir}/vim-nox11
@@ -457,7 +459,6 @@
 %{_datadir}/vim/%{VIM_SUBDIR}/tools/missing-vim-client
 
 %files data
-%defattr(-,root,root,-)
 # data files
 %{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
 %{_datadir}/vim/%{VIM_SUBDIR}/colors/*
@@ -504,7 +505,6 @@
 %{_datadir}/vim/%{VIM_SUBDIR}/vimrc_example.vim
 
 %files -n gvim
-%defattr(-,root,root,-)
 %doc runtime/doc/gui_x11.txt
 %ghost %config(missingok) %{_sysconfdir}/gvimrc
 %ghost %{_sysconfdir}/alternatives/vim



Reply via email to