From 638716710aef0fac50b946b5925c5c90c6f92b5a Mon Sep 17 00:00:00 2001 From: ChenYanpan Date: Mon, 18 Nov 2024 17:58:44 +0800 Subject: [PATCH] adapt to the new CMake macros to fix build failure --- okular.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/okular.spec b/okular.spec index 8b2b881..3dc3a3a 100644 --- a/okular.spec +++ b/okular.spec @@ -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/ @@ -81,7 +81,7 @@ BuildRequires: pkgconfig(libspectre) BuildRequires: pkgconfig(poppler-qt5) BuildRequires: pkgconfig(zlib) %if 0%{?fedora} -BuildRequires: pkgconfig(ddjvuapi) +BuildRequires: pkgconfig(ddjvuapi) %endif %if !0%{?bootstrap} @@ -111,8 +111,8 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel %{summary}. -%package libs -Summary: Runtime files for %{name} +%package libs +Summary: Runtime files for %{name} %if 0%{?fedora} # use Recommends to avoid hard deps -- rex ## lpr @@ -120,7 +120,7 @@ Recommends: cups-client ## ps2pdf,pdf2ps Recommends: ghostscript-core %endif -%description libs +%description libs %{summary}. %package part @@ -144,14 +144,14 @@ 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 +215,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.ok %changelog +* Mon Nov 18 2024 ChenYanpan - 23.08.4-2 +- adapt to the new CMake macros to fix build failure + * Tue Jan 02 2024 lvgenggeng - 23.08.4-1 - bump to 23.08.4 -- Gitee