]> git.pld-linux.org Git - packages/gdb.git/blob - gdb.spec
- added sparc-workaround patch to allow build on sparc; release 0.2
[packages/gdb.git] / gdb.spec
1 Summary:        A GNU source-level debugger for C, C++ and Fortran
2 Summary(de):    Symbolischer Debugger für C und andere Sprachen
3 Summary(es):    Depurador de programas C y otras lenguajes
4 Summary(fr):    Débugger symbolique pour C et d'autres langages
5 Summary(pl):    Symboliczny odpluskwiacz dla C i innych jêzyków
6 Summary(pt_BR): Depurador de programas C e outras linguagens
7 Summary(ru):    óÉÍ×ÏÌÉÞÅÓËÉÊ ÏÔÌÁÄÞÉË ÄÌÑ C É ÄÒÕÇÉÈ ÑÚÙËÏ×
8 Summary(tr):    C ve diðer diller için sembolik hata ayýklayýcý
9 Summary(uk):    óÉÍ×ÏÌØÎÉʠצÄÌÁÄÞÉË ÄÌÑ ó ÔÁ ¦ÎÛÉÈ ÍÏ×
10 Summary(zh_CN): [¿ª·¢]CºÍÆäËûÓïÑԵĵ÷ÊÔÆ÷
11 Summary(zh_TW): [.-A¶}µo]C©M.$)B¨ä.-A¥L»y.$)B¨¥ªº½Õ¸Õ¾¹
12 Name:           gdb
13 Version:        6.0
14 Release:        0.2
15 License:        GPL
16 Group:          Development/Debuggers
17 Source0:        ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.gz
18 # Source0-md5:  e2314b7c9c7670b5384deb90701446f4
19 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
20 # Source1-md5:  2e8a48939ae282c12bbacdd54e398247
21 Patch0:         %{name}-ncurses.patch
22 Patch1:         %{name}-readline.patch
23 Patch2:         %{name}-info.patch
24 Patch3:         %{name}-procfs.patch
25 Patch4:         %{name}-passflags.patch
26 Patch5:         %{name}-sparc-workaround.patch
27 BuildRequires:  XFree86-devel
28 BuildRequires:  autoconf >= 2.53
29 BuildRequires:  libtool
30 BuildRequires:  ncurses-devel >= 5.2
31 BuildRequires:  readline-devel >= 4.2
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 Gdb is a full featured, command driven debugger. Gdb allows you to
36 trace the execution of programs and examine their internal state at
37 any time. Gdb works for C and C++ compiled with the GNU C compiler
38 gcc.
39
40 %description -l de
41 dem Sie die Ausführung von Programmen verfolgen und jederzeit den
42 inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C
43 kompiliertes C++.
44
45 %description -l es
46 Este es un debugger orientado a comandos repleto de características.
47 Te permite rastrear la ejecución de programas y examinar su estado
48 interno a cualquier momento. Funciona para C y C++ compilado con el
49 compilador GNU C.
50
51 %description -l fr
52 Débugger complet, piloté par commandes. Permet de tracer l'exécution
53 des programmes et d'examiner à tout moment leur état interne.
54 Fonctionne avec les binaires C et C++ compilés avec le compilateur C
55 de GNU, gcc.
56
57 %description -l pl
58 Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalaj±cym
59 ¶ledziæ wykonywanie programu i badaæ jego stan wewnêtrzny. Gdb
60 umo¿liwia odpluskwianie programów napisanych w C/C++ i skompilowanych
61 przy pomocy kompilatora GNU (gcc).
62
63 %description -l pt_BR
64 Este é um debugger orientado a comandos repleto de características.
65 Ele permite à você rastrear a execução de programas e examinar o seu
66 estado interno a qualquer momento. Ele funciona para para C e C++
67 compilado com o compilador GNU C.
68
69 %description -l ru
70 üÔÏ ÐÏÌÎÏÃÅÎÎÙÊ ÏÔÌÁÄÞÉË, ÕÐÒÁ×ÌÑÅÍÙÊ ËÏÍÁÎÄÁÍÉ. ïΠÐÏÚ×ÏÌÑÅÔ
71 ÔÒÁÓÓÉÒÏ×ÁÔØ ÉÓÐÏÌÎÅÎÉÅ ÐÒÏÇÒÁÍÍ É ÉÚÕÞÁÔØ ÉÈ ×ÎÕÔÒÅÎÎÅÅ ÓÏÓÔÏÑÎÉÅ ×
72 ÌÀÂÏÊ ÍÏÍÅÎÔ ×ÒÅÍÅÎÉ. òÁÂÏÔÁÅÔ Ó ÐÒÏÇÒÁÍÍÁÍÉ ÎÁ C É C++,
73 ÓËÏÍÐÉÌÉÒÏ×ÁÎÎÙÍÉ GNU ËÏÍÐÉÌÑÔÏÒÏÍ C (gcc, egcs, pgcc).
74
75 %description -l tr
76 Bir komut arayüzü üzerinden programcýya programýný adým adým izleme
77 (trace) ve herhangi bir anda programýn durumunu inceleme olanaðý
78 verir.
79
80 %description -l uk
81 ãÅ ÐÏ×ÎÏæÎÎÉʠצÄÌÁÄÞÉË, ÝÏ ËÅÒÕ¤ÔØÓÑ ËÏÍÁÎÄÁÍÉ. ÷¦Î ÄÏÚ×ÏÌѤ
82 ÔÒÁÓÕ×ÁÔÉ ×ÉËÏÎÁÎÎÑ ÐÒÏÇÒÁÍ ÔÁ ×É×ÞÁÔÉ §È ×ÎÕÔÒ¦ÛΦʠÓÔÁΠנÄÏצÌØÎÉÊ
83 ÍÏÍÅÎÔ ÞÁÓÕ. ðÒÁÃÀ¤ Ú ÐÒÏÇÒÁÍÁÍÉ ÎÁ C ÔÁ C++, ÚËÏÍЦÌØÏ×ÁÎÉÍÉ
84 ËÏÍЦÌÑÔÏÒÁÍÉ GNU C (gcc, egcs, pgcc).
85
86 %prep
87 %setup -q
88 %patch0 -p1
89 %patch1 -p1
90 %patch2 -p1
91 %patch3 -p1
92 %patch4 -p1
93 %patch5 -p1
94
95 %build
96 for dir in `find gdb/ -name 'configure.in'`; do
97         dir=$(dirname "$dir")
98         olddir=$(pwd)
99         cd $dir
100         rm -f aclocal.m4
101         %{__aclocal}
102         %{__autoconf}
103         cd $olddir
104 done
105 # !! Don't enable shared here !!
106 # This will cause serious problems --misiek
107 %configure2_13 \
108         --disable-shared \
109         --enable-nls \
110         --without-included-gettext \
111         --without-included-regex \
112         --enable-gdcli \
113         --enable-gdbmi \
114         --enable-multi-ice \
115         --enable-netrom \
116         --with-cpu=%{_target_cpu} \
117         --enable-tui \
118 %ifnarch alpha
119         --with-mmalloc
120 %endif
121
122 # something is wrong after above - e.g. $exeext=="no" - fix it:
123 cd gdb
124 %configure
125 cd ..
126
127 %{__make}
128 %{__make} info
129
130 %install
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT%{_infodir}
133
134 %{__make} install install-info \
135         prefix=$RPM_BUILD_ROOT%{_prefix} \
136         bindir=$RPM_BUILD_ROOT%{_bindir} \
137         sbindir=$RPM_BUILD_ROOT%{_sbindir} \
138         infodir=$RPM_BUILD_ROOT%{_infodir} \
139         includedir=$RPM_BUILD_ROOT%{_includedir} \
140         libdir=$RPM_BUILD_ROOT%{_libdir} \
141         mandir=$RPM_BUILD_ROOT%{_mandir}
142
143 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
144
145 %clean
146 rm -rf $RPM_BUILD_ROOT
147
148 %post
149 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
150
151 %postun
152 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
153
154 %files
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/*
157
158 %{_mandir}/man1/*
159 %lang(es) %{_mandir}/es/man1/*
160 %lang(fr) %{_mandir}/fr/man1/*
161 %lang(hu) %{_mandir}/hu/man1/*
162 %lang(ja) %{_mandir}/ja/man1/*
163 %lang(pl) %{_mandir}/pl/man1/*
164 %{_infodir}/gdb*.info*
165 %{_infodir}/stabs*.info*
This page took 0.790259 seconds and 4 git commands to generate.