2007-01-16 00:10:37 +01:00
|
|
|
#
|
2011-03-30 09:18:47 +02:00
|
|
|
# spec file for package doxygen
|
2007-01-16 00:10:37 +01:00
|
|
|
#
|
2019-01-02 08:20:42 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:37 +01:00
|
|
|
#
|
2009-01-13 18:42:16 +01:00
|
|
|
# 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.
|
|
|
|
|
2018-12-31 08:54:23 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:10:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-09-30 16:34:40 +02:00
|
|
|
# build with "--with libclang" to enable libclang support
|
|
|
|
%bcond_with libclang
|
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
Name: doxygen
|
2019-09-30 13:22:33 +02:00
|
|
|
Version: 1.8.16
|
2012-07-13 10:46:49 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Automated C, C++, and Java Documentation Generator
|
2017-11-10 14:20:33 +01:00
|
|
|
# qtools are used for building and they are GPL-3.0 licensed
|
2018-06-19 11:54:31 +02:00
|
|
|
License: GPL-2.0-or-later AND GPL-3.0-only
|
2007-01-16 00:10:37 +01:00
|
|
|
Group: Development/Tools/Doc Generators
|
2019-01-02 08:20:42 +01:00
|
|
|
Url: http://www.doxygen.nl/
|
|
|
|
Source0: http://doxygen.nl/files/doxygen-%{version}.src.tar.gz
|
2015-08-17 18:12:41 +02:00
|
|
|
# suse specific
|
|
|
|
Patch0: %{name}-modify_footer.patch
|
|
|
|
# suse specific
|
|
|
|
Patch1: %{name}-no-lowercase-man-names.patch
|
2015-08-24 16:41:48 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: add missing returns to non-void functions
|
|
|
|
Patch3: vhdlparser-no-return.patch
|
2016-04-21 15:48:12 +02:00
|
|
|
# suse specific, for ppc64le ppc64, workaround for bnc#921577
|
2015-10-08 15:59:15 +02:00
|
|
|
Patch4: doxygen-dot-one-thread.patch
|
2019-09-30 13:22:33 +02:00
|
|
|
# really do not require git executable
|
|
|
|
Patch5: doxygen-git-not-required.patch
|
2019-09-30 16:34:40 +02:00
|
|
|
Patch6: doxygen-llvm-libs.patch
|
2015-02-23 08:27:51 +01:00
|
|
|
BuildRequires: bison
|
2015-08-24 16:41:48 +02:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
2015-02-23 08:27:51 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
2018-01-03 15:22:12 +01:00
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-xml
|
2019-09-30 16:34:40 +02:00
|
|
|
%if %{with libclang}
|
|
|
|
BuildRequires: llvm-clang-devel
|
|
|
|
%endif
|
2018-01-03 15:22:12 +01:00
|
|
|
# Do not bother building documentation with latex since it is present on the
|
|
|
|
# web trivialy for all versions of doxygen
|
|
|
|
Obsoletes: doxygen-doc
|
2007-01-16 00:10:37 +01:00
|
|
|
|
|
|
|
%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
|
2015-08-18 15:13:27 +02:00
|
|
|
as well.
|
2015-02-23 08:27:51 +01:00
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
%prep
|
2015-08-24 16:41:48 +02:00
|
|
|
%setup -q
|
2019-09-30 13:22:33 +02:00
|
|
|
%patch0 -p1
|
2015-08-17 18:12:41 +02:00
|
|
|
%patch1 -p1
|
2015-08-24 16:41:48 +02:00
|
|
|
%patch3 -p1
|
2016-04-21 15:48:12 +02:00
|
|
|
%ifarch ppc64le ppc64
|
2015-10-08 15:59:15 +02:00
|
|
|
%patch4 -p1
|
2015-10-06 10:57:49 +02:00
|
|
|
%endif
|
2019-01-07 15:50:14 +01:00
|
|
|
%patch5 -p1
|
2019-09-30 16:34:40 +02:00
|
|
|
%if %{with libclang}
|
|
|
|
%patch6
|
|
|
|
%endif
|
2007-01-16 00:10:37 +01:00
|
|
|
|
|
|
|
%build
|
2015-08-24 16:41:48 +02:00
|
|
|
%cmake \
|
|
|
|
-Dbuild_doc=OFF \
|
|
|
|
-Dbuild_xmlparser=ON \
|
|
|
|
-Dbuild_search=OFF \
|
|
|
|
-Dbuild_wizard=OFF \
|
2019-09-30 16:34:40 +02:00
|
|
|
%if %{with libclang}
|
|
|
|
-Duse_libclang=ON \
|
|
|
|
%endif
|
2016-02-21 07:51:20 +01:00
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
|
|
|
|
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
|
2019-09-30 13:22:33 +02:00
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=ON
|
2017-11-07 16:29:18 +01:00
|
|
|
%make_jobs
|
2015-02-23 08:27:51 +01:00
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
%install
|
2015-08-24 16:41:48 +02:00
|
|
|
%cmake_install
|
2015-08-18 15:13:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
2015-08-17 18:12:41 +02:00
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
%files
|
2018-06-19 15:01:16 +02:00
|
|
|
%license LICENSE
|
2018-01-03 15:22:12 +01:00
|
|
|
%attr(644,root,root) %{_mandir}/man1/doxygen.1%{?ext_man}
|
2015-02-23 08:27:51 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
|
|
|
|
2007-03-29 13:58:33 +02:00
|
|
|
%changelog
|