File ddd.spec of Package ddd
#
# spec file for package ddd (Version 3.3.11)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ddd
BuildRequires: ImageMagick apache2-devel freetype2-devel gcc-c++ ghostscript_any
BuildRequires: libapr-util1-devel libtiff-devel openmotif-devel pcre-devel transfig
BuildRequires: ghostscript-library ncurses-devel update-desktop-files
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Tools/Debuggers
Requires: gdb
AutoReqProv: on
Version: 3.3.11
Release: 265
Summary: Debugger with Graphical User Interface
Url: http://www.gnu.org/software/ddd
Source: ddd-%{version}.tar.bz2
Source1: ddd.png
Source2: ddd.desktop
Source3: README.SUSE
Source4: ddd.wrapper
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
# NOTE: We don't want this dependency and desktop-data-SuSE is in all
# desktop selections.
#Requires: desktop-data-SuSE
%description
The DDD debugger (Data Display Debugger) is a comfortable GUI to the
well-known debuggers GDB and DBX. Data structures can be represented as
graphs and shown interactively. Programs can be debugged in C, C++,
Pascal, MODULA-2, FORTRAN, ADA, and even at the assembler code level.
Authors:
--------
Andreas Zeller <zeller@ips.cs.tu-bs.de>
Dorothea Luetkehaus <luetke@ips.cs.tu-bs.de>
%prep
%define apache_docroot %(apxs2 -q PREFIX)/htdocs
%setup -q
%build
cp %{S:3} .
#%{suse_update_config -f libiberty readline/support}
CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated -fno-strict-aliasing" \
./configure --prefix=/usr --host=${RPM_ARCH}-suse-linux \
--mandir=%{_mandir} --infodir=%{_infodir}
make
make html
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/X11/app-defaults/
install -m 644 ddd/Ddd $RPM_BUILD_ROOT/usr/share/X11/app-defaults/
install -m 755 -d $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}/
mkdir -p doc/html/PICS
cp -a ddd/PICS/*.jpg doc/html/PICS
cp -a ddd/style.css doc/html
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/pixmaps/
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/applications/
mv $RPM_BUILD_ROOT/usr/bin/ddd $RPM_BUILD_ROOT/usr/bin/ddd.org
install %{SOURCE4} $RPM_BUILD_ROOT/usr/bin/ddd
%suse_update_desktop_file ddd
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/ddd-themes.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ddd-themes.info.gz
%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB INSTALL NEWS README TIPS TODO README.SUSE
%doc doc/ddd-paper.ps doc/*.pdf doc/html
%config /usr/share/X11/app-defaults/Ddd
%attr(755, root, root) /usr/bin/ddd.org
%attr(755, root, root) /usr/bin/ddd
%{_mandir}/man1/ddd.*
%{_infodir}/ddd*
/usr/share/ddd-%{version}/
/usr/share/applications/ddd.desktop
/usr/share/pixmaps/ddd.png
%changelog
* Fri Sep 05 2008 bwalle@suse.de
- Fix UTF-8 warning to fit in a terminal with 80 characters wide.
- Don't print the warning if ~/.ddd/suse_no_utf8_warning exists.
* Sun Apr 06 2008 bwalle@suse.de
- Add ghostscript-library to BuildRequires.
* Sun Aug 26 2007 bwalle@suse.de
- execute with argv[0] == ddd so that X ressources with
ddd.???? still apply (#304021)
* Tue May 29 2007 anosek@suse.cz
- added wrapper to workaround [#254472]
- updated README.SUSE
* Mon May 21 2007 anosek@suse.cz
- added README.SUSE explaning workaround for [#254472]
* Fri Mar 30 2007 dmueller@suse.de
- add ncurses-devel buildrequires
* Tue Feb 27 2007 dmueller@suse.de
- reduce buildrequires
* Mon Feb 26 2007 stbinner@suse.de
- fix build by including icon and .desktop into package
* Fri Jan 26 2007 ro@suse.de
- replace ghostscript-mini by ghostscript_any in BuildReq (#119914)
* Mon Aug 07 2006 mmarek@suse.cz
- fixed app-defaults file location
* Thu May 18 2006 ro@suse.de
- added freetype2-devel to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 16 2005 mmj@suse.de
- compile with -fno-strict-aliasing
* Tue Nov 29 2005 sbrabec@suse.cz
- Don't package icon already present in desktop-data-SuSE.
Cleans rpm -V output.
* Wed May 11 2005 mmj@suse.de
- update to 3.3.11
* Fri Nov 26 2004 ltinkl@suse.cz
- update to 3.3.10
* Thu Nov 18 2004 mmj@suse.de
- Add icon file
- Don't remove buildroot before install
* Wed Oct 27 2004 ltinkl@suse.cz
- updated to 3.3.9
* Tue Jun 29 2004 ro@suse.de
- added libtiff to neededforbuild
* Mon Apr 26 2004 ro@suse.de
- use apache2
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Thu Nov 20 2003 ro@suse.de
- use ghostscript-mini-package in neededforbuild
* Wed Nov 19 2003 ltinkl@suse.cz
- update to latest version 3.3.8
- fixed build
- recreate the HTML docu (make html) to get the JPG images
* Mon Sep 08 2003 mmj@suse.de
- Update to 3.3.7:
o Ported to modern auto-tools, bison, flex and C++ STL
o Bash debugging
o Lots of bugfixes
* Sat Aug 16 2003 adrian@suse.de
- install desktop file from kappfinder
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Tue Feb 11 2003 mmj@suse.de
- Use %%install_info macro
* Mon Jan 27 2003 ro@suse.de
- make it build with gcc-3.3 (strstream.h)
* Mon Mar 18 2002 pmladek@suse.cz
- fixed installation of COPYING and NEWS files
* Fri Mar 08 2002 kukuk@suse.de
- Add /usr/share/ddd-%%{version} to filelist
* Tue Feb 12 2002 tcrhak@suse.cz
- added %%defattr to filelist
* Mon Jan 21 2002 schwab@suse.de
- Fix configure script for gcc 3 and use -Wno-deprecated.
* Thu Dec 20 2001 tcrhak@suse.cz
- update to version 3.3.1
* Mon Nov 05 2001 poeml@suse.de
- use apache-devel-packages macro in #neededforbuild
(currently expands to apache, apache-devel, mm, expat)
* Mon Jun 04 2001 pblaha@suse.cz
- fix cast pointer on ia64
* Tue May 08 2001 mfabian@suse.de
- bzip2 source
* Wed Apr 04 2001 schwab@suse.de
- Add %%suse_update_config.
* Tue Mar 13 2001 pblaha@suse.cz
- update on new version 3.3
* Fri Feb 23 2001 ro@suse.de
- changed neededforbuild <apache> to <apache apache-devel>
* Fri Dec 08 2000 schwab@suse.de
- Add %%suse_update_config.
- Fix compilation problem.
* Mon Nov 20 2000 pblaha@suse.cz
- support for openmotif
* Fri Sep 29 2000 ro@suse.de
- regenerate lex/bison sources
- removed patch to yacctoC.bison to make it compile again
* Mon May 22 2000 bubnikv@suse.cz
- moved doc to %%{_defaultdocdir}
- added buildroot
* Tue Feb 22 2000 fehr@suse.de
- changed to new version 3.2.1
- added html manual
* Mon Feb 07 2000 fehr@suse.de
- set build architecture correct
* Tue Feb 01 2000 fehr@suse.de
- add small change to circumvent compiler bug on axp
* Mon Jan 24 2000 fehr@suse.de
- changed to new version 3.2
* Mon Jan 10 2000 fehr@suse.de
- changed to new version 3.1.6
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Jul 26 1999 schwab@suse.de
- Define HAVE_STREAMS for linux again
- Handle getpt under HAVE_STREAMS
- Check isastream before using STREAMS ioctls
* Sun Jul 18 1999 kukuk@suse.de
- Don't define HAVE_STREAMS for linux
* Mon Jul 12 1999 uli@suse.de
- now builds with lesstif
* Tue Jul 06 1999 ro@suse.de
- cahnged to new version 3.1.4
* Tue Sep 22 1998 ro@suse.de
- ddd/TTYAgent.C: supply proper definition for ioctl for each libc
* Thu Jul 09 1998 fehr@suse.de
- Changed to version 3.0
* Wed Mar 11 1998 fehr@suse.de
- Changed to version 2.2.3
* Tue Dec 09 1997 ro@suse.de
- build static and dynamic version
* Mon Oct 13 1997 fehr@suse.de
- Changed to Version 2.1.1 of ddd
- prepare package for automatic build
* Mon Mar 24 1997 fehr@suse.de
- Changed to Version 2.0 of ddd
- Integrated the follwing patches to original 2.0 ddd:
"dbx-comments-stripped, linux-userinfo, source-sash, xdb-list"