From b2671e6597ad7c33700f4e21acb56791ba857027cf1a943723fae52e8d9c489c Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 13 Sep 2017 13:37:25 +0000 Subject: [PATCH] Changes for KF5-KUF syncing OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/sonnet?expand=0&rev=143 --- sonnet.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sonnet.spec b/sonnet.spec index 8d1feba..b135b39 100644 --- a/sonnet.spec +++ b/sonnet.spec @@ -19,6 +19,10 @@ %bcond_without lang %define sonum 5 %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: sonnet Version: 5.38.0 Release: 0 @@ -26,7 +30,7 @@ Release: 0 BuildRequires: cmake >= 3.0 # Enchant plugin is currently disabled upstream #BuildRequires: enchant-devel -BuildRequires: extra-cmake-modules >= %{_tar_path} +BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes BuildRequires: kf5-filesystem %if %{with lang} @@ -53,7 +57,7 @@ HSpell, Enchant, ASpell and HUNSPELL. %package -n libKF5SonnetCore%sonum Summary: KDE spell checking library Group: System/GUI/KDE -Requires: %{name} >= %{_tar_path} +Requires: %{name} >= %{_kf5_bugfix_version} Obsoletes: libKF5SonnetCore4 %if %{with lang} Recommends: libKF5SonnetCore%sonum-lang = %{version}