Summary(uk.UTF-8): Символьний відладчик для С та інших мов
Summary(zh_CN.UTF-8): [开发]C和其他语言的调试器
Summary(zh_TW.UTF-8): [.-A開發]C和.$)B其.-A他語.$)B言的調試器
+%define snap 20090311
Name: gdb
-Version: 6.7
-Release: 1
+Version: 6.8.50
+Release: 0.%{snap}.1
License: GPL v3+
Group: Development/Debuggers
-Source0: ftp://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2
-# Source0-md5: d6e7c0ad7654bc91a3a457fabb6ad6c6
+# Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2
+Source0: ftp://sourceware.org/pub/gdb/snapshots/current/gdb-%{version}.%{snap}.tar.bz2
+# Source0-md5: 911b57b37260317251b55ab3393913a5
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 2e8a48939ae282c12bbacdd54e398247
Patch0: %{name}-readline.patch
Patch1: %{name}-info.patch
Patch2: %{name}-passflags.patch
-Patch4: %{name}-gdbinit-stat.patch
Patch5: %{name}-pretty-print-by-default.patch
Patch6: %{name}-absolute-gnu_debuglink-path.patch
+URL: http://www.gnu.org/software/gdb/
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
BuildRequires: ncurses-devel >= 5.2
-BuildRequires: readline-devel >= 4.3
-BuildRequires: texinfo
+BuildRequires: readline-devel >= 6.0
+BuildRequires: texinfo >= 4.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary: GDB in the form of a static library
Summary(pl.UTF-8): GDB w postaci biblioteki statycznej
Group: Development/Debuggers
-#Requires: binutils-static >= 2.17.50
+#Requires: binutils-devel >= 2.17.50
%description lib
GDB in the form of a static library.
GDB w postaci biblioteki statycznej.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}.%{snap}
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch4 -p0
%patch5 -p1
%patch6 -p1
cd $olddir
done
cp -f /usr/share/automake/config.* .
-# !! Don't enable shared here !!
-# This will cause serious problems.
+# don't --enable-shared here, there would be libs version mismatch with binutils
%configure \
--disable-gdbtk \
--disable-shared \
--enable-nls \
--enable-tui \
--with-cpu=%{_target_cpu} \
- --without-included-gettext \
- --without-included-regex \
- --without-x \
%ifnarch alpha
- --with-mmalloc
+ --with-mmalloc \
%endif
+ --without-included-gettext \
+ --without-included-regex \
+ --without-x
%{__make}
%{__make} info
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)