Browse Source

doxygen add option to build without qt4 and docs

Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64lebuilder0 6 years ago
parent
commit
08d9bb643e
  1. 15
      SPECS/doxygen.spec

15
SPECS/doxygen.spec

@ -1,3 +1,6 @@ @@ -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 @@ -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 @@ -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 @@ -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 @@ -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/ @@ -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

Loading…
Cancel
Save