[PATCH] crossavr-gdb.spec

Remigiusz "Enleth" Marcinkiewicz enleth w enleth.com
ro, 21 Sty 2009, 18:12:04 CET


Update do tej samej wersji, co normalne gdb (tyle, że snap z wczoraj, 20090101 
odparował z serwera sourceware), buduje się i działa na Th, przetestowane z 
Atmegą16, donglem AVR ICE mkI i proxy JTAG AVaRICE 2.6. To, co jest teraz w 
cvs jest tak przeterminowane, że nawet budować się nie chce z nowym libc.

-- 
Remigiusz "Enleth" Marcinkiewicz, enleth w enleth.com
WWW http://enleth.com http://heroes.net.pl
JID enleth w jabster.pl
-------------- nastpna cz ---------
# $Revision: 1.15 $, $Date: 2008/04/08 08:24:51 $
Summary:	A GNU source-level debugger for C, C++ and Fortran
Summary(de.UTF-8):	Symbolischer Debugger für C und andere Sprachen
Summary(es.UTF-8):	Depurador de programas C y otras lenguajes
Summary(fr.UTF-8):	Débugger symbolique pour C et d'autres langages
Summary(pl.UTF-8):	Symboliczny odpluskwiacz dla C i innych języków
Summary(pt_BR.UTF-8):	Depurador de programas C e outras linguagens
Summary(ru.UTF-8):	Символический отладчик для C и других языков
Summary(tr.UTF-8):	C ve diğer diller için sembolik hata ayıklayıcı
Summary(uk.UTF-8):	Символьний відладчик для С та інших мов
Summary(zh_CN.UTF-8):	[开发]C和其他语言的调试器
Summary(zh_TW.UTF-8):	[.-A開發]C和.$)B其.-A他語.$)B言的調試器
%define	snap	20090120
Name:		crossavr-gdb
Version:	6.8.50
Release:	0.%{snap}.1
License:	GPL v3+
Group:		Development/Debuggers
#Source0:	http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2
Source0:	ftp://sourceware.org/pub/gdb/snapshots/current/gdb-%{version}.%{snap}.tar.bz2
# Source0-md5:	30a6bf36eded4ae5a152d7d71b86dc14
Patch0:		gdb-readline.patch
Patch1:		gdb-info.patch
Patch2:		gdb-passflags.patch
Patch4:		gdb-gdbinit-stat.patch
Patch5:		gdb-pretty-print-by-default.patch
Patch6:		gdb-absolute-gnu_debuglink-path.patch
URL:		http://www.gnu.org/software/gdb/
BuildRequires:	autoconf >= 2.53
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	ncurses-devel >= 5.2
BuildRequires:	readline-devel >= 4.3
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		target		avr

%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. Gdb works for C and C++ compiled with the GNU C compiler
gcc.

%description -l de.UTF-8
dem Sie die Ausführung von Programmen verfolgen und jederzeit den
inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C
kompiliertes C++.

%description -l es.UTF-8
Este es un depurador orientado a comandos repleto de características.
Te permite rastrear la ejecución de programas y examinar su estado
interno a cualquier momento. Funciona para C y C++ compilado con el
compilador GNU C.

%description -l fr.UTF-8
Débugger complet, piloté par commandes. Permet de tracer l'exécution
des programmes et d'examiner à tout moment leur état interne.
Fonctionne avec les binaires C et C++ compilés avec le compilateur C
de GNU, gcc.

%description -l pl.UTF-8
Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalającym
śledzić wykonywanie programu i badać jego stan wewnętrzny. Gdb
umożliwia odpluskwianie programów napisanych w C/C++ i skompilowanych
przy pomocy kompilatora GNU (gcc).

%description -l pt_BR.UTF-8
Este é um debugger orientado a comandos repleto de características.
Ele permite à você rastrear a execução de programas e examinar o seu
estado interno a qualquer momento. Ele funciona para para C e C++
compilado com o compilador GNU C.

%description -l ru.UTF-8
Это полноценный отладчик, управляемый командами. Он позволяет
трассировать исполнение программ и изучать их внутреннее состояние в
любой момент времени. Работает с программами на C и C++,
скомпилированными GNU компилятором C (gcc, egcs, pgcc).

%description -l tr.UTF-8
Bir komut arayüzü üzerinden programcıya programını adım adım izleme
(trace) ve herhangi bir anda programın durumunu inceleme olanağı
verir.

%description -l uk.UTF-8
Це повноцінний відладчик, що керується командами. Він дозволяє
трасувати виконання програм та вивчати їх внутрішній стан в довільний
момент часу. Працює з програмами на C та C++, зкомпільованими
компіляторами GNU C (gcc, egcs, pgcc).

%prep
%setup -q -n gdb-%{version}.%{snap}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p0
%patch5 -p1
%patch6 -p1

%build
for dir in `find gdb/ -name 'configure.in'`; do
	dir=$(dirname "$dir")
	olddir=$(pwd)
	cd $dir
	rm -f aclocal.m4
	%{__aclocal}
	%{__autoconf}
	cd $olddir
done
cp -f /usr/share/automake/config.* .
# don't --enable-shared here, there would be libs version mismatch with binutils
%configure \
    --target=%{target} \
	--disable-gdbtk \
	--disable-shared \
	--enable-gdbcli \
	--enable-gdbmi \
	--enable-multi-ice \
	--enable-netrom \
	--enable-nls \
	--enable-tui \
	--with-cpu=%{_target_cpu} \
%ifnarch alpha
	--with-mmalloc \
%endif
	--without-included-gettext \
	--without-included-regex \
	--without-x

%{__make}
%{__make} info

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_infodir}

%{__make} install \
	prefix=$RPM_BUILD_ROOT%{_prefix} \
	bindir=$RPM_BUILD_ROOT%{_bindir} \
	sbindir=$RPM_BUILD_ROOT%{_sbindir} \
	infodir=$RPM_BUILD_ROOT%{_infodir} \
	includedir=$RPM_BUILD_ROOT%{_includedir} \
	libdir=$RPM_BUILD_ROOT%{_libdir} \
	mandir=$RPM_BUILD_ROOT%{_mandir}


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/%{target}-gdb*
%{_mandir}/man1/%{target}-gdb*.1*

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: crossavr-gdb.spec,v $
Revision 1.15  2008/04/08 08:24:51  glen
- unify ftp.gnu.org urls

Revision 1.14  2008-01-11 09:56:07  kosmo
- updated to 6.7.1

Revision 1.13  2007-04-09 18:54:37  bszx
- updated to 6.6, reordered patches

Revision 1.12  2007/04/09 16:19:36  glen
- drop other spec changelog

Revision 1.11  2007/02/12 21:23:51  glen
- tabs in preamble

Revision 1.10  2007/02/12 00:48:43  baggins
- converted to UTF-8

Revision 1.9  2004/12/20 18:58:08  qboosh
- BR: texinfo

Revision 1.8  2004/12/17 21:25:21  sparky
- spanish desc/summary fixes; many just thrown

Revision 1.7  2004/11/20 15:13:45  qboosh
- standard BuildRoot

Revision 1.6  2004/11/14 19:21:40  saq
- up to 6.2.1 by Tomasz Jadowski

Revision 1.5  2004/11/10 13:47:03  paladine
- cosmetics

Revision 1.4  2004/07/31 21:51:55  qboosh
- updated to gdb 6.2

Revision 1.3  2004/07/21 13:18:10  qboosh
- up to 6.1.1, cleanup

Revision 1.2  2004/01/14 10:38:28  arekm
- info files removed to avoid conflict

Revision 1.1  2004/01/14 10:37:37  arekm
- avr version
-------------- nastpna cz ---------
Załącznik, który nie był tekstem został usunięty...
Name: nie znany
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : /mailman/pipermail/pld-devel-pl/attachments/20090121/9b3efe48/attachment.sig 


Wicej informacji o licie dyskusyjnej pld-devel-pl