From a25820819365e093f71d1b280a70127ef5b60d3405c83e94a54df93c3ea93366 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 13 Sep 2017 12:41:23 +0000 Subject: [PATCH] Changes for KF5-KUF syncing OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kimageformats?expand=0&rev=126 --- kimageformats.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kimageformats.spec b/kimageformats.spec index 62b3023..6301333 100644 --- a/kimageformats.spec +++ b/kimageformats.spec @@ -17,16 +17,20 @@ %define _tar_path 5.38 +# Full KF5 version (e.g. 5.33.0) +%{!?_kf5_version: %global _kf5_version %{version}} +# Last major and minor KF5 version (e.g. 5.33) +%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} Name: kimageformats Version: 5.38.0 Release: 0 BuildRequires: cmake >= 3.0 -BuildRequires: extra-cmake-modules >= %{_tar_path} +BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes BuildRequires: kf5-filesystem BuildRequires: openexr BuildRequires: openexr-devel -BuildRequires: cmake(KF5Archive) >= %{_tar_path} +BuildRequires: cmake(KF5Archive) >= %{_kf5_bugfix_version} BuildRequires: cmake(Qt5Gui) >= 5.6.0 BuildRequires: cmake(Qt5PrintSupport) >= 5.6.0 BuildRequires: cmake(Qt5Test) >= 5.6.0