Hello community, here is the log from the commit of package gdb for openSUSE:Factory checked in at 2017-11-14 14:07:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gdb (Old) and /work/SRC/openSUSE:Factory/.gdb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gdb" Tue Nov 14 14:07:14 2017 rev:117 rq:539939 version:8.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gdb/gdb.changes 2017-10-10 11:34:57.360619683 +0200 +++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2017-11-14 14:07:16.657381926 +0100 @@ -1,0 +2,10 @@ +Wed Oct 25 12:14:54 UTC 2017 - jmate...@suse.com + +- switch to Python 3 for Tumbleweed 1320 and up + +------------------------------------------------------------------- +Mon Oct 9 12:43:07 UTC 2017 - m...@suse.com + +- Remove %clean section. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.IsPNcE/_old 2017-11-14 14:07:19.549276463 +0100 +++ /var/tmp/diff_new_pack.IsPNcE/_new 2017-11-14 14:07:19.553276317 +0100 @@ -50,6 +50,13 @@ %global have_inproctrace 1 %endif # %{ix86} x86_64 +# Choose python version +%if 0%{?suse_version} >= 1320 +%define python python3 +%else +%define python python +%endif + # GDB patches have the format `gdb-<version>-bz<red-hat-bz-#>-<desc>.patch'. # They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb). @@ -303,9 +310,9 @@ BuildRequires: zlib-devel %if 0%{!?_without_python:1} %if 0%{suse_version} > 1000 -Requires: python-base +Requires: %{python}-base %endif -BuildRequires: python-devel +BuildRequires: %{python}-devel %endif # 0%{!?_without_python:1} %global have_libipt 0 @@ -754,7 +761,7 @@ --without-libexpat-prefix \ --enable-tui \ %if 0%{!?_without_python:1} - --with-python \ + --with-python=%{_bindir}/%{python} \ %else --without-python \ %endif @@ -988,7 +995,7 @@ cp -p $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb-gdb.py $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}/ for pyo in "" "-O";do # RHEL-5: AttributeError: 'module' object has no attribute 'compile_file' - python $pyo -c 'import compileall, re, sys; sys.exit (not compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, "'"/usr/lib/debug%{_bindir}"'"))' + %{python} $pyo -c 'import compileall, re, sys; sys.exit (not compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, "'"/usr/lib/debug%{_bindir}"'"))' done %endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1} @@ -1073,9 +1080,6 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir -%clean -rm -rf $RPM_BUILD_ROOT - %post # This step is part of the installation of the RPM. Not to be confused # with the 'make install ' of the build (rpmbuild) process.