%define name doxygen
%define version 1.4.4
%define revision 5

%define contentdir /var/www
%define suexec_caller doxygen
%define buildroot /var/tmp/%{name}-%{version}-%{revision}root
%define mmn 20050927

#%ifarch ia64
# disable debuginfo on IA64
%define debug_package %{nil}
#%endif

Summary: A documentation system for C/C++.
Name: doxygen
Version: 1.4.4
Release: 5
URL: http://www.stack.nl/~dimitri/doxygen/index.html
Vendor: Dimitri van Heesch
License: GNU General Public License
Group: Development/Tools
Source: %{name}-%{version}-%{revision}.tar.gz
BuildRoot: %{buildroot}
BuildPrereq: libstdc++-devel >= 2.96, /usr/bin/perl, /usr/bin/latex, /usr/bin/dvips
Prereq: /sbin/chkconfig, /bin/mktemp, /bin/rm, /bin/mv, libstdc++ >= 2.96
Provides: doxygen-mmn = %{mmn}
# Obsoletes:
# Source0: http://ftp.stack.nl/pub/users/dimitri/doxygen-{%version}.src.tar.gz

%description
Doxygen can generate an online class browser (in HTML) and/or a
reference manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen can
also be configured to extract the code structure from undocumented
source files.

%package doxywizard
Group: Development/Libraries
Summary: GUI Interface for doxygen.
Requires: doxygen = %{version}
Requires: qt >= 3.3
# Obsoletes:

%description doxywizard
Doxygen can generate an online class browser (in HTML) and/or a
reference manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen can
also be configured to extract the code structure from undocumented
source files.

This is the GUI interface for doxygen.  It requires qt and X11 to
install.

%package manual
Group: Documentation
Summary: Documentation for doxygen.
#Obsoletes: 

%description manual
This contains the manpages for doxygen.  The information can also be
found at http://www.doxygen.org/.

%prep
%setup -q -n %{name}-%{version}-%{revision}
./configure --with-doxywizard --prefix $RPM_BUILD_ROOT/usr

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)

%doc README LICENSE LANGUAGE.HOWTO examples

%{_bindir}/doxygen
%{_bindir}/doxytag

%files doxywizard
%defattr(-,root,root)
%{_bindir}/doxywizard

%files manual
%defattr(-,root,root)
%doc /usr/man/man1/doxy*

%changelog
* Sun Sep 20 2005 Kevin McBride <kevin@planetsaphire.com> 1.4.4
- modified rpm spec file for Fedora Core acceptance criteria.

* Sun Aug 7 2005 Kevin McBride <kevin@planetsaphire.com> 1.4.4
- created initial rpm spec file for doxygen-1.4.4

