forked from pool/doxygen
This commit is contained in:
parent
24bf63c2ef
commit
46d33f521f
20
doxygen.spec
20
doxygen.spec
@ -66,6 +66,8 @@ BuildRequires: pkgconfig(Qt5Gui)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(Qt5Xml)
|
||||
Requires: doxygen = %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == "doxygen"
|
||||
# for tests
|
||||
BuildRequires: libxml2-tools
|
||||
BuildRequires: texlive-bibtex
|
||||
@ -100,13 +102,15 @@ configuration files.
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
%if "%{flavor}" == "doxygen"
|
||||
-Dbuild_wizard=OFF \
|
||||
%endif
|
||||
%if "%{flavor}" == "doxwizard"
|
||||
-Dbuild_wizard=ON \
|
||||
%endif
|
||||
-Dbuild_doc=OFF \
|
||||
-Dbuild_xmlparser=ON \
|
||||
-Dbuild_doc=OFF \
|
||||
-Dbuild_search=OFF \
|
||||
-Dbuild_wizard=OFF \
|
||||
%if %{with libclang}
|
||||
-Duse_libclang=ON \
|
||||
%endif
|
||||
@ -123,9 +127,10 @@ configuration files.
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%if "%{flavor}" == "doxygen"
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/a
|
||||
%endif
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
rm %{buildroot}%{_bindir}/doxygen
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
@ -133,8 +138,8 @@ install -m 644 doc/doxywizard.1 %{buildroot}%{_mandir}/man1/
|
||||
%suse_update_desktop_file -i doxywizard Development Documentation
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxywizard"
|
||||
%check
|
||||
%if "%{flavor}" == "doxygen"
|
||||
# https://github.com/doxygen/doxygen/issues/10053
|
||||
rm -r testing/061*
|
||||
export LANG=C.UTF-8
|
||||
@ -143,13 +148,12 @@ export LANG=C.UTF-8
|
||||
%ctest
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doxygen"
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user