From fbb5d8a932c50b994ca7f29a6cfecf0e94279a0a0f166f3057c79f0a1ed085fe Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Fri, 14 May 2021 20:00:32 +0000 Subject: [PATCH] Accepting request 893226 from home:MasterPatricko:branches:KDE:Frameworks5 - Enable HEIF plugin build on openSUSE Tumbleweed (requires libheif) OBS-URL: https://build.opensuse.org/request/show/893226 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kimageformats?expand=0&rev=230 --- kimageformats.changes | 5 +++++ kimageformats.spec | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/kimageformats.changes b/kimageformats.changes index 28a721a..9395e04 100644 --- a/kimageformats.changes +++ b/kimageformats.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 14 05:15:36 UTC 2021 - Tejas Guruswamy + +- Enable HEIF plugin build on openSUSE Tumbleweed (requires libheif) + ------------------------------------------------------------------- Sat May 1 16:40:57 UTC 2021 - Christophe Giboudeaux diff --git a/kimageformats.spec b/kimageformats.spec index d4436f2..c8c58b3 100644 --- a/kimageformats.spec +++ b/kimageformats.spec @@ -18,6 +18,7 @@ %if 0%{?suse_version} > 1500 %define with_avif 1 +%define with_heif 1 %endif %define _tar_path 5.82 # Full KF5 version (e.g. 5.33.0) @@ -50,6 +51,9 @@ BuildRequires: cmake(Qt5Test) >= 5.15.0 %if 0%{?with_avif} BuildRequires: cmake(libavif) >= 0.8.2 %endif +%if 0%{?with_heif} +BuildRequires: cmake(libheif) >= 1.10.0 +%endif %requires_ge libQt5Gui5 %requires_ge libQt5PrintSupport5 Recommends: libqt5-qtimageformats >= 5.12.0 @@ -76,7 +80,7 @@ environments. %autosetup -p1 %build -%cmake_kf5 -d build +%cmake_kf5 -d build -- -DKIMAGEFORMATS_HEIF=ON %cmake_build %install @@ -90,6 +94,9 @@ environments. %if 0%{?with_avif} %{_kf5_plugindir}/imageformats/kimg_avif.so %endif +%if 0%{?with_heif} +%{_kf5_plugindir}/imageformats/kimg_heif.so +%endif %{_kf5_plugindir}/imageformats/kimg_exr.so %{_kf5_plugindir}/imageformats/kimg_hdr.so %{_kf5_plugindir}/imageformats/kimg_kra.so @@ -106,6 +113,9 @@ environments. %if 0%{?with_avif} %{_kf5_servicesdir}/qimageioplugins/avif.desktop %endif +%if 0%{?with_heif} +%{_kf5_servicesdir}/qimageioplugins/heif.desktop +%endif %{_kf5_servicesdir}/qimageioplugins/dds.desktop %{_kf5_servicesdir}/qimageioplugins/exr.desktop %{_kf5_servicesdir}/qimageioplugins/hdr.desktop