fix build error

This commit is contained in:
zhangxianjun 2024-11-18 17:34:15 +08:00
parent 4a5a5c2ce1
commit 9ab30cb155

View File

@ -12,7 +12,7 @@
Name: okular
Summary: A document viewer
Version: 23.08.4
Release: 1
Release: 2
License: GPLv2
URL: https://www.kde.org/applications/graphics/okular/
@ -144,14 +144,12 @@ sed -i -e 's|^add_subdirectory( mobile )|#add_subdirectory( mobile )|' CMakeList
%build
%cmake_kf5 -DOKULAR_UI=both \
%{cmake_kf5} -DOKULAR_UI=both \
-DFORCE_NOT_REQUIRED_DEPENDENCIES="CHM;LibZip;DjVuLibre;EPub;"
%make_build
%{cmake_build}
%install
%{make_install}
%{cmake_install}
%find_lang all --all-name --with-html --with-man
grep -v \
@ -215,6 +213,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.ok
%changelog
* Mon Nov 18 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 23.08.4-2
- adapt to the new CMake macros to fix build failure
* Tue Jan 02 2024 lvgenggeng<lvgenggeng@uniontech.com> - 23.08.4-1
- bump to 23.08.4