use majmin_ver

epel9
Rex Dieter 8 years ago
parent 6e066cf4aa
commit 6cbddd7335

@ -16,6 +16,7 @@ License: LGPLv2+
URL: https://quickgit.kde.org/?p=%{framework}.git URL: https://quickgit.kde.org/?p=%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2) %global versiondir %(echo %{version} | cut -d. -f1-2)
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
%global revision %(echo %{version} | cut -d. -f3) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
%global stable unstable %global stable unstable
@ -24,13 +25,13 @@ URL: https://quickgit.kde.org/?p=%{framework}.git
%endif %endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{majmin_ver}
BuildRequires: kf5-karchive-devel >= %{version} BuildRequires: kf5-karchive-devel >= %{majmin_ver}
BuildRequires: kf5-kconfig-devel >= %{version} BuildRequires: kf5-kconfig-devel >= %{majmin_ver}
BuildRequires: kf5-kcoreaddons-devel >= %{version} BuildRequires: kf5-kcoreaddons-devel >= %{majmin_ver}
BuildRequires: kf5-kdoctools-devel >= %{version} BuildRequires: kf5-kdoctools-devel >= %{majmin_ver}
BuildRequires: kf5-ki18n-devel >= %{version} BuildRequires: kf5-ki18n-devel >= %{majmin_ver}
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros >= %{majmin_ver}
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
Requires: kf5-filesystem >= %{version} Requires: kf5-filesystem >= %{version}

Loading…
Cancel
Save