# # spec file for package doxygen # # Copyright (c) 2015 SUSE LINUX 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/ # Name: doxygen Version: 1.8.10 Release: 0 Summary: Automated C, C++, and Java Documentation Generator License: GPL-2.0+ Group: Development/Tools/Doc Generators Url: http://www.stack.nl/~dimitri/doxygen/ Source0: http://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz # suse specific Patch0: %{name}-modify_footer.patch # suse specific Patch1: %{name}-no-lowercase-man-names.patch BuildRequires: bison BuildRequires: cmake BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: python-base BuildRequires: python-xml %if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315 # for make tests BuildRequires: libxml2-tools BuildRequires: texlive-bibtex %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Doxygen is a documentation system for C, C++, Java, and IDL. It can generate an online class browser (in HTML) and an offline reference manual (in LaTeX) from a set of documented source files. The documentation is extracted directly from the sources. Doxygen is developed on a Linux platform, but it runs on most other UNIX flavors as well. %prep %setup -q %patch0 %patch1 -p1 %build mkdir build pushd build cmake -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \ .. make %{?_smp_mflags} popd %install pushd build make install %{?_smp_mflags} popd mkdir -p %{buildroot}%{_mandir}/man1/ install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/ %if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315 %check pushd build make tests %{?_smp_mflags} popd %endif %files %defattr(-,root,root) %doc LICENSE %attr(444,root,root) %doc %{_mandir}/man1/doxygen.1.gz %attr(755,root,root) %{_bindir}/* %changelog