From 6cbddd733554df7d5602e4f99f23a087db7ed913 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 16 Dec 2016 16:10:43 -0600 Subject: [PATCH] use majmin_ver --- kf5-kpackage.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/kf5-kpackage.spec b/kf5-kpackage.spec index 1b3e83e..c0e006e 100644 --- a/kf5-kpackage.spec +++ b/kf5-kpackage.spec @@ -16,6 +16,7 @@ License: LGPLv2+ URL: https://quickgit.kde.org/?p=%{framework}.git %global versiondir %(echo %{version} | cut -d. -f1-2) +%global majmin_ver %(echo %{version} | cut -d. -f1,2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable @@ -24,13 +25,13 @@ URL: https://quickgit.kde.org/?p=%{framework}.git %endif Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz -BuildRequires: extra-cmake-modules >= %{version} -BuildRequires: kf5-karchive-devel >= %{version} -BuildRequires: kf5-kconfig-devel >= %{version} -BuildRequires: kf5-kcoreaddons-devel >= %{version} -BuildRequires: kf5-kdoctools-devel >= %{version} -BuildRequires: kf5-ki18n-devel >= %{version} -BuildRequires: kf5-rpm-macros >= %{version} +BuildRequires: extra-cmake-modules >= %{majmin_ver} +BuildRequires: kf5-karchive-devel >= %{majmin_ver} +BuildRequires: kf5-kconfig-devel >= %{majmin_ver} +BuildRequires: kf5-kcoreaddons-devel >= %{majmin_ver} +BuildRequires: kf5-kdoctools-devel >= %{majmin_ver} +BuildRequires: kf5-ki18n-devel >= %{majmin_ver} +BuildRequires: kf5-rpm-macros >= %{majmin_ver} BuildRequires: qt5-qtbase-devel Requires: kf5-filesystem >= %{version}