2007-01-16 00:10:37 +01:00
|
|
|
#
|
2023-06-23 15:32:57 +02:00
|
|
|
# spec file
|
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
|
|
|
|
|
2023-06-23 15:32:57 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%global flavor doxygen
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: %{flavor}
|
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
|
2023-07-17 14:25:25 +02:00
|
|
|
%if "%{flavor}" == "doxywizard"
|
|
|
|
Source1: doxywizard.desktop
|
|
|
|
%endif
|
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
|
2023-07-18 10:40:17 +02:00
|
|
|
Patch11: reproducible.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
|
2023-06-23 15:32:57 +02:00
|
|
|
%if "%{flavor}" == "doxywizard"
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-xml
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
Requires: doxygen = %{version}
|
2023-06-23 17:41:51 +02:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "doxygen"
|
2023-06-23 15:32:57 +02:00
|
|
|
# for tests
|
|
|
|
BuildRequires: libxml2-tools
|
|
|
|
BuildRequires: texlive-bibtex
|
|
|
|
# --
|
|
|
|
%endif
|
2007-01-16 00:10:37 +01:00
|
|
|
|
2023-06-23 15:32:57 +02:00
|
|
|
%if "%{flavor}" == "doxygen"
|
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.
|
2023-06-23 15:32:57 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{flavor}" == "doxywizard"
|
|
|
|
%description
|
|
|
|
Doxywizard is a graphical front-end to read/edit/write doxygen
|
|
|
|
configuration files.
|
|
|
|
%endif
|
2015-02-23 08:27:51 +01:00
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
%prep
|
2023-06-23 16:30:27 +02:00
|
|
|
%setup -q -n doxygen-%{version}
|
2022-07-06 13:25:49 +02:00
|
|
|
# Leap 15 and SLE don't accept '%%autopatch -M'
|
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
|
2023-07-18 10:40:17 +02:00
|
|
|
%patch11 -p1
|
2007-01-16 00:10:37 +01:00
|
|
|
|
|
|
|
%build
|
2015-08-24 16:41:48 +02:00
|
|
|
%cmake \
|
2023-06-23 17:41:51 +02:00
|
|
|
%if "%{flavor}" == "doxygen"
|
|
|
|
-Dbuild_wizard=OFF \
|
|
|
|
%endif
|
2023-06-23 18:58:08 +02:00
|
|
|
%if "%{flavor}" == "doxywizard"
|
2023-06-23 15:32:57 +02:00
|
|
|
-Dbuild_wizard=ON \
|
|
|
|
%endif
|
2023-06-23 17:41:51 +02:00
|
|
|
-Dbuild_doc=OFF \
|
2023-06-23 18:58:08 +02:00
|
|
|
-Dbuild_xmlparser=ON \
|
2015-08-24 16:41:48 +02:00
|
|
|
-Dbuild_search=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/
|
2023-06-23 18:58:08 +02:00
|
|
|
%if "%{flavor}" == "doxygen"
|
|
|
|
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
2023-06-23 17:41:51 +02:00
|
|
|
%endif
|
2023-06-23 15:32:57 +02:00
|
|
|
%if "%{flavor}" == "doxywizard"
|
|
|
|
rm %{buildroot}%{_bindir}/doxygen
|
|
|
|
install -m 644 doc/doxywizard.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
%suse_update_desktop_file -i doxywizard Development Documentation
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
2023-06-23 17:41:51 +02:00
|
|
|
%if "%{flavor}" == "doxygen"
|
2023-06-23 15:32:57 +02:00
|
|
|
# https://github.com/doxygen/doxygen/issues/10053
|
|
|
|
rm -r testing/061*
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
# testing doxygen package here to avoid build
|
|
|
|
# cycle between latex and doxygen
|
|
|
|
%ctest
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
%files
|
2023-06-23 17:41:51 +02:00
|
|
|
%if "%{flavor}" == "doxygen"
|
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}/*
|
2023-06-23 15:32:57 +02:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "doxywizard"
|
|
|
|
%attr(755,root,root) %{_bindir}/doxywizard
|
|
|
|
%{_datadir}/applications/doxywizard.desktop
|
|
|
|
%{_mandir}/man1/doxywizard.1%{?ext_man}
|
|
|
|
%endif
|
2015-02-23 08:27:51 +01:00
|
|
|
|
2007-03-29 13:58:33 +02:00
|
|
|
%changelog
|