SHA256
1
0
forked from pool/doxygen
Petr Gajdos 2023-06-23 15:41:51 +00:00 committed by Git OBS Bridge
parent 24bf63c2ef
commit 46d33f521f

View File

@ -66,6 +66,8 @@ BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(Qt5Xml)
Requires: doxygen = %{version} Requires: doxygen = %{version}
%endif
%if "%{flavor}" == "doxygen"
# for tests # for tests
BuildRequires: libxml2-tools BuildRequires: libxml2-tools
BuildRequires: texlive-bibtex BuildRequires: texlive-bibtex
@ -100,13 +102,15 @@ configuration files.
%build %build
%cmake \ %cmake \
%if "%{flavor}" == "doxywizard" %if "%{flavor}" == "doxygen"
-Dbuild_wizard=OFF \
%endif
%if "%{flavor}" == "doxwizard"
-Dbuild_wizard=ON \ -Dbuild_wizard=ON \
%endif %endif
-Dbuild_doc=OFF \
-Dbuild_xmlparser=ON \ -Dbuild_xmlparser=ON \
-Dbuild_doc=OFF \
-Dbuild_search=OFF \ -Dbuild_search=OFF \
-Dbuild_wizard=OFF \
%if %{with libclang} %if %{with libclang}
-Duse_libclang=ON \ -Duse_libclang=ON \
%endif %endif
@ -123,9 +127,10 @@ configuration files.
%install %install
%cmake_install %cmake_install
%if "%{flavor}" == "doxygen"
mkdir -p %{buildroot}%{_mandir}/man1/ 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" %if "%{flavor}" == "doxywizard"
rm %{buildroot}%{_bindir}/doxygen rm %{buildroot}%{_bindir}/doxygen
mkdir -p %{buildroot}%{_mandir}/man1/ 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 %suse_update_desktop_file -i doxywizard Development Documentation
%endif %endif
%if "%{flavor}" == "doxywizard"
%check %check
%if "%{flavor}" == "doxygen"
# https://github.com/doxygen/doxygen/issues/10053 # https://github.com/doxygen/doxygen/issues/10053
rm -r testing/061* rm -r testing/061*
export LANG=C.UTF-8 export LANG=C.UTF-8
@ -143,13 +148,12 @@ export LANG=C.UTF-8
%ctest %ctest
%endif %endif
%if "%{flavor}" == "doxygen"
%files %files
%if "%{flavor}" == "doxygen"
%license LICENSE %license LICENSE
%attr(644,root,root) %{_mandir}/man1/doxygen.1%{?ext_man} %attr(644,root,root) %{_mandir}/man1/doxygen.1%{?ext_man}
%attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_bindir}/*
%endif %endif
%if "%{flavor}" == "doxywizard" %if "%{flavor}" == "doxywizard"
%attr(755,root,root) %{_bindir}/doxywizard %attr(755,root,root) %{_bindir}/doxywizard
%{_datadir}/applications/doxywizard.desktop %{_datadir}/applications/doxywizard.desktop