Sisyphus repository
Last update: 23 november 2017 | SRPMs: 17886 | Visits: 10423470
en ru br
ALT Linux repos
S:1.8.13-alt2
5.0: 1.5.5-alt1
4.1: 1.5.5-alt1
4.0: 1.5.1-alt1
3.0: 1.4.3-alt1

Other repositories
Upstream:1.5.5

Group :: Development/Other
RPM: doxygen

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: doxygen
Version: 1.8.13
Release: alt2
Epoch: 1

Summary: Doxygen is a documentation system for C, C++ and IDL
License: GPLv2+
Group: Development/Other
Url: http://www.doxygen.org/

# ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%version.src.tar.gz

Source: %name-%{version}.src.tar.gz
Patch: doxygen-1.7.5-rh-timestamp.patch
Patch1: %name-%version-upstream-crash.patch

# Automatically added by buildreq on Wed May 10 2017

# optimized out: cmake-modules fontconfig fonts-type1-urw ghostscript-classic libgpg-error libqt4-core libqt4-devel libqt4-gui libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql-sqlite libqt4-svg libqt4-webkit-devel libqt4-xml libstdc++-devel libwayland-client libwayland-server perl python-base python-modules tex-common texlive-base texlive-base-bin texlive-common texlive-extra-utils texlive-fonts-recommended texlive-generic-recommended texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-xetex texmf-latex-xcolor xml-utils
BuildRequires: cmake flex gcc-c++ ghostscript-common graphviz phonon-devel python-modules-xml texlive-publishers texmf-latex-tabu

%description
Doxygen is a documentation system for C, C++ and IDL.  It can generate
an on-line class browser (in HTML) and/or an off-line reference manual
(in LaTeX) from a set of documented source files.  There is also support
for generating man pages and for converting the generated output into
Postscript, hyperlinked PDF or compressed HTML.  The documentation is
extracted directly from the sources.

Doxygen can also be configured to extract the code-structure from
undocumented source files.  This can be very useful to quickly find
your way in large source distributions.

%package wizard
Summary: GUI frontend for doxygen
Group: Development/Other
Requires: %name = %epoch:%version-%release

%description wizard
Doxywizard is a GUI front-end for creating and editing
configuration files that are used by doxygen.

%package doc
Summary: Documentation and examples for doxygen
Group: Development/Other
BuildArch: noarch
Requires: %name = %epoch:%version-%release

%description doc
This package contains doxygen examples and documentation in html and
pdf formats.

%prep
%setup
%patch1 -p1

# XXX Waiting for newer TeXlive

sed -i 's/subinputfrom/subimport/g' doc/doxygen_manual.tex

##patch -p1


##find -name unistd.h -delete -print

##perl -pi -e '
## s|^(TMAKE_CFLAGS\s*=\s*).*|$1\$(RPM_OPT_FLAGS)|;
## s|^(TMAKE_CFLAGS_WARN_ON\s*=).*|$1|;
## s|^(TMAKE_CFLAGS_WARN_OFF\s*=).*|$1|;
## s|^(TMAKE_CFLAGS_RELEASE\s*=).*|$1|;
## s|^(TMAKE_CFLAGS_DEBUG\s*=).*|$1|;
## s|^(TMAKE_CFLAGS_SHLIB\s*=\s*).*|$1%optflags_shared|;
## s|/usr/X11R6/lib|/usr/X11R6/%_lib|;
## ' tmake/lib/linux-g++/tmake.conf

%build
export QTDIR=%_libdir/qt4
export PATH="$QTDIR/bin:$PATH"
#./configure --prefix %prefix --release --with-doxywizard
#make_build
#make pdf
%cmake -G "Unix Makefiles" \
-Dbuild_doc=ON -Dbuild_wizard=ON -Dbuild_xmlparser=ON \
-Dbuild_search=OFF \
-DMAN_INSTALL_DIR=%{_mandir}/man1 \
-DDOC_INSTALL_DIR=share/doc/%name-%version \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
#cmake_build docs
%cmake_build VERBOSE=1
%cmake_build docs VERBOSE=1
#cmake_build pdf

%install
##cd BUILD
##mkdir -p %buildroot{%_bindir,%_man1dir}
##install -pm755 bin/* %buildroot%_bindir/
##install -pm644 doc/*.1 %buildroot%_man1dir/
##
##%define docdir %_docdir/%name-%version
##mkdir -p %buildroot%docdir/pdf
##install -pm644 latex/*.pdf %buildroot%docdir/pdf/
##cp -a html examples %buildroot%docdir/
##find %buildroot%docdir/ -type f -name Makefile.\* -delete
##find %buildroot%docdir/ -type f -name Makefile -print0 |
## xargs -r0 perl -pi -e '
## s|/bin/doxygen||g;
## s|^(DOXYGEN\s*=\s*).*|$1%_bindir/doxygen|;
## s|^(TMAKE\s*=\s*).*|$1%_bindir/tmake|;
## s/^(TMAKEPATH|INST|DOXYDOCS).*//g;
## ' --
%cmakeinstall_std

%check
cd BUILD && make tests

%files
%doc README.md
%_bindir/doxygen
%_man1dir/doxygen.*

%files wizard
%_bindir/doxywizard
%_man1dir/doxywizard.*

%files doc
%_defaultdocdir/%name-%version
#exclude %_defaultdocdir/%name-%version/html
%exclude %_defaultdocdir/%name-%version/README.md
%exclude %_man1dir/doxy[is]*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin