Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37587392
en ru br
ALT Linux repos
S:13.2.0.43.854f46b6377-alt2
5.0: 6.6-alt3
4.1: 6.6-alt3
4.0: 6.6-alt2
3.0: 6.3-alt2

Group :: Development/Debuggers
RPM: gdb

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gdb
Version: 6.3
Release: alt2

Summary: A GNU source-level debugger for C, C++ and other languages
License: GPL
Group: Development/Debuggers
Url: http://www.gnu.org/software/gdb/

Source: ftp://sources.redhat.com/pub/gdb/releases/%name-%version.tar.bz2
Source1: %name.menu

Patch1: gdb-6.3-deb-thread-db.patch
Patch2: gdb-6.3-deb-tracepoint.patch
Patch3: gdb-6.3-deb-cp_pass_by_reference.patch
Patch4: gdb-6.3-deb-tracefork.patch
Patch5: gdb-6.3-deb-bfd_close.patch
Patch6: gdb-6.3-rh-inheritance.patch
Patch7: gdb-6.3-rh-gdbtypes.patch

Patch11: gdb-6.3-cvs-20050526-bfd.patch
Patch12: gdb-6.3-gentoo-alt-gdbinit.patch

Patch21: gdb-6.3-mdk-alt-makefile-sim.patch
Patch22: gdb-6.3-owl-texinfo.patch
Patch23: gdb-6.3-alt-readline.patch

Requires(post): %install_info
Requires(preun): %uninstall_info

%def_enable tui

# libbfd-devel libiberty-devel

BuildPreReq: flex libreadline-devel %{?_enable_tui:libncurses-devel}

%description
GDB is a full featured, command driven debugger.  GDB allows you to
trace the execution of programs and examine their internal state at
any time.  The debugger is most effective when used together with a
supported compiler, such as those from the GNU Compiler Collection.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

%patch11 -p1
%patch12 -p1

%patch21 -p1
%patch22 -p1
%patch23 -p1

find -type f -name \*.orig -delete -print

%build
%__mv readline/doc readline-doc

# We don't need these.

%__rm -rf readline dejagnu tcl expect gdb/gdbserver
%__rm gdb/doc/*.info*

bzip2 -9fk %name/{CONTRIBUTE,MAINTAINERS,NEWS,README,TODO}

cat >%name/version.in <<__EOF__
%version-%release (%distribution)
__EOF__

for f in */configure.in; do
pushd "${f%/*}"
[ configure.in -nt configure ] && autoconf
popd
done
for f in */Makefile.am; do
pushd "${f%/*}"
[ Makefile.am -nt Makefile.in ] && automake
popd
done

%define buildtarget build-%_target
%__rm -rf %buildtarget
mkdir %buildtarget
pushd %buildtarget

%define _configure_script ../configure
export \
ac_cv_have_x=${ac_cv_have_x='have_x=yes ac_x_includes=%_x11includedir ac_x_libraries=%_x11libdir'} \
%{?!_enable_tui:ac_cv_search_tgetent=-lc} \
#
%configure \
--with-separate-debug-dir=%_libdir/debug \
%subst_enable tui \
#

%make_build
make info

popd #%buildtarget

%install
%makeinstall -C %buildtarget INSTALL_DATA='$(INSTALL) -D -m644'

# Install the gcore script in %_bindir/

%__install -p -m755 %name/gdb_gcore.sh $RPM_BUILD_ROOT%_bindir/gcore

# Install menu.

%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_menudir/%name

# This is not needed.

%{?_enable_tui:%__rm $RPM_BUILD_ROOT%_bindir/gdbtui}

# These are part of binutils

%__rm $RPM_BUILD_ROOT%_infodir/{bfd,configure,standard}*

%post
%install_info {gdb,gdbint,stabs}.info
%update_menus

%preun
%uninstall_info {gdb,gdbint,stabs}.info

%postun
%clean_menus

%files
%_bindir/*
%_mandir/man?/*
%_infodir/[a-ln-z]*.info*
%_menudir/*
%doc %name/{CONTRIBUTE,MAINTAINERS,NEWS,README,TODO}.bz2

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin