]> git.pld-linux.org Git - packages/gdb.git/blob - gdb.spec
- release 3
[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.5
14 Release:        3
15 License:        GPL
16 Group:          Development/Debuggers
17 Source0:        ftp://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2
18 # Source0-md5:  af6c8335230d7604aee0803b1df14f54
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}-readline.patch
22 Patch1:         %{name}-info.patch
23 Patch2:         %{name}-passflags.patch
24 # updated from http://www.math.uni.wroc.pl/~hebisch/gpc/gdb-6.1.diff
25 Patch3:         %{name}-gpc.patch
26 Patch4:         %{name}-gdbinit-stat.patch
27 Patch5:         %{name}-pretty-print-by-default.patch
28 Patch6:         %{name}-absolute-gnu_debuglink-path.patch
29 Patch7:         %{name}-gnu_hash.patch
30 BuildRequires:  autoconf >= 2.53
31 BuildRequires:  automake
32 BuildRequires:  bison
33 BuildRequires:  flex
34 BuildRequires:  libtool
35 BuildRequires:  ncurses-devel >= 5.2
36 BuildRequires:  readline-devel >= 4.3
37 BuildRequires:  texinfo
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Gdb is a full featured, command driven debugger. Gdb allows you to
42 trace the execution of programs and examine their internal state at
43 any time. Gdb works for C and C++ compiled with the GNU C compiler
44 gcc.
45
46 %description -l de
47 dem Sie die Ausführung von Programmen verfolgen und jederzeit den
48 inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C
49 kompiliertes C++.
50
51 %description -l es
52 Este es un debugger orientado a comandos repleto de características.
53 Te permite rastrear la ejecución de programas y examinar su estado
54 interno a cualquier momento. Funciona para C y C++ compilado con el
55 compilador GNU C.
56
57 %description -l fr
58 Débugger complet, piloté par commandes. Permet de tracer l'exécution
59 des programmes et d'examiner à tout moment leur état interne.
60 Fonctionne avec les binaires C et C++ compilés avec le compilateur C
61 de GNU, gcc.
62
63 %description -l pl
64 Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalaj±cym
65 ¶ledziæ wykonywanie programu i badaæ jego stan wewnêtrzny. Gdb
66 umo¿liwia odpluskwianie programów napisanych w C/C++ i skompilowanych
67 przy pomocy kompilatora GNU (gcc).
68
69 %description -l pt_BR
70 Este é um debugger orientado a comandos repleto de características.
71 Ele permite à você rastrear a execução de programas e examinar o seu
72 estado interno a qualquer momento. Ele funciona para para C e C++
73 compilado com o compilador GNU C.
74
75 %description -l ru
76 üÔÏ ÐÏÌÎÏÃÅÎÎÙÊ ÏÔÌÁÄÞÉË, ÕÐÒÁ×ÌÑÅÍÙÊ ËÏÍÁÎÄÁÍÉ. ïΠÐÏÚ×ÏÌÑÅÔ
77 ÔÒÁÓÓÉÒÏ×ÁÔØ ÉÓÐÏÌÎÅÎÉÅ ÐÒÏÇÒÁÍÍ É ÉÚÕÞÁÔØ ÉÈ ×ÎÕÔÒÅÎÎÅÅ ÓÏÓÔÏÑÎÉÅ ×
78 ÌÀÂÏÊ ÍÏÍÅÎÔ ×ÒÅÍÅÎÉ. òÁÂÏÔÁÅÔ Ó ÐÒÏÇÒÁÍÍÁÍÉ ÎÁ C É C++,
79 ÓËÏÍÐÉÌÉÒÏ×ÁÎÎÙÍÉ GNU ËÏÍÐÉÌÑÔÏÒÏÍ C (gcc, egcs, pgcc).
80
81 %description -l tr
82 Bir komut arayüzü üzerinden programcýya programýný adým adým izleme
83 (trace) ve herhangi bir anda programýn durumunu inceleme olanaðý
84 verir.
85
86 %description -l uk
87 ãÅ ÐÏ×ÎÏæÎÎÉʠצÄÌÁÄÞÉË, ÝÏ ËÅÒÕ¤ÔØÓÑ ËÏÍÁÎÄÁÍÉ. ÷¦Î ÄÏÚ×ÏÌѤ
88 ÔÒÁÓÕ×ÁÔÉ ×ÉËÏÎÁÎÎÑ ÐÒÏÇÒÁÍ ÔÁ ×É×ÞÁÔÉ §È ×ÎÕÔÒ¦ÛΦʠÓÔÁΠנÄÏצÌØÎÉÊ
89 ÍÏÍÅÎÔ ÞÁÓÕ. ðÒÁÃÀ¤ Ú ÐÒÏÇÒÁÍÁÍÉ ÎÁ C ÔÁ C++, ÚËÏÍЦÌØÏ×ÁÎÉÍÉ
90 ËÏÍЦÌÑÔÏÒÁÍÉ GNU C (gcc, egcs, pgcc).
91
92 %package lib
93 Summary:        GDB in the for of a static library
94 Group:          Development/Debuggers
95 #Requires:      binutils-static >= 2.17.50
96
97 %description lib
98 GDB in the form of a static library.
99
100 %prep
101 %setup -q
102 %patch0 -p1
103 %patch1 -p1
104 %patch2 -p1
105 %patch3 -p1
106 %patch4 -p0
107 %patch5 -p1
108 %patch6 -p1
109 %patch7 -p1
110
111 %build
112 for dir in `find gdb/ -name 'configure.in'`; do
113         dir=$(dirname "$dir")
114         olddir=$(pwd)
115         cd $dir
116         rm -f aclocal.m4
117         %{__aclocal}
118         %{__autoconf}
119         cd $olddir
120 done
121 cp -f /usr/share/automake/config.* .
122 # !! Don't enable shared here !!
123 # This will cause serious problems --misiek
124 %configure2_13 \
125         --disable-gdbtk \
126         --disable-shared \
127         --enable-gdbcli \
128         --enable-gdbmi \
129         --enable-multi-ice \
130         --enable-netrom \
131         --enable-nls \
132         --enable-tui \
133         --with-cpu=%{_target_cpu} \
134         --without-included-gettext \
135         --without-included-regex \
136         --without-x \
137 %ifnarch alpha
138         --with-mmalloc
139 %endif
140
141 %{__make}
142 %{__make} info
143
144 %install
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT%{_infodir}
147
148 %{__make} install install-info \
149         prefix=$RPM_BUILD_ROOT%{_prefix} \
150         bindir=$RPM_BUILD_ROOT%{_bindir} \
151         sbindir=$RPM_BUILD_ROOT%{_sbindir} \
152         infodir=$RPM_BUILD_ROOT%{_infodir} \
153         includedir=$RPM_BUILD_ROOT%{_includedir} \
154         libdir=$RPM_BUILD_ROOT%{_libdir} \
155         mandir=$RPM_BUILD_ROOT%{_mandir}
156
157 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
158
159 install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir}
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
164 %post
165 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
166
167 %postun
168 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
169
170 %files
171 %defattr(644,root,root,755)
172 %doc gdb/{ChangeLog,NEWS,PROBLEMS,README}
173 %attr(755,root,root) %{_bindir}/*
174 %{_mandir}/man1/*
175 %lang(es) %{_mandir}/es/man1/*
176 %lang(fr) %{_mandir}/fr/man1/*
177 %lang(hu) %{_mandir}/hu/man1/*
178 %lang(ja) %{_mandir}/ja/man1/*
179 %lang(pl) %{_mandir}/pl/man1/*
180 %{_infodir}/gdb*.info*
181 %{_infodir}/stabs*.info*
182
183 %files lib
184 %defattr(644,root,root,755)
185 %{_libdir}/libgdb.a
This page took 0.051508 seconds and 4 git commands to generate.