]> git.pld-linux.org Git - packages/ddd.git/blobdiff - ddd.spec
- updated to 3.3.1
[packages/ddd.git] / ddd.spec
index 9511c30dfa9d73ac324f7d67371db454667f084c..742368481728785bfba96394046cb2850222293b 100644 (file)
--- a/ddd.spec
+++ b/ddd.spec
+
+%define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
+%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('pydb')"
+%define python_compile python -c "import compileall; compileall.compile_dir('pydb')"
+
 Summary:       X interface to the GDB, DBX and XDB debuggers
+Summary(pl):   Interfejs X do debugerów GDB, DBX i XDB
 Name:          ddd
-Version:       3.1.5
+Version:       3.3.1
 Release:       1
-Copyright:     GPL
+License:       GPL
 Group:         Development/Debuggers
+Group(de):     Entwicklung/Debugger
 Group(pl):     Programowanie/Odpluskwiacze
-Source:                ftp://ftp.ips.cs.tu-bs.de/pub/local/softech/ddd/src/%{name}-%{version}.tar.gz
-Patch:         ddd-pty.patch
+Source0:       ftp://ftp.gnu.org/gnu/ddd/%{name}-%{version}.tar.gz
+Source1:       %{name}.desktop
+Source2:       %{name}-python.desktop
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-ptrace.patch
 Icon:          ddd.xpm
-URL:           http://www.cs.tu-bs.de/softech/ddd/
-Buildroot:     /tmp/%{name}-%{version}-root
+URL:           http://www.gnu.org/software/ddd/
+BuildRequires: XFree86-devel
+BuildRequires: motif-devel
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: libstdc++-devel
+BuildRequires: python
+BuildRequires: texinfo
+Requires:      gdb
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix /usr/X11R6
-%define                _mandir /usr/X11R6/man
+%define                _prefix         /usr/X11R6
+%define                _mandir         %{_prefix}/man
 
 %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
+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(de):     Entwicklung/Debugger
 Group(pl):     Programowanie/Odpluskwiacze
 Requires:      %{name} = %{version}
 
 %description python
 Data Display Debugger - python debugger.
 
+%description -l pl
+Data Display Debugger - debugger pythona.
+
 %prep
 %setup -q
-#%patch -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
-%configure --with-motif
-make CXXOPT="-DNDEBUG $RPM_OPT_FLAGS"
+automake -a -c
+%configure \
+       --with-motif
+%{__make} CXXOPT="-DNDEBUG %{rpmcflags}"
+%python_compile
+%python_compile_opt 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/python-1.5,%{_libdir}/X11/app-defaults}
+install -d $RPM_BUILD_ROOT%{python_sitepkgsdir} \
+       $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
+       $RPM_BUILD_ROOT%{_applnkdir}/Development
 
-make install prefix=$RPM_BUILD_ROOT%{_prefix} \
-       mandir=$RPM_BUILD_ROOT%{_mandir} \
-       bindir=$RPM_BUILD_ROOT%{_bindir} \
-       libdir=$RPM_BUILD_ROOT%{_libdir}
+%{__make} DESTDIR=$RPM_BUILD_ROOT install 
 
-install pydb/pydb.py $RPM_BUILD_ROOT%{_bindir}
-install pydb/{pydbcmd,pydbsupt}.py $RPM_BUILD_ROOT/usr/lib/python-1.5
+install pydb/pydb.py $RPM_BUILD_ROOT%{_bindir}/pydb
+install pydb/{pydbcmd,pydbsupt}.py[co] $RPM_BUILD_ROOT%{python_sitepkgsdir}
 
 install ddd/Ddd $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults
 
-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
-
-gzip -9nf ANNOUNCE BUGS ChangeLog NEWS* OPENBUGS PROBLEMS README TIPS \
-       TODO $RPM_BUILD_ROOT%{_mandir}/man1/*
+install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Development
+
+gzip -9nf ANNOUNCE BUGS NEWS* OPENBUGS PROBLEMS README TIPS
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
 %files
 %defattr(644,root,root,755)
-%doc {ANNOUNCE,BUGS,ChangeLog,NEWS*,OPENBUGS,PROBLEMS,README,TIPS,TODO}.gz
+%doc {ANNOUNCE,BUGS,NEWS*,OPENBUGS,PROBLEMS,README,TIPS}.gz
 %doc doc/sample.dddinit
-/etc/X11/wmconfig/ddd
-%attr(755,root,root) %{_bindir}/*
+%{_applnkdir}/Development/ddd.desktop
+%attr(755,root,root) %{_bindir}/ddd
 %{_libdir}/X11/app-defaults/Ddd
 %{_mandir}/man1/*
+%{_datadir}/ddd*
+%{_infodir}/ddd*
 
 %files python
 %defattr(644,root,root,755)
-/etc/X11/wmconfig/ddd-python
-%attr(755,root,root) %{_bindir}/pydb.py
-/usr/lib/python*/*
+%{_applnkdir}/Development/ddd-python.desktop
+%attr(755,root,root) %{_bindir}/pydb
+%{python_sitepkgsdir}/*
This page took 0.178814 seconds and 4 git commands to generate.