]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb.spec
- use macros in %{pre,post}{,un}
[packages/gdb.git] / gdb.spec
index 91b7a57d258de43e2c56e8649a6b62e7b620de38..13419307f7c520c1c47b538d3ed1106cffb88c8d 100644 (file)
--- a/gdb.spec
+++ b/gdb.spec
@@ -5,14 +5,20 @@ Summary(pl):  Symboliczny odpluskwiacz dla C i innych j
 Summary(tr):   C ve diðer diller için sembolik hata ayýklayýcý
 Name:          gdb
 Version:       5.0
-Release:       2
+Release:       6
 License:       GPL
 Group:         Development/Debuggers
 Group(pl):     Programowanie/Odpluskwiacze
+Group(de):     Entwicklung/Debugger
 Source0:       ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.bz2
-#Patch0:       gdb-shared-readline.patch
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: readline-devel >= 4.1
+Patch0:                %{name}-gettext.patch
+Patch1:                %{name}-ncurses.patch
+Patch2:                %{name}-readline.patch
+Patch3:                %{name}-info.patch
+Patch4:                %{name}-procfs.patch
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.2
+BuildRequires: XFree86-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,16 +51,35 @@ verir.
 
 %prep
 %setup -q
-#%patch0 -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
-       --prefix=%{_prefix} \
-       --infodir=%{_infodir} \
-       --mandir=%{_mandir} \
-       --enable-shared
-
+(cd gdb; aclocal; autoconf; cd ..)
+# !! Don't enable shared here !! 
+# This will cause serious problems --misiek
+%configure \
+       --disable-shared \
+       --enable-nls \
+       --without-included-gettext \
+       --enable-multi-ice \
+       --enable-gdbmi \
+       --enable-netrom \
+       --with-cpu=%{_target_cpu} \
+       --with-x \
+%ifnarch alpha
+       --with-mmalloc \
+%endif
+       --with-mmap
+#      --enable-tui
+
+# rebuild main Makefile again (due to some bug, Makefile is deleted)
+%configure \
+       --norecursion
+                       
 %{__make}
 %{__make} info
 
@@ -62,23 +87,22 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_infodir}
 
-%{__make} install \
+%{__make} install install-info \
        prefix=$RPM_BUILD_ROOT%{_prefix} \
+       bindir=$RPM_BUILD_ROOT%{_bindir} \
+       sbindir=$RPM_BUILD_ROOT%{_sbindir} \
        infodir=$RPM_BUILD_ROOT%{_infodir} \
+       includedir=$RPM_BUILD_ROOT%{_includedir} \
+       libdir=$RPM_BUILD_ROOT%{_libdir} \
        mandir=$RPM_BUILD_ROOT%{_mandir}
 
-# install by hand
-install gdb/doc/*.info* $RPM_BUILD_ROOT%{_infodir}
-
-strip $RPM_BUILD_ROOT%{_bindir}/*
-
 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/man?/*}
 
 %post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
 
 %postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.026041 seconds and 4 git commands to generate.