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
|
|
|
#
|
2023-03-16 09:25:39 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
2020-10-13 11:23:28 +02:00
|
|
|
|
2020-10-13 10:42:23 +02:00
|
|
|
%if 0%{?sle_version} >= 150100
|
2019-09-30 16:34:40 +02:00
|
|
|
# build with "--with libclang" to enable libclang support
|
|
|
|
%bcond_with libclang
|
2020-10-13 10:42:23 +02:00
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
Name: doxygen
|
2023-06-23 14:40:27 +02:00
|
|
|
Version: 1.9.7
|
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
|
2020-09-21 11:16:31 +02:00
|
|
|
URL: https://www.doxygen.nl/
|
2021-01-26 08:51:28 +01:00
|
|
|
Source0: https://www.doxygen.nl/files/doxygen-%{version}.src.tar.gz
|
2015-08-17 18:12:41 +02:00
|
|
|
# suse specific
|
|
|
|
Patch1: %{name}-no-lowercase-man-names.patch
|
2022-07-06 13:25:49 +02:00
|
|
|
# The unified libclang-cpp library doesn't exist on older Leap / SLE
|
2020-10-13 10:42:23 +02:00
|
|
|
Patch10: doxygen-no-libclang-cpp.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
|
2020-10-13 10:42:23 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: gcc9-c++
|
|
|
|
%else
|
2015-02-23 08:27:51 +01:00
|
|
|
BuildRequires: gcc-c++
|
2020-10-13 10:42:23 +02:00
|
|
|
%endif
|
2018-01-03 15:22:12 +01:00
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-xml
|
|
|
|
# Do not bother building documentation with latex since it is present on the
|
|
|
|
# web trivialy for all versions of doxygen
|
|
|
|
Obsoletes: doxygen-doc
|
2020-01-10 10:34:16 +01:00
|
|
|
%if %{with libclang}
|
|
|
|
BuildRequires: llvm-clang-devel
|
|
|
|
%endif
|
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
|
2022-07-06 13:25:49 +02:00
|
|
|
# Leap 15 and SLE don't accept '%%autopatch -M'
|
2015-08-17 18:12:41 +02:00
|
|
|
%patch1 -p1
|
2019-09-30 16:34:40 +02:00
|
|
|
%if %{with libclang}
|
2020-10-13 10:42:23 +02:00
|
|
|
%if 0%{?sle_version} == 150100 || (0%{?sle_version} == 150200 && !0%{?is_opensuse})
|
2020-07-10 09:24:58 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%endif
|
|
|
|
%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 \
|
2020-10-13 10:42:23 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
-DCMAKE_C_COMPILER=gcc-9 \
|
|
|
|
-DCMAKE_CXX_COMPILER=g++-9 \
|
2019-09-30 16:34:40 +02:00
|
|
|
%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
|
2020-01-10 10:34:16 +01:00
|
|
|
%cmake_build
|
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
|