From 08d9bb643e45f86c418f1aa240098b162e77fdba Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64lebuilder0 Date: Thu, 22 Nov 2018 17:52:37 +0100 Subject: [PATCH] doxygen add option to build without qt4 and docs Signed-off-by: basebuilder_pel7ppc64lebuilder0 --- SPECS/doxygen.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SPECS/doxygen.spec b/SPECS/doxygen.spec index 3e9061b9..e5182f7c 100644 --- a/SPECS/doxygen.spec +++ b/SPECS/doxygen.spec @@ -1,3 +1,6 @@ +%define withqt4 0 +%define withdocs 0 + Summary: A documentation system for C/C++ Name: doxygen Epoch: 1 @@ -36,6 +39,7 @@ documentation is extracted directly from the sources. Doxygen can also be configured to extract the code structure from undocumented source files. +%if %{withqt4} %package doxywizard Summary: A GUI for creating and editing configuration files Requires: %{name} = %{epoch}:%{version}-%{release} @@ -43,6 +47,7 @@ BuildRequires: qt4-devel %description doxywizard Doxywizard is a GUI for creating and editing configuration files that are used by doxygen. +%endif %package latex Summary: Support for producing latex/pdf output from doxygen @@ -78,7 +83,9 @@ unset QTDIR ./configure \ --prefix %{_prefix} \ --shared \ +%if %{withqt4} --with-doxywizard \ +%endif --release # workaround for "Error: operand out of range", language.cpp needs to be splitted @@ -88,11 +95,14 @@ sed -i -e "s|-o ../objects/language.o|-fno-merge-constants -fsection-anchors -o %endif make %{?_smp_mflags} all +%if %{withdocs} make docs +%endif %install make install DESTDIR=%{buildroot} +%if %{withqt4} make doxywizard_install DESTDIR=%{buildroot} install -m644 -p -D %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/doxywizard.png @@ -100,19 +110,24 @@ install -m644 -p doc/doxywizard.1 %{buildroot}%{_mandir}/man1/ desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} +%endif %files %doc LANGUAGE.HOWTO README.md examples +%if %{withdocs} %doc html +%endif %{_bindir}/doxygen %{_mandir}/man1/doxygen.1* +%if %{withqt4} %files doxywizard %{_bindir}/doxywizard %{_mandir}/man1/doxywizard* %{_datadir}/applications/doxywizard.desktop %{_datadir}/pixmaps/doxywizard.png +%endif %files latex # intentionally left blank