1 %include /usr/lib/rpm/macros.python
2 Summary: X interface to the GDB, DBX and XDB debuggers
3 Summary(pl): Interfejs X do debugerów GDB, DBX i XDB
8 Group: Development/Debuggers
9 Source0: ftp://ftp.gnu.org/gnu/ddd/%{name}-%{version}.tar.gz
10 Source1: %{name}.desktop
11 Source2: %{name}-python.desktop
12 Patch0: %{name}-DESTDIR.patch
13 Patch1: %{name}-ptrace.patch
14 Patch2: %{name}-info.patch
15 Patch3: %{name}-gcc3.patch
17 URL: http://www.gnu.org/software/ddd/
18 BuildRequires: XFree86-devel
19 BuildRequires: motif-devel
20 BuildRequires: ncurses-devel >= 5.0
21 BuildRequires: libstdc++-devel
22 BuildRequires: python >= 2.2
23 BuildRequires: texinfo
24 BuildRequires: automake
25 BuildRequires: rpm-pythonprov
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _prefix /usr/X11R6
31 %define _mandir %{_prefix}/man
34 The Data Display Debugger (DDD) is a common graphical user interface
35 for GDB, DBX, and XDB, the popular UNIX debuggers. Besides
36 ``classical'' front-end features such as viewing source texts, DDD
37 provides a graphical data display, where data structures are displayed
38 as graphs. A simple mouse click dereferences pointers or views
39 structure contents, updated each time the program stops. Using DDD,
40 you can reason about your application by viewing its data, not just by
41 viewing it execute lines of source code. Other DDD features include:
42 debugging of programs written in C, C++, Ada, Fortran, Java, Pascal,
43 Modula-2, or Modula-3; machine-level debugging; hypertext source
44 navigation and lookup; breakpoint, backtrace, and history editors;
45 preferences and settings editors; program execution in terminal
46 emulator window; debugging on remote host; on-line manual; interactive
47 help on the Motif user interface; GDB/DBX/XDB command-line interface
48 with full editing, history, search, and completion capabilities. DDD
49 has been designed to compete with well-known commercial debuggers
52 Data Display Debugger (DDD) jest typowym graficznym interfejsem do
53 GDB, DBX, i XDB - popularnych UNIXowych debuggerów. Poza
54 ``klasycznymi'' mo¿liwo¶ciami interfejsów graficznych takich jak
55 przegl±danie kodów ¼ród³owych DDD dostarcza graficznych narzêdzi,
56 gdzie struktury wy¶wietlane s± w postaci graficznej. Proste klikniêcie
57 mysz± pozwala na przegl±danie zawarto¶ci struktur (aktualizowane za
58 ka¿dym razem gdy program siê zatrzyma). Inne mo¿liwo¶ci DDD to:
59 mo¿liwo¶æ debugowania programów napisanych w C, C++, Ada, Fortran,
60 Java, Pascal, Modula-2, or Modula-2; debugowanie na poziomie maszyny;
61 hypertekstowa nawigacja po ¼ród³ach; breakpoint, backtrace i emulator
62 okna historii; mo¿liwo¶æ ustawiania preferencji; uruchamianie
63 programów w oknie terminala; debugowanie na zdalnych serwerach;
64 podrêcznik on-line; interaktywna pomoc; linia poleceñ GDB/DBX/XDB z
65 pe³n± edycj±, histori± i wyszukiwaniem.
68 Summary: X interface to the GDB, DBX and XDB debuggers - The python debugger
69 Summary(pl): Interfejs X do debugerów GDB, DBX i XDB - debugger pythona
70 Group: Development/Debuggers
71 Requires: %{name} = %{version}
75 Data Display Debugger - python debugger.
77 %description python -l pl
78 Data Display Debugger - debugger pythona.
92 %{__make} CXXOPT="-DNDEBUG %{rpmcflags}"
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{py_sitedir} \
97 $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
98 $RPM_BUILD_ROOT%{_applnkdir}/Development
100 %{__make} DESTDIR=$RPM_BUILD_ROOT install
102 install pydb/pydb.py $RPM_BUILD_ROOT%{_bindir}/pydb
103 install pydb/{pydbcmd,pydbsupt}.py $RPM_BUILD_ROOT%{py_sitedir}
104 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
105 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
107 install ddd/Ddd $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults
109 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Development
111 gzip -9nf ANNOUNCE BUGS NEWS* OPENBUGS PROBLEMS README TIPS
114 rm -rf $RPM_BUILD_ROOT
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
123 %defattr(644,root,root,755)
124 %doc {ANNOUNCE,BUGS,NEWS*,OPENBUGS,PROBLEMS,README,TIPS}.gz
125 %doc doc/sample.dddinit
126 %{_applnkdir}/Development/ddd.desktop
127 %attr(755,root,root) %{_bindir}/ddd
128 %{_libdir}/X11/app-defaults/Ddd
134 %defattr(644,root,root,755)
135 %{_applnkdir}/Development/ddd-python.desktop
136 %attr(755,root,root) %{_bindir}/pydb