X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ddd.spec;h=d61ddd5419ec5083866a85658a34c767cc57e510;hb=1e2dceaef1bec1ef70f4da83e084521b3c36e1fd;hp=93523f284318a0da040d87deea40a5446f104004;hpb=47c065707edb7bf4b624e739826d6197ac4338bb;p=packages%2Fddd.git diff --git a/ddd.spec b/ddd.spec index 93523f2..d61ddd5 100644 --- a/ddd.spec +++ b/ddd.spec @@ -1,115 +1,140 @@ Summary: X interface to the GDB, DBX and XDB debuggers -Summary(pl): Interfejs X do debugerów GDB, DBX i XDB +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.6 +Version: 3.4.0 Release: 1 -Copyright: GPL +Epoch: 1 +License: GPL v3+ Group: Development/Debuggers -Group(pl): Programowanie/Odpluskwiacze -Source0: ftp://ftp.ips.cs.tu-bs.de/pub/local/softech/ddd/src/%{name}-%{version}.tar.gz -Source1: ddd.desktop -Source2: ddd-python.desktop -Icon: ddd.xpm -URL: http://www.cs.tu-bs.de/softech/ddd/ -BuildRequires: XFree86-devel -BuildRequires: xpm-devel -BuildRequires: lesstif-devel -BuildRequires: ncurses-devel +Source0: https://ftp.gnu.org/gnu/ddd/%{name}-%{version}.tar.gz +# Source0-md5: 23fc7448a189908c945fe2ba7fd3a53a +Source1: %{name}.desktop +# originally http://art.gnome.org/images/icons/other/Debugger.png +Source2: Debugger.png +# Source2-md5: c046d9b0a04abdbb4a2be08a374ac2cd +Patch0: %{name}-ptrace.patch +Patch1: %{name}-info.patch +Patch2: %{name}-home_etc.patch +URL: http://www.gnu.org/software/ddd/ +BuildRequires: autoconf >= 2.71 +BuildRequires: automake >= 1:1.9 +BuildRequires: bison >= 1.28 +BuildRequires: elfutils-devel +BuildRequires: flex +BuildRequires: gnulib BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:2 +BuildRequires: motif-devel +BuildRequires: ncurses-devel >= 5.0 +BuildRequires: readline-devel +BuildRequires: xorg-lib-libX11-devel +BuildRequires: xorg-lib-libXaw-devel +BuildRequires: xorg-lib-libXext-devel +BuildRequires: xorg-lib-libXmu-devel +BuildRequires: xorg-lib-libXpm-devel +BuildRequires: xorg-lib-libXt-devel +BuildRequires: texinfo Requires: gdb -Buildroot: /tmp/%{name}-%{version}-root +Requires: xorg-lib-libXt >= 1.0.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man +%define _appdefsdir %{_datadir}/X11/app-defaults -%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 - -%description -l pl -Data Display Debugger (DDD) jest typowm 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. - -%package python -Summary: X interface to the GDB, DBX and XDB debuggers - The python debugger -Summary(pl): Interfejs X do debugerów GDB, DBX i XDB - debuger pythona -Group: Development/Debuggers -Group(pl): Programowanie/Odpluskwiacze -Requires: %{name} = %{version} - -%description python -Data Display Debugger - python debugger. +%define specflags -fno-strict-aliasing -%description -l pl -Data Display Debugger - debugger pythona. +%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 + +%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 + +ln -sf %{_datadir}/gnulib/doc/fdl-1.3.texi ddd/fdl-1.3.texi %build -LDFLAGS="-s"; export LDFLAGS +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__automake} %configure \ - --with-motif -make CXXOPT="-DNDEBUG $RPM_OPT_FLAGS" + --with-motif \ + --with-readline \ + --with-termlib=tinfo + +%{__make} \ + CXXOPT="-DNDEBUG %{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/lib/python1.5 \ - $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \ - $RPM_BUILD_ROOT%{_datadir}/applnk/Development +install -d $RPM_BUILD_ROOT{%{_appdefsdir},%{_desktopdir},%{_pixmapsdir}} +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -make install prefix=$RPM_BUILD_ROOT%{_prefix} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - bindir=$RPM_BUILD_ROOT%{_bindir} \ - libdir=$RPM_BUILD_ROOT%{_libdir} +cp -p ddd/Ddd $RPM_BUILD_ROOT%{_appdefsdir} -install pydb/pydb.py $RPM_BUILD_ROOT%{_bindir}/pydb -install pydb/{pydbcmd,pydbsupt}.py $RPM_BUILD_ROOT/usr/lib/python1.5 +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} +cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/ddd.png -install ddd/Ddd $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults - -install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/applnk/Development - -gzip -9nf ANNOUNCE BUGS ChangeLog NEWS* OPENBUGS PROBLEMS README TIPS \ - TODO $RPM_BUILD_ROOT%{_mandir}/man1/* %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 {ANNOUNCE,BUGS,ChangeLog,NEWS*,OPENBUGS,PROBLEMS,README,TIPS,TODO}.gz -%doc doc/sample.dddinit -%{_datadir}/applnk/Development/ddd.desktop -%attr(755,root,root) %{_bindir}/* -%{_libdir}/X11/app-defaults/Ddd -%{_mandir}/man1/* - -%files python -%defattr(644,root,root,755) -%{_datadir}/applnk/Development/ddd-python.desktop -%attr(755,root,root) %{_bindir}/pydb -/usr/lib/python*/* +%doc AUTHORS CREDITS NEWS README TIPS doc/*.pdf +%attr(755,root,root) %{_bindir}/ddd +%{_datadir}/ddd-%{version} +%{_appdefsdir}/Ddd +%{_desktopdir}/ddd.desktop +%{_pixmapsdir}/ddd.png +%{_mandir}/man1/ddd.1* +%{_infodir}/ddd.info* +%{_infodir}/ddd-themes.info*