]>
Commit | Line | Data |
---|---|---|
e1daef87 JR |
1 | # |
2 | # NOTE: Do not remove -lib package, it is required by FPC | |
3 | # | |
5ff7d7dd | 4 | Summary: A GNU source-level debugger for C, C++ and Fortran |
0ec45698 ER |
5 | Summary(de.UTF-8): Symbolischer Debugger für C und andere Sprachen |
6 | Summary(es.UTF-8): Depurador de programas C y otras lenguajes | |
7 | Summary(fr.UTF-8): Débugger symbolique pour C et d'autres langages | |
8 | Summary(pl.UTF-8): Symboliczny odpluskwiacz dla C i innych języków | |
9 | Summary(pt_BR.UTF-8): Depurador de programas C e outras linguagens | |
10 | Summary(ru.UTF-8): Символический отладчик для C и других языков | |
11 | Summary(tr.UTF-8): C ve diğer diller için sembolik hata ayıklayıcı | |
12 | Summary(uk.UTF-8): Символьний відладчик для С та інших мов | |
13 | Summary(zh_CN.UTF-8): [开发]C和其他语言的调试器 | |
14 | Summary(zh_TW.UTF-8): [.-A開發]C和.$)B其.-A他語.$)B言的調試器 | |
7e0fb32d | 15 | %define snap 20081014 |
0241102e | 16 | Name: gdb |
f5514aed AM |
17 | Version: 6.8.50 |
18 | Release: 0.%{snap}.1 | |
d7c2fd3d | 19 | License: GPL v3+ |
0241102e | 20 | Group: Development/Debuggers |
f5514aed AM |
21 | # Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2 |
22 | Source0: ftp://sourceware.org/pub/gdb/snapshots/current/gdb-%{version}.%{snap}.tar.bz2 | |
7e0fb32d | 23 | # Source0-md5: 7317a7da78f28058e45c1f0dec24cbdb |
31a43e77 | 24 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
feb56b14 | 25 | # Source1-md5: 2e8a48939ae282c12bbacdd54e398247 |
fc5a2138 JB |
26 | Patch0: %{name}-readline.patch |
27 | Patch1: %{name}-info.patch | |
28 | Patch2: %{name}-passflags.patch | |
fc5a2138 | 29 | Patch4: %{name}-gdbinit-stat.patch |
a08563ef | 30 | Patch5: %{name}-pretty-print-by-default.patch |
097d37d7 | 31 | Patch6: %{name}-absolute-gnu_debuglink-path.patch |
3a97e68e | 32 | URL: http://www.gnu.org/software/gdb/ |
e92b6e8a | 33 | BuildRequires: autoconf >= 2.53 |
830462ab | 34 | BuildRequires: automake |
435950f1 JB |
35 | BuildRequires: bison |
36 | BuildRequires: flex | |
72a26adc | 37 | BuildRequires: libtool |
4e6d01d3 | 38 | BuildRequires: ncurses-devel >= 5.2 |
de04f849 | 39 | BuildRequires: readline-devel >= 4.3 |
3a97e68e | 40 | BuildRequires: texinfo >= 4.4 |
b4655cd1 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6aa96a1b | 42 | |
43 | %description | |
92563ae4 | 44 | Gdb is a full featured, command driven debugger. Gdb allows you to |
45 | trace the execution of programs and examine their internal state at | |
46 | any time. Gdb works for C and C++ compiled with the GNU C compiler | |
47 | gcc. | |
6aa96a1b | 48 | |
f01e46e5 JR |
49 | %description -l de.UTF-8 |
50 | dem Sie die Ausführung von Programmen verfolgen und jederzeit den | |
51 | inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C | |
92563ae4 | 52 | kompiliertes C++. |
6aa96a1b | 53 | |
f01e46e5 JR |
54 | %description -l es.UTF-8 |
55 | Este es un debugger orientado a comandos repleto de características. | |
56 | Te permite rastrear la ejecución de programas y examinar su estado | |
c15663f7 | 57 | interno a cualquier momento. Funciona para C y C++ compilado con el |
58 | compilador GNU C. | |
59 | ||
f01e46e5 JR |
60 | %description -l fr.UTF-8 |
61 | Débugger complet, piloté par commandes. Permet de tracer l'exécution | |
62 | des programmes et d'examiner à tout moment leur état interne. | |
63 | Fonctionne avec les binaires C et C++ compilés avec le compilateur C | |
92563ae4 | 64 | de GNU, gcc. |
6aa96a1b | 65 | |
f01e46e5 JR |
66 | %description -l pl.UTF-8 |
67 | Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalającym | |
68 | śledzić wykonywanie programu i badać jego stan wewnętrzny. Gdb | |
69 | umożliwia odpluskwianie programów napisanych w C/C++ i skompilowanych | |
92563ae4 | 70 | przy pomocy kompilatora GNU (gcc). |
6aa96a1b | 71 | |
f01e46e5 JR |
72 | %description -l pt_BR.UTF-8 |
73 | Este é um debugger orientado a comandos repleto de características. | |
74 | Ele permite à você rastrear a execução de programas e examinar o seu | |
c15663f7 | 75 | estado interno a qualquer momento. Ele funciona para para C e C++ |
76 | compilado com o compilador GNU C. | |
77 | ||
f01e46e5 JR |
78 | %description -l ru.UTF-8 |
79 | Это полноценный отладчик, управляемый командами. Он позволяет | |
80 | трассировать исполнение программ и изучать их внутреннее состояние в | |
81 | любой момент времени. Работает с программами на C и C++, | |
82 | скомпилированными GNU компилятором C (gcc, egcs, pgcc). | |
11d14365 | 83 | |
f01e46e5 JR |
84 | %description -l tr.UTF-8 |
85 | Bir komut arayüzü üzerinden programcıya programını adım adım izleme | |
86 | (trace) ve herhangi bir anda programın durumunu inceleme olanağı | |
92563ae4 | 87 | verir. |
6aa96a1b | 88 | |
f01e46e5 JR |
89 | %description -l uk.UTF-8 |
90 | Це повноцінний відладчик, що керується командами. Він дозволяє | |
91 | трасувати виконання програм та вивчати їх внутрішній стан в довільний | |
92 | момент часу. Працює з програмами на C та C++, зкомпільованими | |
93 | компіляторами GNU C (gcc, egcs, pgcc). | |
11d14365 | 94 | |
f02a934e | 95 | %package lib |
4e0c2e1e | 96 | Summary: GDB in the form of a static library |
0ec45698 | 97 | Summary(pl.UTF-8): GDB w postaci biblioteki statycznej |
f02a934e | 98 | Group: Development/Debuggers |
3a97e68e | 99 | #Requires: binutils-devel >= 2.17.50 |
f02a934e JR |
100 | |
101 | %description lib | |
102 | GDB in the form of a static library. | |
103 | ||
f01e46e5 | 104 | %description lib -l pl.UTF-8 |
4e0c2e1e JB |
105 | GDB w postaci biblioteki statycznej. |
106 | ||
6aa96a1b | 107 | %prep |
f5514aed | 108 | %setup -q -n %{name}-%{version}.%{snap} |
30a98da2 | 109 | %patch0 -p1 |
0cd7a575 AM |
110 | %patch1 -p1 |
111 | %patch2 -p1 | |
fc5a2138 | 112 | %patch4 -p0 |
a08563ef | 113 | %patch5 -p1 |
097d37d7 | 114 | %patch6 -p1 |
9164351f | 115 | |
6aa96a1b | 116 | %build |
0cd7a575 AM |
117 | for dir in `find gdb/ -name 'configure.in'`; do |
118 | dir=$(dirname "$dir") | |
119 | olddir=$(pwd) | |
120 | cd $dir | |
121 | rm -f aclocal.m4 | |
122 | %{__aclocal} | |
123 | %{__autoconf} | |
124 | cd $olddir | |
125 | done | |
3661d025 | 126 | cp -f /usr/share/automake/config.* . |
3a97e68e | 127 | # don't --enable-shared here, there would be libs version mismatch with binutils |
62be29ad | 128 | %configure \ |
fdffb271 | 129 | --disable-gdbtk \ |
ebd49a3e | 130 | --disable-shared \ |
fdffb271 | 131 | --enable-gdbcli \ |
b257c914 | 132 | --enable-gdbmi \ |
133 | --enable-multi-ice \ | |
ebd49a3e | 134 | --enable-netrom \ |
fdffb271 | 135 | --enable-nls \ |
5f8bd10e | 136 | --enable-tui \ |
fdffb271 | 137 | --with-cpu=%{_target_cpu} \ |
ac43b5eb | 138 | %ifnarch alpha |
3a97e68e | 139 | --with-mmalloc \ |
ac43b5eb | 140 | %endif |
3a97e68e JB |
141 | --without-included-gettext \ |
142 | --without-included-regex \ | |
143 | --without-x | |
ebd49a3e | 144 | |
64683032 | 145 | %{__make} |
36e61e18 | 146 | %{__make} info |
6aa96a1b | 147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
5ff7d7dd | 150 | install -d $RPM_BUILD_ROOT%{_infodir} |
6aa96a1b | 151 | |
ebd49a3e | 152 | %{__make} install install-info \ |
f7477d2b | 153 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
ebd49a3e AM |
154 | bindir=$RPM_BUILD_ROOT%{_bindir} \ |
155 | sbindir=$RPM_BUILD_ROOT%{_sbindir} \ | |
f7477d2b | 156 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
ebd49a3e AM |
157 | includedir=$RPM_BUILD_ROOT%{_includedir} \ |
158 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
5ff7d7dd | 159 | mandir=$RPM_BUILD_ROOT%{_mandir} |
e611e157 | 160 | |
8d9a5f3e | 161 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
162 | ||
f02a934e JR |
163 | install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir} |
164 | ||
b0a9ea6d JB |
165 | %clean |
166 | rm -rf $RPM_BUILD_ROOT | |
6aa96a1b | 167 | |
1f7f0d47 ER |
168 | %post -p /sbin/postshell |
169 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
6aa96a1b | 170 | |
1f7f0d47 ER |
171 | %postun -p /sbin/postshell |
172 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
6aa96a1b | 173 | |
6aa96a1b | 174 | %files |
0241102e | 175 | %defattr(644,root,root,755) |
f0842f54 | 176 | %doc gdb/{ChangeLog,NEWS,PROBLEMS,README} |
f7477d2b AF |
177 | %attr(755,root,root) %{_bindir}/* |
178 | %{_mandir}/man1/* | |
8d9a5f3e | 179 | %lang(es) %{_mandir}/es/man1/* |
180 | %lang(fr) %{_mandir}/fr/man1/* | |
181 | %lang(hu) %{_mandir}/hu/man1/* | |
182 | %lang(ja) %{_mandir}/ja/man1/* | |
183 | %lang(pl) %{_mandir}/pl/man1/* | |
5ff7d7dd | 184 | %{_infodir}/gdb*.info* |
e611e157 | 185 | %{_infodir}/stabs*.info* |
f02a934e JR |
186 | |
187 | %files lib | |
188 | %defattr(644,root,root,755) | |
189 | %{_libdir}/libgdb.a |