###############################################################################
name = gdb
-version = 7.3.1
+version = 13.2
release = 1
groups = Development/Debuggers
-url = http://gnu.org/software/gdb/
+url = https://gnu.org/software/gdb/
license = GPLv3+
summary = A GNU source-level debugger for C, C++, Java and other languages.
description
- GDB, the GNU debugger, allows you to debug programs written in C, C++, \
- Java, and other languages, by executing them in a controlled fashion \
+ GDB, the GNU debugger, allows you to debug programs written in C, C++,
+ Java, and other languages, by executing them in a controlled fashion
and printing their data.
end
-source_dl = ftp://ftp.gnu.org/gnu/gdb/
-sources = %{thisapp}.tar.gz
+source_dl = https://ftp.gnu.org/gnu/gdb/
+sources = %{thisapp}.tar.xz
build
requires
+ bison
+ elfutils-devel
+ expat-devel
+ gmp-devel
+ mpfr-devel
ncurses-devel
+ python3-devel
readline-devel
+ texinfo
+ xz-devel
zlib-devel
end
configure_options += \
- --mandir=/usr/share/man \
- --disable-werror
+ --with-pkgversion="%{DISTRO_NAME} gdb %{thisver}" \
+ --with-bugurl="https://bugzilla.ipfire.org/" \
+ --with-system-gdbinit=/etc/gdbinit \
+ --with-python=%{python3} \
+ --enable-64-bit-bfd \
+ --enable-gdb-build-warnings=,-Wno-unused \
+ --with-separate-debug-dir=/usr/lib/debug \
+ --enable-tui \
+ --disable-binutils \
+ --disable-etc \
+ --disable-gas \
+ --disable-gold \
+ --disable-gprof \
+ --disable-ld \
+ --disable-sim \
+ --disable-rpath \
+ --with-system-readline \
+ --with-system-zlib \
+ --disable-werror \
+ --with-expat \
+ --with-python=%{python3} \
+ --with-lzma \
+ --with-debuginfod \
+ --without-libexpat-prefix \
+ %{DISTRO_MACHINE}
+
+ install_cmds
+ # Remove locale data and headers which is provided by binutils.
+ rm -vrf %{BUILDROOT}%{datadir}/locale/
+ rm -vrf %{BUILDROOT}%{includedir}/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
+ end
end
packages
package %{name}
- requires = python
- end
-
+
package %{name}-devel
template DEVEL
end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
end