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