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