forked from pool/doxygen
- convert two specfiles into one
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=185
This commit is contained in:
61
doxygen.spec
61
doxygen.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package doxygen
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
@@ -21,7 +21,12 @@
|
||||
%bcond_with libclang
|
||||
%endif
|
||||
|
||||
Name: doxygen
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == ""
|
||||
%global flavor doxygen
|
||||
%endif
|
||||
|
||||
Name: %{flavor}
|
||||
Version: 1.9.7
|
||||
Release: 0
|
||||
Summary: Automated C, C++, and Java Documentation Generator
|
||||
@@ -50,7 +55,24 @@ 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}
|
||||
# for tests
|
||||
BuildRequires: libxml2-tools
|
||||
BuildRequires: texlive-bibtex
|
||||
# --
|
||||
%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
|
||||
@@ -58,6 +80,13 @@ 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
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@@ -71,6 +100,9 @@ as well.
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
-Dbuild_wizard=ON \
|
||||
%endif
|
||||
-Dbuild_doc=OFF \
|
||||
-Dbuild_xmlparser=ON \
|
||||
-Dbuild_search=OFF \
|
||||
@@ -94,9 +126,34 @@ as well.
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
rm %{buildroot}%{_bindir}/doxygen
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 doc/doxywizard.1 %{buildroot}%{_mandir}/man1/
|
||||
%suse_update_desktop_file -i doxywizard Development Documentation
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
%check
|
||||
# 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
|
||||
|
||||
%if "%{flavor}" == "doxygen"
|
||||
%files
|
||||
%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