%define target avr Name: %{target}-gdb Version: 7.1 Release: %mkrel 5 Summary: GDB for (remote) debugging %{target} binaries Group: Development/Tools License: GPLv2+ URL: http://sources.redhat.com/gdb/ Source0: http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2 Source1: README.mageia BuildRequires: ncurses-devel %description This is a special version of GDB, the GNU Project debugger, for (remote) debugging %{target} binaries. GDB allows you to see what is going on inside another program while it executes or what another program was doing at the moment it crashed. %files %doc gdb-%{version}/COPYING* gdb-%{version}/README* %{_bindir}/%{name}* %{_bindir}/avr-run %{_mandir}/man1/avr-* #-------------------------------------------------------------------- %prep %setup -q -c cp %{SOURCE1} . %build mkdir -p build pushd build CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" \ ../gdb-%{version}/configure --prefix=%{_prefix} \ --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ --target=%{target} --disable-nls --disable-werror make %{?_smp_mflags} popd %install rm -rf $RPM_BUILD_ROOT pushd build make install DESTDIR=$RPM_BUILD_ROOT popd # we don't want these as we are a cross version rm -r $RPM_BUILD_ROOT%{_infodir} rm $RPM_BUILD_ROOT%{_libdir}/libiberty.a rm -r $RPM_BUILD_ROOT%{_datadir}/gdb # Should not be installed rm $RPM_BUILD_ROOT%{_libdir}/libavr-sim.a %changelog * Fri Jan 11 2013 umeabot <umeabot> 7.1-5.mga3 + Revision: 346706 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Oct 03 2012 malo <malo> 7.1-4.mga3 + Revision: 302644 - update RPM group * Tue Jan 10 2012 dmorgan <dmorgan> 7.1-3.mga2 + Revision: 194632 - imported package avr-gdb