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}