2007-01-15 23:10:37 +00:00
|
|
|
#
|
2023-09-14 09:23:20 +00:00
|
|
|
# spec file for package doxygen
|
2007-01-15 23:10:37 +00:00
|
|
|
#
|
2023-03-16 08:25:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:10:37 +00:00
|
|
|
#
|
2009-01-13 17:42:16 +00: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 07:54:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:10:37 +00:00
|
|
|
#
|
|
|
|
|
2020-10-13 09:23:28 +00:00
|
|
|
|
2020-10-13 08:42:23 +00:00
|
|
|
%if 0%{?sle_version} >= 150100
|
2019-09-30 14:34:40 +00:00
|
|
|
# build with "--with libclang" to enable libclang support
|
|
|
|
%bcond_with libclang
|
2020-10-13 08:42:23 +00:00
|
|
|
%endif
|
|
|
|
|
2023-09-14 09:23:20 +00:00
|
|
|
Name: doxygen
|
2023-12-27 09:29:43 +00:00
|
|
|
Version: 1.10.0
|
2012-07-13 08:46:49 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Automated C, C++, and Java Documentation Generator
|
2017-11-10 13:20:33 +00:00
|
|
|
# qtools are used for building and they are GPL-3.0 licensed
|
2018-06-19 09:54:31 +00:00
|
|
|
License: GPL-2.0-or-later AND GPL-3.0-only
|
2007-01-15 23:10:37 +00:00
|
|
|
Group: Development/Tools/Doc Generators
|
2020-09-21 09:16:31 +00:00
|
|
|
URL: https://www.doxygen.nl/
|
2021-01-26 07:51:28 +00:00
|
|
|
Source0: https://www.doxygen.nl/files/doxygen-%{version}.src.tar.gz
|
2023-09-14 09:23:20 +00:00
|
|
|
# suse specific
|
|
|
|
Patch1: %{name}-no-lowercase-man-names.patch
|
2022-07-06 11:25:49 +00:00
|
|
|
# The unified libclang-cpp library doesn't exist on older Leap / SLE
|
2020-10-13 08:42:23 +00:00
|
|
|
Patch10: doxygen-no-libclang-cpp.patch
|
2015-02-23 07:27:51 +00:00
|
|
|
BuildRequires: bison
|
2023-12-27 09:29:43 +00:00
|
|
|
BuildRequires: cmake >= 3.14
|
2015-02-23 07:27:51 +00:00
|
|
|
BuildRequires: flex
|
2020-10-13 08:42:23 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: gcc9-c++
|
|
|
|
%else
|
2015-02-23 07:27:51 +00:00
|
|
|
BuildRequires: gcc-c++
|
2020-10-13 08:42:23 +00:00
|
|
|
%endif
|
2018-01-03 14:22:12 +00: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 09:34:16 +00:00
|
|
|
%if %{with libclang}
|
|
|
|
BuildRequires: llvm-clang-devel
|
|
|
|
%endif
|
2007-01-15 23:10:37 +00:00
|
|
|
|
|
|
|
%description
|
2023-12-27 09:29:43 +00:00
|
|
|
Doxygen is the de facto standard tool for generating documentation
|
|
|
|
from annotated C++ sources, but it also supports other popular
|
|
|
|
programming languages such as C, Objective-C, C-sharp, PHP, Java,
|
|
|
|
Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran,
|
|
|
|
and to some extent D. Doxygen also supports the hardware description
|
|
|
|
language VHDL.
|
2023-08-24 10:46:28 +00:00
|
|
|
|
2007-01-15 23:10:37 +00:00
|
|
|
%prep
|
2023-09-14 09:23:20 +00:00
|
|
|
%setup -q
|
2022-07-06 11:25:49 +00:00
|
|
|
# Leap 15 and SLE don't accept '%%autopatch -M'
|
2023-09-14 09:23:20 +00:00
|
|
|
%patch1 -p1
|
2019-09-30 14:34:40 +00:00
|
|
|
%if %{with libclang}
|
2020-10-13 08:42:23 +00:00
|
|
|
%if 0%{?sle_version} == 150100 || (0%{?sle_version} == 150200 && !0%{?is_opensuse})
|
2020-07-10 07:24:58 +00:00
|
|
|
%patch10 -p1
|
|
|
|
%endif
|
|
|
|
%endif
|
2007-01-15 23:10:37 +00:00
|
|
|
|
|
|
|
%build
|
2015-08-24 14:41:48 +00:00
|
|
|
%cmake \
|
2023-06-23 15:41:51 +00:00
|
|
|
-Dbuild_doc=OFF \
|
2023-06-23 16:58:08 +00:00
|
|
|
-Dbuild_xmlparser=ON \
|
2015-08-24 14:41:48 +00:00
|
|
|
-Dbuild_search=OFF \
|
2023-09-14 09:23:20 +00:00
|
|
|
-Dbuild_wizard=OFF \
|
2019-09-30 14:34:40 +00:00
|
|
|
%if %{with libclang}
|
|
|
|
-Duse_libclang=ON \
|
2020-10-13 08:42:23 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
-DCMAKE_C_COMPILER=gcc-9 \
|
|
|
|
-DCMAKE_CXX_COMPILER=g++-9 \
|
2019-09-30 14:34:40 +00:00
|
|
|
%endif
|
2016-02-21 06:51:20 +00: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 11:22:33 +00:00
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=ON
|
2020-01-10 09:34:16 +00:00
|
|
|
%cmake_build
|
2015-02-23 07:27:51 +00:00
|
|
|
|
2007-01-15 23:10:37 +00:00
|
|
|
%install
|
2015-08-24 14:41:48 +00:00
|
|
|
%cmake_install
|
2015-08-18 13:13:27 +00:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
2023-06-23 16:58:08 +00:00
|
|
|
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
2023-06-23 13:32:57 +00:00
|
|
|
|
2007-01-15 23:10:37 +00:00
|
|
|
%files
|
2018-06-19 13:01:16 +00:00
|
|
|
%license LICENSE
|
2018-01-03 14:22:12 +00:00
|
|
|
%attr(644,root,root) %{_mandir}/man1/doxygen.1%{?ext_man}
|
2015-02-23 07:27:51 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
|
|
|
|
2007-03-29 11:58:33 +00:00
|
|
|
%changelog
|