# - change install msg to poldek in buildid-locate-rpm-pld.patch when poldek allows it. LP#493922
#
# Conditional build:
+%bcond_without guile # Guile embedded scripting
%bcond_without python # build without python support
Summary: A GNU source-level debugger for C, C++ and Fortran
Summary(zh_TW.UTF-8): [.-A開發]C和.$)B其.-A他語.$)B言的調試器
%define snap 20120926
Name: gdb
-Version: 7.6.2
+Version: 7.8
Release: 1
License: GPL v3+
Group: Development/Debuggers
-Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2
-# Source0-md5: 496399e96654fc0f899a5c964bc1f0f8
+Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.xz
+# Source0-md5: bd958fe9019d7c7896f29f6724a764ed
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 2e8a48939ae282c12bbacdd54e398247
Source3: %{name}-gstack.man
Patch102: gdb-6.6-buildid-locate-rpm.patch
Patch103: gdb-6.6-buildid-locate-core-as-arg.patch
Patch104: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
-Patch105: gdb-6.3-gstack-20050411.patch
-Patch106: gdb-gdb-add-index-script.patch
-Patch107: floatformat_ibm_long_double.patch
+Patch105: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
+Patch110: gdb-6.3-gstack-20050411.patch
+Patch111: gdb-gdb-add-index-script.patch
+Patch112: gdb-archer-vla-tests.patch
+Patch113: gdb-vla-intel.patch
+Patch114: gdb-vla-intel-04of23-fix.patch
+Patch115: gdb-vla-intel-stringbt-fix.patch
Patch1000: %{name}-readline.patch
Patch1001: %{name}-info.patch
Patch1002: %{name}-passflags.patch
BuildRequires: expat-devel
BuildRequires: flex
BuildRequires: gettext-devel
+%{?with_guile:BuildRequires: guile-devel >= 2.0}
BuildRequires: libselinux-devel
BuildRequires: libtool
BuildRequires: libunwind-devel >= 0.97
%patch103 -p1
%patch104 -p1
%patch105 -p1
-%patch106 -p1
-%patch107 -p1
+%patch110 -p1
+%patch111 -p1
+%patch112 -p1
+%patch113 -p1
+%patch114 -p1
+%patch115 -p1
%patch1000 -p1
%patch1001 -p1
--with-pythondir=%{py_sitescriptdir} \
%else
--without-python \
+%endif
+%if %{with guile}
+ --with-guile \
+%else
+ --without-guile \
%endif
--disable-gdbtk \
--disable-shared \
%{__rm} $RPM_BUILD_ROOT%{_infodir}/{bfd,configure,standards}.info*
%{__rm} $RPM_BUILD_ROOT%{_includedir}/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{bfd,iberty,opcodes}.a
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.a
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/gdbtui
%attr(755,root,root) %{_bindir}/gdb-add-index
%attr(755,root,root) %{_bindir}/gstack
+%attr(755,root,root) %{_bindir}/gcore
%dir %{_datadir}/gdb
%dir %{_datadir}/gdb/auto-load
%dir %{_datadir}/gdb/auto-load%{_prefix}
%ifarch %{x8664}
%dir %{_datadir}/gdb/auto-load%{_prefix}/lib64
%endif
+%{?with_guile:%{_datadir}/gdb/guile}
%{_datadir}/gdb/syscalls
+%{_datadir}/gdb/system-gdbinit
%{_datadir}/gdb/python
%{_mandir}/man1/gdb.1*
%{_mandir}/man1/gdbtui.1*
+%{_mandir}/man1/gdb-add-index.1*
%{_mandir}/man1/gstack.1*
+%{_mandir}/man1/gcore.1*
+%{_mandir}/man5/gdbinit.5*
%lang(es) %{_mandir}/es/man1/*
%lang(fr) %{_mandir}/fr/man1/*
%lang(hu) %{_mandir}/hu/man1/*
%lang(pl) %{_mandir}/pl/man1/*
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*
-%{_infodir}/gdbint.info*
%{_infodir}/stabs.info*
%files gdbserver