X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=gdb%2Fmingw32-gdb.spec;fp=gdb%2Fmingw32-gdb.spec;h=54cff0c6fbe68ace3eaaa5c3fdaf8f70cae70de6;hb=14bb5f7a7a8110b0c21eef08c532bd7f18c42e8e;hp=0000000000000000000000000000000000000000;hpb=bfb2581bd208d7f921e65ea388bf6f4f3f90adfb;p=fedora-mingw.git diff --git a/gdb/mingw32-gdb.spec b/gdb/mingw32-gdb.spec new file mode 100644 index 0000000..54cff0c --- /dev/null +++ b/gdb/mingw32-gdb.spec @@ -0,0 +1,79 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-gdb +Version: 6.8 +Release: 3%{?dist} +Summary: MinGW port of the GNU debugger (gdb) + +License: GPLv2+ +Group: Development/Libraries +URL: http://www.mingw.org/MinGWiki/index.php/gdb +Source0: http://dl.sourceforge.net/sourceforge/mingw/gdb-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Patch0: mingw32-gdb-6.8-no-getcwd-error.patch + +BuildRequires: mingw32-filesystem >= 23 +BuildRequires: flex + + +%description +This is the MinGW port of the GNU debugger (gdb). + +Note this is a Fedora native binary which debugs Windows target +executables. + + +%prep +%setup -q -n gdb-%{version} +%patch0 -p1 + + +%build +# Using echo normalizes spaces between the flags. +PKG_CONFIG_PATH="%{_mingw32_libdir}/pkgconfig" \ +CC="%{_mingw32_cc}" \ +CFLAGS=`echo %{_mingw32_cflags}` \ +./configure \ + --build=%_build --host=%{_mingw32_host} --target=%{_mingw32_target} \ + --prefix=%{_mingw32_prefix} \ + --infodir=%{_mingw32_datadir}/info \ + --mandir=%{_mingw32_mandir} + +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/gdb.exe +%{_mingw32_bindir}/gdbserver.exe +%{_mingw32_libdir}/libbfd.a +%{_mingw32_libdir}/libbfd.la +%{_mingw32_libdir}/libiberty.a +%{_mingw32_libdir}/libopcodes.a +%{_mingw32_libdir}/libopcodes.la +%{_mingw32_includedir}/* +%{_mingw32_datadir}/info/* +%{_mingw32_mandir}/man1/*.1* +%{_mingw32_datadir}/locale/*/LC_MESSAGES/* + + +%changelog +* Wed Sep 24 2008 Richard W.M. Jones - 6.8-3 +- Rename mingw -> mingw32. + +* Fri Sep 12 2008 Richard W.M. Jones - 6.8-2 +- Initial RPM release.