forked from pool/doxygen
Updating link to change in openSUSE:Factory/doxygen revision 95
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=cc123059886a9812d4165d5332d5b367
This commit is contained in:
committed by
Git OBS Bridge
parent
ab15a1d487
commit
20739a77af
94
doxygen.spec
94
doxygen.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package doxygen
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
@@ -21,13 +21,8 @@
|
||||
%bcond_with libclang
|
||||
%endif
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == ""
|
||||
%global flavor doxygen
|
||||
%endif
|
||||
|
||||
Name: %{flavor}
|
||||
Version: 1.9.7
|
||||
Name: doxygen
|
||||
Version: 1.9.6
|
||||
Release: 0
|
||||
Summary: Automated C, C++, and Java Documentation Generator
|
||||
# qtools are used for building and they are GPL-3.0 licensed
|
||||
@@ -35,12 +30,15 @@ License: GPL-2.0-or-later AND GPL-3.0-only
|
||||
Group: Development/Tools/Doc Generators
|
||||
URL: https://www.doxygen.nl/
|
||||
Source0: https://www.doxygen.nl/files/doxygen-%{version}.src.tar.gz
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
Source1: doxywizard.desktop
|
||||
%endif
|
||||
# suse specific
|
||||
Patch1: %{name}-no-lowercase-man-names.patch
|
||||
# The unified libclang-cpp library doesn't exist on older Leap / SLE
|
||||
Patch10: doxygen-no-libclang-cpp.patch
|
||||
Patch11: reproducible.patch
|
||||
# Fix PDF boudingbox parsing when dot uses cairo >= 1.17.6 -- https://github.com/doxygen/doxygen/issues/9319
|
||||
Patch20: https://github.com/doxygen/doxygen/commit/966d69c603b5.patch#/Fix-boundingbox-parsing_part1.patch
|
||||
Patch21: https://github.com/doxygen/doxygen/commit/7b2a6027775b.patch#/Fix-boundingbox-parsing_part2.patch
|
||||
Patch22: https://github.com/doxygen/doxygen/commit/f3514d578633.patch#/Fix-boundingbox-parsing_part3.patch
|
||||
Patch23: https://github.com/doxygen/doxygen/commit/8129939c312e.patch#/Fix-boundingbox-parsing_part4.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: flex
|
||||
@@ -57,25 +55,7 @@ Obsoletes: doxygen-doc
|
||||
%if %{with libclang}
|
||||
BuildRequires: llvm-clang-devel
|
||||
%endif
|
||||
%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}
|
||||
%endif
|
||||
%if "%{flavor}" == "doxygen-test"
|
||||
BuildRequires: libxml2-tools
|
||||
BuildRequires: texlive-bibtex
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxygen"
|
||||
%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
|
||||
@@ -83,40 +63,27 @@ 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.
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
%description
|
||||
Doxywizard is a graphical front-end to read/edit/write doxygen
|
||||
configuration files.
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxygen-test"
|
||||
%description
|
||||
Unit tests for doxygen.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n doxygen-%{version}
|
||||
%setup -q
|
||||
# Leap 15 and SLE don't accept '%%autopatch -M'
|
||||
%patch1 -p1
|
||||
%if %{with libclang}
|
||||
%if 0%{?sle_version} == 150100 || (0%{?sle_version} == 150200 && !0%{?is_opensuse})
|
||||
%patch10 -p1
|
||||
%endif
|
||||
%endif
|
||||
%patch11 -p1
|
||||
%patch20 -p1
|
||||
%patch21 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
%if "%{flavor}" == "doxygen"
|
||||
-Dbuild_wizard=OFF \
|
||||
%endif
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
-Dbuild_wizard=ON \
|
||||
%endif
|
||||
-Dbuild_doc=OFF \
|
||||
-Dbuild_xmlparser=ON \
|
||||
-Dbuild_search=OFF \
|
||||
-Dbuild_wizard=OFF \
|
||||
%if %{with libclang}
|
||||
-Duse_libclang=ON \
|
||||
%endif
|
||||
@@ -132,40 +99,13 @@ Unit tests for doxygen.
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%if "%{flavor}" == "doxygen-test"
|
||||
exit 0
|
||||
%endif
|
||||
%cmake_install
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
%if "%{flavor}" == "doxygen"
|
||||
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
||||
%endif
|
||||
%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
|
||||
%if "%{flavor}" == "doxygen-test"
|
||||
# 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
|
||||
|
||||
%files
|
||||
%if "%{flavor}" == "doxygen"
|
||||
%license LICENSE
|
||||
%attr(644,root,root) %{_mandir}/man1/doxygen.1%{?ext_man}
|
||||
%attr(755,root,root) %{_bindir}/*
|
||||
%endif
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
%attr(755,root,root) %{_bindir}/doxywizard
|
||||
%{_datadir}/applications/doxywizard.desktop
|
||||
%{_mandir}/man1/doxywizard.1%{?ext_man}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user