Browse Source

upgrading package: gdb 8.3.1 -> 9.1

master
parent
commit
926438cbde
  1. 14
      gdb/gdb.spec

14
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

Loading…
Cancel
Save