]>
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言的調試器 | |
0241102e | 15 | Name: gdb |
62be29ad | 16 | Version: 6.7 |
f5d85256 | 17 | Release: 1 |
d7c2fd3d | 18 | License: GPL v3+ |
0241102e | 19 | Group: Development/Debuggers |
a04b8553 | 20 | Source0: ftp://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2 |
62be29ad | 21 | # Source0-md5: d6e7c0ad7654bc91a3a457fabb6ad6c6 |
31a43e77 | 22 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
feb56b14 | 23 | # Source1-md5: 2e8a48939ae282c12bbacdd54e398247 |
fc5a2138 JB |
24 | Patch0: %{name}-readline.patch |
25 | Patch1: %{name}-info.patch | |
26 | Patch2: %{name}-passflags.patch | |
fc5a2138 | 27 | Patch4: %{name}-gdbinit-stat.patch |
a08563ef | 28 | Patch5: %{name}-pretty-print-by-default.patch |
097d37d7 | 29 | Patch6: %{name}-absolute-gnu_debuglink-path.patch |
e92b6e8a | 30 | BuildRequires: autoconf >= 2.53 |
830462ab | 31 | BuildRequires: automake |
435950f1 JB |
32 | BuildRequires: bison |
33 | BuildRequires: flex | |
72a26adc | 34 | BuildRequires: libtool |
4e6d01d3 | 35 | BuildRequires: ncurses-devel >= 5.2 |
de04f849 | 36 | BuildRequires: readline-devel >= 4.3 |
f234b100 | 37 | BuildRequires: texinfo |
b4655cd1 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6aa96a1b | 39 | |
40 | %description | |
92563ae4 | 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. | |
6aa96a1b | 45 | |
f01e46e5 JR |
46 | %description -l de.UTF-8 |
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 | |
92563ae4 | 49 | kompiliertes C++. |
6aa96a1b | 50 | |
f01e46e5 JR |
51 | %description -l es.UTF-8 |
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 | |
c15663f7 | 54 | interno a cualquier momento. Funciona para C y C++ compilado con el |
55 | compilador GNU C. | |
56 | ||
f01e46e5 JR |
57 | %description -l fr.UTF-8 |
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 | |
92563ae4 | 61 | de GNU, gcc. |
6aa96a1b | 62 | |
f01e46e5 JR |
63 | %description -l pl.UTF-8 |
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 | |
92563ae4 | 67 | przy pomocy kompilatora GNU (gcc). |
6aa96a1b | 68 | |
f01e46e5 JR |
69 | %description -l pt_BR.UTF-8 |
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 | |
c15663f7 | 72 | estado interno a qualquer momento. Ele funciona para para C e C++ |
73 | compilado com o compilador GNU C. | |
74 | ||
f01e46e5 JR |
75 | %description -l ru.UTF-8 |
76 | Это полноценный отладчик, управляемый командами. Он позволяет | |
77 | трассировать исполнение программ и изучать их внутреннее состояние в | |
78 | любой момент времени. Работает с программами на C и C++, | |
79 | скомпилированными GNU компилятором C (gcc, egcs, pgcc). | |
11d14365 | 80 | |
f01e46e5 JR |
81 | %description -l tr.UTF-8 |
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ğı | |
92563ae4 | 84 | verir. |
6aa96a1b | 85 | |
f01e46e5 JR |
86 | %description -l uk.UTF-8 |
87 | Це повноцінний відладчик, що керується командами. Він дозволяє | |
88 | трасувати виконання програм та вивчати їх внутрішній стан в довільний | |
89 | момент часу. Працює з програмами на C та C++, зкомпільованими | |
90 | компіляторами GNU C (gcc, egcs, pgcc). | |
11d14365 | 91 | |
f02a934e | 92 | %package lib |
4e0c2e1e | 93 | Summary: GDB in the form of a static library |
0ec45698 | 94 | Summary(pl.UTF-8): GDB w postaci biblioteki statycznej |
f02a934e JR |
95 | Group: Development/Debuggers |
96 | #Requires: binutils-static >= 2.17.50 | |
97 | ||
98 | %description lib | |
99 | GDB in the form of a static library. | |
100 | ||
f01e46e5 | 101 | %description lib -l pl.UTF-8 |
4e0c2e1e JB |
102 | GDB w postaci biblioteki statycznej. |
103 | ||
6aa96a1b | 104 | %prep |
0241102e | 105 | %setup -q |
30a98da2 | 106 | %patch0 -p1 |
0cd7a575 AM |
107 | %patch1 -p1 |
108 | %patch2 -p1 | |
fc5a2138 | 109 | %patch4 -p0 |
a08563ef | 110 | %patch5 -p1 |
097d37d7 | 111 | %patch6 -p1 |
9164351f | 112 | |
6aa96a1b | 113 | %build |
0cd7a575 AM |
114 | for dir in `find gdb/ -name 'configure.in'`; do |
115 | dir=$(dirname "$dir") | |
116 | olddir=$(pwd) | |
117 | cd $dir | |
118 | rm -f aclocal.m4 | |
119 | %{__aclocal} | |
120 | %{__autoconf} | |
121 | cd $olddir | |
122 | done | |
3661d025 | 123 | cp -f /usr/share/automake/config.* . |
b8e906ff | 124 | # !! Don't enable shared here !! |
62be29ad AM |
125 | # This will cause serious problems. |
126 | %configure \ | |
fdffb271 | 127 | --disable-gdbtk \ |
ebd49a3e | 128 | --disable-shared \ |
fdffb271 | 129 | --enable-gdbcli \ |
b257c914 | 130 | --enable-gdbmi \ |
131 | --enable-multi-ice \ | |
ebd49a3e | 132 | --enable-netrom \ |
fdffb271 | 133 | --enable-nls \ |
5f8bd10e | 134 | --enable-tui \ |
fdffb271 JB |
135 | --with-cpu=%{_target_cpu} \ |
136 | --without-included-gettext \ | |
137 | --without-included-regex \ | |
138 | --without-x \ | |
ac43b5eb | 139 | %ifnarch alpha |
4e6d01d3 | 140 | --with-mmalloc |
ac43b5eb | 141 | %endif |
ebd49a3e | 142 | |
64683032 | 143 | %{__make} |
36e61e18 | 144 | %{__make} info |
6aa96a1b | 145 | |
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
5ff7d7dd | 148 | install -d $RPM_BUILD_ROOT%{_infodir} |
6aa96a1b | 149 | |
ebd49a3e | 150 | %{__make} install install-info \ |
f7477d2b | 151 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
ebd49a3e AM |
152 | bindir=$RPM_BUILD_ROOT%{_bindir} \ |
153 | sbindir=$RPM_BUILD_ROOT%{_sbindir} \ | |
f7477d2b | 154 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
ebd49a3e AM |
155 | includedir=$RPM_BUILD_ROOT%{_includedir} \ |
156 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
5ff7d7dd | 157 | mandir=$RPM_BUILD_ROOT%{_mandir} |
e611e157 | 158 | |
8d9a5f3e | 159 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
160 | ||
f02a934e JR |
161 | install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir} |
162 | ||
b0a9ea6d JB |
163 | %clean |
164 | rm -rf $RPM_BUILD_ROOT | |
6aa96a1b | 165 | |
166 | %post | |
1fefaec9 | 167 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
6aa96a1b | 168 | |
df4c5865 | 169 | %postun |
1fefaec9 | 170 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
6aa96a1b | 171 | |
6aa96a1b | 172 | %files |
0241102e | 173 | %defattr(644,root,root,755) |
f0842f54 | 174 | %doc gdb/{ChangeLog,NEWS,PROBLEMS,README} |
f7477d2b AF |
175 | %attr(755,root,root) %{_bindir}/* |
176 | %{_mandir}/man1/* | |
8d9a5f3e | 177 | %lang(es) %{_mandir}/es/man1/* |
178 | %lang(fr) %{_mandir}/fr/man1/* | |
179 | %lang(hu) %{_mandir}/hu/man1/* | |
180 | %lang(ja) %{_mandir}/ja/man1/* | |
181 | %lang(pl) %{_mandir}/pl/man1/* | |
5ff7d7dd | 182 | %{_infodir}/gdb*.info* |
e611e157 | 183 | %{_infodir}/stabs*.info* |
f02a934e JR |
184 | |
185 | %files lib | |
186 | %defattr(644,root,root,755) | |
187 | %{_libdir}/libgdb.a |