Summary: A GNU source-level debugger for C, C++, Java and other languages. Name: gdb Version: 7.2 Release: 1 License: GPL Group: Development/Debuggers Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2.sig URL: http://gnu.org/software/gdb/ Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gcc, make, gettext BuildRequires: expat-devel >= 2.0.0, python-devel >= 2.6.2, zlib-devel Requires: info, gettext, expat >= 2.0.0, python-libs >= 2.6.2, zlib %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 and printing their data. %prep %setup -q %build export CC=gcc export CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include" export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --disable-werror \ --target powerpc-ibm-aix5.1.0.0 gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} install # Remove the files that are part of a gdb build but that are owned and # provided by other packages (binutils). rm -rf ${RPM_BUILD_ROOT}%{_datadir} rm -f ${RPM_BUILD_ROOT}%{_infodir}/bfd* rm -f ${RPM_BUILD_ROOT}%{_infodir}/configure* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir* rm -f ${RPM_BUILD_ROOT}%{_infodir}/standard* rm -rf ${RPM_BUILD_ROOT}%{_includedir} rm -rf ${RPM_BUILD_ROOT}%{_libdir} gzip --best ${RPM_BUILD_ROOT}%{_infodir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : # install the gcore script in /usr/bin cp gdb/gdb_gcore.sh ${RPM_BUILD_ROOT}%{_bindir}/gcore chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/gcore cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %post /sbin/install-info %{_infodir}/annotate.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/gdb.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/gdbint.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/stabs.info.gz %{_infodir}/dir || : %preun if [ $1 -eq 0 ]; then /sbin/install-info --delete %{_infodir}/annotate.info.gz %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/gdb.info.gz %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/gdbint.info.gz %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/stabs.info.gz %{_infodir}/dir || : fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc COPYING COPYING.LIB README gdb/NEWS %{_bindir}/* %{_infodir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Fri Sep 03 2010 Michael Perzl - 7.2 - updated to version 7.2 * Fri Sep 03 2010 Michael Perzl - 7.1 - updated to version 7.1 * Fri Sep 03 2010 Michael Perzl - 7.0.1 - updated to version 7.0.1 - removed dependency on gettext >= 0.17 * Wed Apr 23 2008 Michael Perzl - 6.8-1 - updated to version 6.8 * Wed Mar 31 2008 Michael Perzl - 6.7.1-2 - rebuilt against new version of expat * Wed Mar 05 2008 Michael Perzl - 6.7.1-1 - first version for AIX V5.1 and higher