summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-03-20 02:20:02 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-03-20 02:20:02 -0500
commitbbcbd493627f1c99dbb70bca78384cafb0254148 (patch)
tree663653ff5aa67dfbd3d072be1a0884b24167ecd3
downloadcygwin-gdb-bbcbd493627f1c99dbb70bca78384cafb0254148.tar.gz
cygwin-gdb-bbcbd493627f1c99dbb70bca78384cafb0254148.tar.xz
cygwin-gdb-bbcbd493627f1c99dbb70bca78384cafb0254148.zip
cygwin-gdb 7.2-1
-rw-r--r--cygwin-gdb.spec78
-rw-r--r--sources1
2 files changed, 79 insertions, 0 deletions
diff --git a/cygwin-gdb.spec b/cygwin-gdb.spec
new file mode 100644
index 0000000..4874ba3
--- /dev/null
+++ b/cygwin-gdb.spec
@@ -0,0 +1,78 @@
+Name: cygwin-gdb
+Version: 7.2
+Release: 1%{?dist}
+Summary: Cygwin GNU debugger
+
+License: GPLv3+
+Group: Development/Utilities
+URL: http://www.gnu.org/software/gdb/
+Source0: http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: expat-devel
+BuildRequires: ncurses-devel
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: texinfo
+BuildRequires: cygwin-filesystem
+
+# NB: This must be left in.
+Requires: cygwin-filesystem
+
+
+%description
+GNU debugger which understands Cygwin PE executables and DLLs,
+using a gdbserver(1) instance on a Cygwin machine to run the executable.
+
+
+%prep
+%setup -q -n gdb-%{version}
+
+
+%build
+mkdir -p build
+cd build
+CFLAGS="$RPM_OPT_FLAGS" \
+../configure \
+ --build=%_build --host=%_host \
+ --target=%{_cygwin_target} \
+ --verbose --disable-nls \
+ --without-included-gettext \
+ --disable-win32-registry \
+ --disable-werror \
+ --with-sysroot=%{_cygwin_sysroot} \
+ --prefix=%{_prefix} --bindir=%{_bindir} \
+ --includedir=%{_includedir} --libdir=%{_libdir} \
+ --mandir=%{_mandir} --infodir=%{_infodir}
+
+make all
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+cd build
+make DESTDIR=$RPM_BUILD_ROOT install
+
+# This file conflicts with ordinary binutils.
+rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
+
+# These files conflict with ordinary gdb.
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gdb/syscalls
+rm -rf $RPM_BUILD_ROOT%{_infodir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING3 COPYING3.LIB COPYING COPYING.LIB README
+%{_bindir}/i686-pc-cygwin-*
+%{_mandir}/man1/i686-pc-cygwin-*
+
+
+%changelog
+* Mon Mar 21 2011 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> - 7.2-1
+- Initial RPM release.
diff --git a/sources b/sources
new file mode 100644
index 0000000..6c2d734
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+64260e6c56979ee750a01055f16091a5 gdb-7.2.tar.bz2