Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release-src > by-pkgid > 3909258780e85315a4dde43e6fdf7053 > files > 4

ddd-3.3.12-12.mga7.src.rpm

Summary: 	A GUI for several command-line debuggers
Name:		ddd
Version:	3.3.12
Release: 	%mkrel 12
Source0: 	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source3:	debugger16.png
Source4:	debugger22.png
Patch0:		ddd-3.3.12-gcc4.3.patch
Patch1:		ddd-3.3.12-version.h-deps.patch
Group: 		Development/Other
URL: 		http://www.gnu.org/software/ddd/
License: 	GPLv2
BuildRequires: 	motif-devel
BuildRequires:  flex
BuildRequires:  readline-devel
BuildRequires:  libtermcap-devel
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  binutils-devel
BuildRequires:  chrpath
BuildRequires:	info
Requires: 	motif
Requires:	xterm
Requires:	gdb

%description
The Data Display Debugger (DDD) is a popular GUI for command-line
debuggers like GDB, DBX, JDB, WDB, XDB, the Perl debugger, and the
Python debugger.  DDD allows you to view source texts and provides an
interactive graphical data display, in which data structures are
displayed as graphs.  You can use your mouse to dereference pointers
or view structure contents, which are updated every time the program
stops.  DDD can debug programs written in Ada, C, C++, Chill, Fortran,
Java, Modula, Pascal, Perl, and Python.  DDD provides machine-level
debugging; hypertext source navigation and lookup; breakpoint,
watchpoint, backtrace, and history editors; array plots; undo and
redo; preferences and settings editors; program execution in the
terminal emulation window, debugging on a remote host, an on-line
manual, extensive help on the Motif user interface, and a command-line
interface with full editing, history and completion capabilities.

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .deps

sed -i -e "s/^Categories=Development;$/Categories=Development;Debugger;/" ddd/ddd.desktop

%build
autoreconf -fi
CXXFLAGS="$RPM_OPT_FLAGS -fpermissive"
%configure2_5x
%make X_INCLUDE=""

%install
mkdir -p $RPM_BUILD_ROOT{%_bindir,%_docdir}
%makeinstall

mkdir -p $RPM_BUILD_ROOT%_iconsdir/hicolor/{16x16,22x22}/apps
install -m 644 %SOURCE3 $RPM_BUILD_ROOT%_iconsdir/hicolor/16x16/apps/ddd.png
install -m 644 %SOURCE4 $RPM_BUILD_ROOT%_iconsdir/hicolor/22x22/apps/ddd.png

#install -m 755 pydb/pydb.py $RPM_BUILD_ROOT/%_bindir
#install -m 755 pydb/pydbcmd.py $RPM_BUILD_ROOT/%_bindir
#install -m 755 pydb/pydbsupt.py $RPM_BUILD_ROOT/%_bindir

#cd $RPM_BUILD_ROOT%{_bindir}
#ln -sf pydb.py pydb

# (sb) remove rpath from binary
chrpath -d $RPM_BUILD_ROOT/%{_bindir}/%{name}

# (sb) unpackaged files
rm -f $RPM_BUILD_ROOT/%{_libdir}/libiberty.a

%files 
%doc README TODO TIPS NEWS AUTHORS doc/*pdf doc/html
%_bindir/*
%_mandir/*/*
%_infodir/%name.*
%_infodir/%name-*
%dir %_datadir/%name-%version
%_datadir/applications/%{name}.desktop
%_datadir/%name-%version/COPYING
%_datadir/%name-%version/NEWS
%_datadir/%name-%version/ddd
%_datadir/%name-%version/themes
%_datadir/%name-%version/vsllib
%_iconsdir/hicolor/*/apps/ddd.png




%changelog
* Mon Sep 03 2018 tv <tv> 3.3.12-12.mga7
  (not released yet)
+ Revision: 1256627
- rely on filetriggers for info system (mga#23482)

* Mon May 21 2018 shlomif <shlomif> 3.3.12-11.mga7
+ Revision: 1231078
- Use motif instead of the buggier lesstif.

* Thu Feb 04 2016 umeabot <umeabot> 3.3.12-10.mga6
+ Revision: 936166
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 3.3.12-9.mga5
+ Revision: 749956
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.3.12-8.mga5
+ Revision: 678698
- Mageia 5 Mass Rebuild

* Fri Apr 25 2014 anaselli <anaselli> 3.3.12-7.mga5
+ Revision: 617940
- Fixed Bug 13261 xterm requirement missing for ddd

* Fri Oct 18 2013 umeabot <umeabot> 3.3.12-6.mga4
+ Revision: 521200
- Mageia 4 Mass Rebuild

* Fri Jan 18 2013 cjw <cjw> 3.3.12-5.mga3
+ Revision: 389434
- patch1: new build fix for missing version.h due to dependency problem

* Fri Jan 11 2013 umeabot <umeabot> 3.3.12-4.mga3
+ Revision: 348709
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Jan 10 2013 juancho <juancho> 3.3.12-3.mga3
+ Revision: 344618
- Fixed build by removing nonexist version.h header

* Sat Sep 03 2011 ofaurax <ofaurax> 3.3.12-2.mga2
+ Revision: 138293
- Remove references to mdkversion
- imported package ddd