File gdb.spec.patch of Package gdb

--- gdb.spec	2007-10-24 12:13:21.000000000 +0200
+++ gdb.spec	2007-10-24 12:31:33.000000000 +0200
@@ -13,3 +13,3 @@
 Name:           gdb
-BuildRequires:  bison dejagnu flex gcc-c++ gcc-fortran gcc-java gcc-objc readline-devel
+BuildRequires:  bison dejagnu flex gcc-c++ gcc-java readline-devel
 %if 0%{?suse_version} > 1020
@@ -19,2 +19,9 @@
 %endif
+%if 0%{?sles_version} != 10
+BuildRequires:  gcc-objc
+%endif
+%if 0%{?mandriva_version} == 0 && 0%{?fedora_version} == 0
+%if 0%{?sles_version} != 10
+BuildRequires:  gcc-fortran
+%endif
 %ifarch %ix86 x86_64 ia64
@@ -25,2 +32,3 @@
 %endif
+%endif
 Url:            http://www.gnu.org/software/gdb/
@@ -29,3 +37,5 @@
 AutoReqProv:    on
+%if 0%{?suse_version}
 PreReq:         %{install_info_prereq}
+%endif
 Version:        6.7
@@ -94,3 +104,8 @@
 	    --enable-64-bit-bfd --disable-werror \
-	    --build=%{_target_cpu}-suse-linux
+%if 0%{?suse_version}
+	    --build=%{_target_cpu}-suse-linux \
+%else
+	    --build=%{_target_cpu}-linux \
+%endif
+	    --disable-tui
 make %{?jobs:-j%jobs}
@@ -102,2 +117,5 @@
 %install
+%if 0%{?mandriva_version}
+#CFLAGS="$RPM_OPT_FLAGS" \
+%endif
 make install-gdb install-info-gdb DESTDIR="$RPM_BUILD_ROOT"
openSUSE Build Service is sponsored by