2 # NOTE: Do not remove -lib package, it is required by FPC
4 Summary: A GNU source-level debugger for C, C++ and Fortran
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言的調試器
20 Group: Development/Debuggers
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
23 Source0: gdb-%{version}.%{snap}.tar.bz2
24 # Source0-md5: a8eae0d4ef955ebcecfc7511af31070a
25 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
26 # Source1-md5: 2e8a48939ae282c12bbacdd54e398247
30 Patch1000: %{name}-readline.patch
31 Patch1001: %{name}-info.patch
32 Patch1002: %{name}-passflags.patch
33 Patch1005: %{name}-pretty-print-by-default.patch
37 # Work around out-of-date dejagnu that does not have KFAIL
38 Patch1: %{name}-6.3-rh-dummykfail-20041202.patch
40 # Match the Fedora's version info.
41 Patch2: %{name}-6.3-rh-testversion-20041202.patch
43 # Check that libunwind works - new test then fix
44 Patch3: %{name}-6.3-rh-testlibunwind-20041202.patch
45 Patch4: %{name}-6.3-rh-testlibunwind1fix-20041202.patch
47 Patch104: %{name}-6.3-ppcdotsolib-20041022.patch
48 Patch105: %{name}-6.3-ppc64syscall-20040622.patch
49 Patch106: %{name}-6.3-framepczero-20040927.patch
50 Patch111: %{name}-6.3-ppc64displaysymbol-20041124.patch
51 Patch112: %{name}-6.6-scheduler_locking-step-sw-watchpoints2.patch
52 Patch260: %{name}-6.6-scheduler_locking-step-is-default.patch
53 Patch116: %{name}-6.3-linespec-20041213.patch
54 Patch117: %{name}-6.3-removebp-20041130.patch
55 Patch118: %{name}-6.3-gstack-20050411.patch
56 Patch122: %{name}-6.3-test-pie-20050107.patch
57 Patch124: %{name}-6.3-pie-20050110.patch
58 Patch125: %{name}-6.3-test-self-20050110.patch
59 Patch128: %{name}-6.3-nonthreaded-wp-20050117.patch
60 Patch133: %{name}-6.3-test-dtorfix-20050121.patch
61 Patch134: %{name}-6.3-dtorfix-20050121.patch
62 Patch136: %{name}-6.3-test-movedir-20050125.patch
63 Patch140: %{name}-6.3-gcore-thread-20050204.patch
64 Patch141: %{name}-6.6-step-thread-exit.patch
65 Patch259: %{name}-6.3-step-thread-exit-20050211-test.patch
66 Patch142: %{name}-6.3-terminal-fix-20050214.patch
67 Patch145: %{name}-6.3-threaded-watchpoints2-20050225.patch
68 Patch148: %{name}-6.3-inheritance-20050324.patch
69 Patch150: %{name}-6.3-test-sepcrc-20050402.patch
70 Patch151: %{name}-6.3-sepcrc-20050402.patch
71 Patch153: %{name}-6.3-ia64-gcore-page0-20050421.patch
72 Patch157: %{name}-6.3-security-errata-20050610.patch
73 Patch158: %{name}-6.3-ia64-sigtramp-frame-20050708.patch
74 Patch160: %{name}-6.3-ia64-gcore-speedup-20050714.patch
75 Patch161: %{name}-6.3-inferior-notification-20050721.patch
76 Patch162: %{name}-6.3-ia64-info-frame-fix-20050725.patch
77 Patch163: %{name}-6.3-inheritancetest-20050726.patch
78 Patch164: %{name}-6.3-readnever-20050907.patch
79 Patch166: %{name}-6.3-ia64-sigtramp-fp-20050926.patch
80 Patch169: %{name}-6.3-ia64-sigill-20051115.patch
81 Patch170: %{name}-6.3-bt-past-zero-20051201.patch
82 Patch176: %{name}-6.3-large-core-20051206.patch
83 Patch177: %{name}-6.3-gstack-without-path-20060414.patch
84 Patch188: %{name}-6.5-bz203661-emit-relocs.patch
85 Patch190: %{name}-6.5-dwarf-stack-overflow.patch
86 Patch194: %{name}-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
87 Patch195: %{name}-6.5-tls-of-separate-debuginfo.patch
88 Patch196: %{name}-6.5-sharedlibrary-path.patch
89 Patch199: %{name}-6.5-bz190810-gdbserver-arch-advice.patch
90 Patch200: %{name}-6.5-bz181390-memory-address-width.patch
91 Patch201: %{name}-6.5-gcore-i386-on-amd64.patch
92 Patch211: %{name}-6.5-last-address-space-byte-test.patch
93 Patch208: %{name}-6.5-BEA-testsuite.patch
94 Patch209: %{name}-6.5-readline-long-line-crash.patch
95 Patch213: %{name}-6.5-readline-long-line-crash-test.patch
96 Patch214: %{name}-6.5-bz216711-clone-is-outermost.patch
97 Patch215: %{name}-6.5-bz218379-ppc-solib-trampoline-fix.patch
98 Patch216: %{name}-6.5-bz218379-ppc-solib-trampoline-test.patch
99 Patch217: %{name}-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
100 Patch225: %{name}-6.5-bz109921-DW_AT_decl_file-test.patch
101 Patch229: %{name}-6.3-bz140532-ppc-unwinding-test.patch
102 Patch231: %{name}-6.3-bz202689-exec-from-pthread-test.patch
103 Patch234: %{name}-6.6-bz230000-power6-disassembly-test.patch
104 Patch235: %{name}-6.3-bz231832-obstack-2gb.patch
105 Patch240: %{name}-6.6-bz225783-prelink-path.patch
106 Patch241: %{name}-6.6-bz225783-gdb-debuginfo-paths.patch
107 Patch245: %{name}-6.6-bz229517-gcore-without-terminal.patch
108 Patch247: %{name}-6.6-bz235197-fork-detach-info.patch
109 Patch249: %{name}-6.6-gcore32-test.patch
110 Patch254: %{name}-6.6-testsuite-timeouts.patch
111 Patch258: %{name}-6.6-bz237572-ppc-atomic-sequence-test.patch
112 Patch261: %{name}-6.6-readline-system.patch
113 Patch263: %{name}-6.3-attach-see-vdso-test.patch
114 Patch265: %{name}-6.6-bz247354-leader-exit-fix.patch
115 Patch266: %{name}-6.6-bz247354-leader-exit-test.patch
116 Patch271: %{name}-6.5-bz243845-stale-testing-zombie-test.patch
117 Patch274: %{name}-6.6-buildid-locate.patch
118 Patch353: %{name}-6.6-buildid-locate-rpm.patch
119 Patch280: %{name}-6.6-multifork-debugreg.patch
120 Patch282: %{name}-6.7-charsign-test.patch
121 Patch284: %{name}-6.7-ppc-clobbered-registers-O2-test.patch
122 Patch287: %{name}-6.7-testsuite-stable-results.patch
123 Patch289: %{name}-6.5-ia64-libunwind-leak-test.patch
124 Patch290: %{name}-6.5-missed-trap-on-step-test.patch
125 Patch293: %{name}-6.7-bz426600-DW_TAG_interface_type-fix.patch
126 Patch294: %{name}-6.7-bz426600-DW_TAG_interface_type-test.patch
127 Patch296: %{name}-6.5-gcore-buffer-limit-test.patch
128 Patch298: %{name}-6.6-threads-static-test.patch
129 Patch304: %{name}-6.7-kernel-headers-compat.patch
130 Patch309: %{name}-6.3-mapping-zero-inode-test.patch
131 Patch311: %{name}-6.3-focus-cmd-prev-test.patch
132 Patch314: %{name}-6.3-watchpoint-cond-gone-test.patch
133 Patch315: %{name}-6.8-bz442765-threaded-exec-test.patch
134 Patch317: %{name}-6.8-sparc64-silence-memcpy-check.patch
135 Patch318: %{name}-6.8-gcc35998-ada-memory-trash.patch
136 Patch320: %{name}-6.5-section-num-fixup-test.patch
137 Patch322: %{name}-6.8-constant-watchpoints.patch
138 Patch324: %{name}-6.8-glibc-headers-compat.patch
139 Patch326: %{name}-6.8-tui-singlebinary.patch
140 Patch327: %{name}-6.8-inlining.patch
141 Patch350: %{name}-6.8-inlining-addon.patch
142 Patch328: %{name}-6.8-inlining-by-name.patch
143 Patch329: %{name}-6.8-bz254229-gcore-prpsinfo.patch
144 Patch330: %{name}-6.8-bz436037-reg-no-longer-active.patch
145 Patch331: %{name}-6.8-quit-never-aborts.patch
146 Patch332: %{name}-6.8-fortran-tag-constant.patch
147 Patch334: %{name}-6.8-ctors-dtors-unique.patch
148 Patch337: %{name}-6.8-attach-signalled-detach-stopped.patch
149 Patch343: %{name}-6.8-watchpoint-conditionals-test.patch
150 Patch348: %{name}-6.8-bz466901-backtrace-full-prelinked.patch
151 Patch349: %{name}-archer.patch
152 Patch352: %{name}-6.8-bz457187-largefile.patch
153 URL: http://www.gnu.org/software/gdb/
154 BuildRequires: autoconf >= 2.53
155 BuildRequires: automake
158 BuildRequires: libtool
159 BuildRequires: ncurses-devel >= 5.2
160 BuildRequires: python-devel
161 BuildRequires: readline-devel >= 6.0
162 BuildRequires: rpm-pythonprov
163 BuildRequires: texinfo >= 4.4
164 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
167 Gdb is a full featured, command driven debugger. Gdb allows you to
168 trace the execution of programs and examine their internal state at
169 any time. Gdb works for C and C++ compiled with the GNU C compiler
172 %description -l de.UTF-8
173 dem Sie die Ausführung von Programmen verfolgen und jederzeit den
174 inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C
177 %description -l es.UTF-8
178 Este es un debugger orientado a comandos repleto de características.
179 Te permite rastrear la ejecución de programas y examinar su estado
180 interno a cualquier momento. Funciona para C y C++ compilado con el
183 %description -l fr.UTF-8
184 Débugger complet, piloté par commandes. Permet de tracer l'exécution
185 des programmes et d'examiner à tout moment leur état interne.
186 Fonctionne avec les binaires C et C++ compilés avec le compilateur C
189 %description -l pl.UTF-8
190 Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalającym
191 śledzić wykonywanie programu i badać jego stan wewnętrzny. Gdb
192 umożliwia odpluskwianie programów napisanych w C/C++ i skompilowanych
193 przy pomocy kompilatora GNU (gcc).
195 %description -l pt_BR.UTF-8
196 Este é um debugger orientado a comandos repleto de características.
197 Ele permite à você rastrear a execução de programas e examinar o seu
198 estado interno a qualquer momento. Ele funciona para para C e C++
199 compilado com o compilador GNU C.
201 %description -l ru.UTF-8
202 Это полноценный отладчик, управляемый командами. Он позволяет
203 трассировать исполнение программ и изучать их внутреннее состояние в
204 любой момент времени. Работает с программами на C и C++,
205 скомпилированными GNU компилятором C (gcc, egcs, pgcc).
207 %description -l tr.UTF-8
208 Bir komut arayüzü üzerinden programcıya programını adım adım izleme
209 (trace) ve herhangi bir anda programın durumunu inceleme olanağı
212 %description -l uk.UTF-8
213 Це повноцінний відладчик, що керується командами. Він дозволяє
214 трасувати виконання програм та вивчати їх внутрішній стан в довільний
215 момент часу. Працює з програмами на C та C++, зкомпільованими
216 компіляторами GNU C (gcc, egcs, pgcc).
219 Summary: GDB in the form of a static library
220 Summary(pl.UTF-8): GDB w postaci biblioteki statycznej
221 Group: Development/Debuggers
222 #Requires: binutils-devel >= 2.17.50
225 GDB in the form of a static library.
227 %description lib -l pl.UTF-8
228 GDB w postaci biblioteki statycznej.
231 %setup -q -n %{name}-%{version}.%{snap}
238 # Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
239 rm -f gdb/ada-exp.c gdb/ada-lex.c gdb/c-exp.c gdb/cp-name-parser.c gdb/f-exp.c
240 rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
242 # Apply patches defined above.
244 # Match the Fedora's version info.
360 for dir in `find gdb/ -name 'configure.in'`; do
361 dir=$(dirname "$dir")
370 cp -f /usr/share/automake/config.* .
371 # don't --enable-shared here, there would be libs version mismatch with binutils
373 --with-gdb-datadir=%{_datadir}/gdb \
374 --with-separate-debug-dir=/usr/lib/debug \
375 --with-pythondir=%{py_sitedir} \
384 --with-cpu=%{_target_cpu} \
388 --without-included-gettext \
389 --without-included-regex \
396 rm -rf $RPM_BUILD_ROOT
397 install -d $RPM_BUILD_ROOT%{_infodir}
399 %{__make} install install-info \
400 DESTDIR=$RPM_BUILD_ROOT
402 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
404 install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir}
407 rm -rf $RPM_BUILD_ROOT
409 %post -p /sbin/postshell
410 -/usr/sbin/fix-info-dir -c %{_infodir}
412 %postun -p /sbin/postshell
413 -/usr/sbin/fix-info-dir -c %{_infodir}
416 %defattr(644,root,root,755)
417 %doc gdb/{ChangeLog,NEWS,PROBLEMS,README}
418 %attr(755,root,root) %{_bindir}/*
422 %lang(es) %{_mandir}/es/man1/*
423 %lang(fr) %{_mandir}/fr/man1/*
424 %lang(hu) %{_mandir}/hu/man1/*
425 %lang(ja) %{_mandir}/ja/man1/*
426 %lang(pl) %{_mandir}/pl/man1/*
427 %{_infodir}/gdb*.info*
428 %{_infodir}/stabs*.info*
431 %defattr(644,root,root,755)