1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: MinGW port of the GNU debugger (gdb)
13 Group: Development/Libraries
14 URL: http://www.mingw.org/MinGWiki/index.php/gdb
15 Source0: http://dl.sourceforge.net/sourceforge/mingw/gdb-%{version}.tar.bz2
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 Patch0: mingw32-gdb-6.8-no-getcwd-error.patch
20 BuildRequires: mingw32-filesystem >= 23
25 This is the MinGW port of the GNU debugger (gdb).
27 Note this is a Fedora native binary which debugs Windows target
32 %setup -q -n gdb-%{version}
37 # Using echo normalizes spaces between the flags.
38 PKG_CONFIG_PATH="%{_mingw32_libdir}/pkgconfig" \
40 CFLAGS=`echo %{_mingw32_cflags}` \
42 --build=%_build --host=%{_mingw32_host} --target=%{_mingw32_target} \
43 --prefix=%{_mingw32_prefix} \
44 --infodir=%{_mingw32_datadir}/info \
45 --mandir=%{_mingw32_mandir}
51 rm -rf $RPM_BUILD_ROOT
52 make DESTDIR=$RPM_BUILD_ROOT install
56 rm -rf $RPM_BUILD_ROOT
61 %{_mingw32_bindir}/gdb.exe
62 %{_mingw32_bindir}/gdbserver.exe
63 %{_mingw32_libdir}/libbfd.a
64 %{_mingw32_libdir}/libbfd.la
65 %{_mingw32_libdir}/libiberty.a
66 %{_mingw32_libdir}/libopcodes.a
67 %{_mingw32_libdir}/libopcodes.la
68 %{_mingw32_includedir}/*
69 %{_mingw32_datadir}/info/*
70 %{_mingw32_mandir}/man1/*.1*
71 %{_mingw32_datadir}/locale/*/LC_MESSAGES/*
75 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 6.8-3
76 - Rename mingw -> mingw32.
78 * Fri Sep 12 2008 Richard W.M. Jones <rjones@redhat.com> - 6.8-2
79 - Initial RPM release.