From 926438cbde284daeb6b64e94fccf5da7a70fe9f6 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 9 Feb 2020 17:25:08 +0100 Subject: [PATCH] upgrading package: gdb 8.3.1 -> 9.1 --- gdb/gdb.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gdb/gdb.spec b/gdb/gdb.spec index b08626c358..9b3ddff126 100644 --- a/gdb/gdb.spec +++ b/gdb/gdb.spec @@ -22,8 +22,8 @@ ## # package version -%define V_tarball 8.3.1 -%define V_subdir 8.3.1 +%define V_tarball 9.1 +%define V_subdir 9.1 # package information Name: gdb @@ -36,7 +36,7 @@ Class: BASE Group: Debugging License: GPL Version: %{V_tarball} -Release: 20191227 +Release: 20200209 # list of sources Source0: http://ftp.gnu.org/gnu/gdb/gdb-%{V_tarball}.tar.gz @@ -68,13 +68,15 @@ PreReq: ncurses, libiconv %{l_shtool} subst \ -e 's;-Werror;;' \ `find . -type f -name configure -print` + mkdir build + cd build CC="%{l_cc} %{l_ldflags}" \ CFLAGS="%{l_cflags -O} %{l_cppflags ncurses .}" \ CPPFLAGS="%{l_cppflags ncurses .}" \ LDFLAGS="%{l_ldflags}" \ LIBS="%{l_ldflags} -liconv" \ MAKEINFO="true" \ - ./configure \ + ../configure \ --prefix=%{l_prefix} \ --mandir=%{l_prefix}/man \ --infodir=%{l_prefix}/info \ @@ -85,7 +87,9 @@ PreReq: ncurses, libiconv %{l_make} %{l_mflags -O} %install - %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + ( cd build + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + ) || exit $? rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib rm -rf $RPM_BUILD_ROOT%{l_prefix}/include rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir