doxygen.spec.in 3.57 KB
Newer Older
1 2
%define name doxygen

3 4
# optionally pass --with-doxywizard to rpmbuild

5 6 7 8 9 10 11 12 13 14 15 16
%define contentdir /var/www
%define suexec_caller doxygen
%define buildroot /var/tmp/%{name}-%{version}-%{revision}root

Summary: A documentation system for C/C++.
Name: doxygen
Version: %{version}
Release: %{revision}
URL: http://www.stack.nl/~dimitri/doxygen/index.html
Vendor: Dimitri van Heesch
License: GNU General Public License
Group: Development/Tools
Dimitri van Heesch's avatar
Dimitri van Heesch committed
17
Source: %{name}-%{version}.src.tar.gz
18
BuildRoot: %{buildroot}
Dimitri van Heesch's avatar
Dimitri van Heesch committed
19 20
BuildRequires: libstdc++-devel >= 2.96, /usr/bin/perl, /usr/bin/latex, /usr/bin/dvips, /usr/bin/gs
Requires: /sbin/chkconfig, /bin/mktemp, /bin/rm, /bin/mv, libstdc++ >= 2.96
21 22 23 24 25 26 27 28 29
Provides: doxygen = %{mmn}

%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.

30
%if %{?_with_doxywizard:1}%{!?_with_doxywizard:0}
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
%package doxywizard
Group: Development/Libraries
Summary: GUI Interface for doxygen.
Requires: doxygen = %{mmn}
Requires: qt >= 3.3
Provides: doxywizard = %{mmn}
# 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.
48
%endif
49

Dimitri van Heesch's avatar
Dimitri van Heesch committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
%if %{?_with_doxysearch:1}%{!?_with_doxysearch:0}
%package doxysearch
Group: Development/Libraries
Summary: external indexer and search engine for doxygen.
Requires: doxygen = %{mmn}
Requires: libxapian-devel >= 1.2
Provides: doxysearch.cgi = %{mmn}
Provides: doxyindexer = %{mmn}
# Obsoletes:

%description doxysearch
External indexing and search tools for searching through doxygen
generated HTML documentation.
%endif

65
%prep
Dimitri van Heesch's avatar
Dimitri van Heesch committed
66
%setup -q -n %{name}-%{version}
Dimitri van Heesch's avatar
Dimitri van Heesch committed
67
./configure %{?_with_doxywizard} %{?_with_doxysearch} --prefix $RPM_BUILD_ROOT/usr
68 69 70

%build
make %{?_smp_mflags}
71
make %{?_smp_mflags} pdf
72 73 74 75 76 77 78 79 80 81 82

%install
rm -rf $RPM_BUILD_ROOT
make install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)

83
%doc README.md LICENSE LANGUAGE.HOWTO examples ./latex/*.pdf
84
%doc /usr/man/man1/doxygen.1.gz
85 86 87

%{_bindir}/doxygen

88
%if %{?_with_doxywizard:1}%{!?_with_doxywizard:0}
89 90 91
%files doxywizard
%defattr(-,root,root)
%{_bindir}/doxywizard
92
%doc /usr/man/man1/doxywizard.1.gz
93
%endif
94

Dimitri van Heesch's avatar
Dimitri van Heesch committed
95 96 97 98 99 100 101 102 103
%if %{?_with_doxysearch:1}%{!?_with_doxysearch:0}
%files doxysearch
%defattr(-,root,root)
%{_bindir}/doxyindexer
%{_bindir}/doxysearch.cgi
%doc /usr/man/man1/doxyindexer.1.gz
%doc /usr/man/man1/doxysearch.1.gz
%endif

104
%changelog
Dimitri van Heesch's avatar
Dimitri van Heesch committed
105 106 107
* Tue Dec 25 2012 Dimitri van Heesch <dimitri@stack.nl> 1.8.3
- added doxyindexer and doxysearch

108 109 110 111
* Fri Apr 18 2008 Kenneth Porter <shiva+doxygenspec@sewingwitch.com> 1.5.5-1
- consolidate with and without doxywizard spec files with rpm macro
- add gs BuildPrereq

112 113 114
* Sun Nov 18 2007 Kevin McBride <kevin@planetsaphire.com> 1.5.4
- consolidated manual package in lieu of --excludedocs flag for rpm --install

115 116 117 118 119 120 121 122 123 124 125 126
* Mon Oct 10 2005 Kevin McBride <kevin@planetsaphire.com> 1.4.5
- fixed versioning bugs.

* Tue Oct 4 2005 Kevin McBride <kevin@planetsaphire.com> 1.4.5
- added obsoletes and proides sections.

* 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