Accepting request 893231 from KDE:Frameworks5

OBS-URL: https://build.opensuse.org/request/show/893231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kimageformats?expand=0&rev=93
This commit is contained in:
Dominique Leuenberger 2021-05-18 16:26:47 +00:00 committed by Git OBS Bridge
commit f767511c46
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 14 05:15:36 UTC 2021 - Tejas Guruswamy <tejas.guruswamy@opensuse.org>
- Enable HEIF plugin build on openSUSE Tumbleweed (requires libheif)
-------------------------------------------------------------------
Sat May 1 16:40:57 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -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