Summary: X interface to the GDB, DBX and XDB debuggers
+Summary(ja.UTF-8): GDB,DBX,Ladebug,JDB,Perl,Pythonのグラフィカルデバッガのフロントエンド
+Summary(pl.UTF-8): Interfejs X do debugerów GDB, DBX i XDB
+Summary(zh_CN.UTF-8): 图形化的程序调试器前端;如GDB,DBX,Ladebug,JDB,Perl,Python
Name: ddd
-Version: 3.1.4
-Release: 1
-Source: ftp://ftp.ips.cs.tu-bs.de/pub/local/softech/ddd/src/%{name}-%{version}.tar.gz
-Copyright: GPL
+Version: 3.3.11
+Release: 7
+Epoch: 1
+License: GPL
Group: Development/Debuggers
-Group(pl): Programowanie/Odpluskwiacze
-Icon: ddd.xpm
-URL: http://www.cs.tu-bs.de/softech/ddd/
-Buildroot: /tmp/%{name}-%{version}-root
+Source0: http://ftp.gnu.org/gnu/ddd/%{name}-%{version}.tar.gz
+# Source0-md5: f19437ebfdb5f2667d6de30f700dd319
+Source1: %{name}.desktop
+Source2: http://art.gnome.org/images/icons/other/Debugger.png
+# Source2-md5: c046d9b0a04abdbb4a2be08a374ac2cd
+Patch0: %{name}-ptrace.patch
+Patch1: %{name}-info.patch
+Patch2: %{name}-home_etc.patch
+Patch3: %{name}-am185.patch
+URL: http://www.gnu.org/software/ddd/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
+BuildRequires: bison
+BuildRequires: elfutils-devel
+BuildRequires: flex
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: motif-devel
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: readline-devel
+BuildRequires: xorg-lib-libXmu-devel
+BuildRequires: xorg-lib-libXpm-devel
+BuildRequires: texinfo
+Requires: gdb
+Requires: xorg-lib-libXt >= 1.0.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdefsdir %{_datadir}/X11/app-defaults
+
+%define specflags -fno-strict-aliasing
%description
-The Data Display Debugger (DDD) is a common graphical user interface for
-GDB, DBX, and XDB, the popular UNIX debuggers. Besides ``classical''
-front-end features such as viewing source texts, DDD provides a graphical
-data display, where data structures are displayed as graphs. A simple mouse
-click dereferences pointers or views structure contents, updated each time
-the program stops. Using DDD, you can reason about your application by
-viewing its data, not just by viewing it execute lines of source code.
-Other DDD features include: debugging of programs written in C, C++, Ada,
-Fortran, Java, Pascal, Modula-2, or Modula-3; machine-level debugging;
-hypertext source navigation and lookup; breakpoint, backtrace, and history
-editors; preferences and settings editors; program execution in terminal
-emulator window; debugging on remote host; on-line manual; interactive help
-on the Motif user interface; GDB/DBX/XDB command-line interface with full
-editing, history, search, and completion capabilities. DDD has been
-designed to compete with well-known commercial debuggers
-
-%package python
-Summary: X interface to the GDB, DBX and XDB debuggers - The python debugger
-Group: Development/Debuggers
-Group(pl): Programowanie/Odpluskwiacze
-Requires: %{name} = %{version}
-
-%description python
-Data Display Debugger - python debugger.
+The Data Display Debugger (DDD) is a common graphical user interface
+for GDB, DBX, and XDB, the popular UNIX debuggers. Besides
+``classical'' front-end features such as viewing source texts, DDD
+provides a graphical data display, where data structures are displayed
+as graphs. A simple mouse click dereferences pointers or views
+structure contents, updated each time the program stops. Using DDD,
+you can reason about your application by viewing its data, not just by
+viewing it execute lines of source code. Other DDD features include:
+debugging of programs written in C, C++, Ada, Fortran, Java, Pascal,
+Modula-2, or Modula-3; machine-level debugging; hypertext source
+navigation and lookup; breakpoint, backtrace, and history editors;
+preferences and settings editors; program execution in terminal
+emulator window; debugging on remote host; on-line manual; interactive
+help on the Motif user interface; GDB/DBX/XDB command-line interface
+with full editing, history, search, and completion capabilities. DDD
+has been designed to compete with well-known commercial debuggers
+
+%description -l ja.UTF-8
+DDDは、GDB,DBX,WDB,Ladebug,JDB,XDB,Perlデバッガ、またはPythonデバッガ
+のようなコマンドライン型デバッガをグラフィカル型のデバッガに変身させる
+フロントエンドです。ソースコードの参照等のような"通常"のフロントエンド
+の機能のみならず、DDDはデータ構造をグラフとして表示する、会話式グラフ
+ィカルデータ表示することで有名になりました。
+
+%description -l pl.UTF-8
+Data Display Debugger (DDD) jest typowym graficznym interfejsem do
+GDB, DBX, i XDB - popularnych UNIXowych debuggerów. Poza
+``klasycznymi'' możliwościami interfejsów graficznych takich jak
+przeglądanie kodów źródłowych DDD dostarcza graficznych narzędzi,
+gdzie struktury wyświetlane są w postaci graficznej. Proste kliknięcie
+myszą pozwala na przeglądanie zawartości struktur (aktualizowane za
+każdym razem gdy program się zatrzyma). Inne możliwości DDD to:
+możliwość debugowania programów napisanych w C, C++, Ada, Fortran,
+Java, Pascal, Modula-2, or Modula-2; debugowanie na poziomie maszyny;
+hypertekstowa nawigacja po źródłach; breakpoint, backtrace i emulator
+okna historii; możliwość ustawiania preferencji; uruchamianie
+programów w oknie terminala; debugowanie na zdalnych serwerach;
+podręcznik on-line; interaktywna pomoc; linia poleceń GDB/DBX/XDB z
+pełną edycją, historią i wyszukiwaniem.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
--with-motif \
- --prefix=/usr/X11R6
-make CXXOPT="-DNDEBUG $RPM_OPT_FLAGS"
+ --with-readline \
+ --with-termlib=tinfo
+
+%{__make} \
+ CXXOPT="-DNDEBUG %{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/{lib/python-1.5,X11R6/lib/X11/app-defaults}}
-
-make install prefix=$RPM_BUILD_ROOT/usr/X11R6
+install -d $RPM_BUILD_ROOT{%{_appdefsdir},%{_desktopdir},%{_pixmapsdir}}
-install pydb/pydb.py $RPM_BUILD_ROOT/usr/X11R6/bin
-install pydb/{pydbcmd,pydbsupt}.py $RPM_BUILD_ROOT/usr/lib/python-1.5
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-install ddd/Ddd $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults
-gzip -9nf $RPM_BUILD_ROOT/usr/X11R6/man/man1/*
+install ddd/Ddd $RPM_BUILD_ROOT%{_appdefsdir}
-cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/ddd <<EOF
-ddd name "DDD"
-ddd description "Data Display Debuger"
-ddd exec "/usr/X11R6/bin/ddd"
-ddd group "Development"
-EOF
-
-cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/ddd-python <<EOF
-ddd name "DDD for python"
-ddd description "Data Display Debuger - python"
-ddd exec "/usr/X11R6/bin/ddd --pydb"
-ddd group "Development"
-EOF
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/ddd.png
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
%files
-%defattr(644, root, root, 755)
-%doc DOCS ANNOUNCE BUGS ChangeLog* NEWS* OPENBUGS PROBLEMS README TIPS TODO doc/sample.dddinit
-/etc/X11/wmconfig/ddd
-%attr(755, root, root) /usr/X11R6/bin/*
-
-/usr/X11R6/lib/X11/app-defaults/Ddd
-
-/usr/X11R6/man/man1/*
-
-%files python
-%defattr(644, root, root, 755)
-/etc/X11/wmconfig/ddd-python
-%attr(755,root,root) /usr/X11R6/bin/pydb.py
-/usr/lib/python*/*
-
-%changelog
-* Sun Mar 21 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [3.1.4-1]
-- removed man group from man pages,
-- added Group(pl).
-
-* Wed Dec 2 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [3.1-1]
-- based on spec written by Alec Habig <habig@budoe.bu.edu>,
-- only one package is now generated,
-- added -q %setup parameter,
-- added gziping man pages,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- removeda all %post{un} scripts,
-- added package Icon,
-- added python subpackage,
-- removed Packager field (this must be placed in private ~/.rpmrc),
-- added %attr and %defattr macros in %files (allows build package from
- non-root account).
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README TIPS TODO doc/*.pdf
+%attr(755,root,root) %{_bindir}/ddd
+%{_datadir}/ddd*
+%{_appdefsdir}/Ddd
+%{_desktopdir}/ddd.desktop
+%{_pixmapsdir}/*.png
+%{_mandir}/man1/*
+%{_infodir}/ddd*