use %majmin

epel9
Rex Dieter 7 years ago
parent b6d7fbcb80
commit da25e0dfbf

@ -2,26 +2,26 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 1 integration module for idle time detection
License: GPLv2+ and LGPLv2+
URL: https://cgit.kde.org/%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2)
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
# filter plugin provides
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
@ -32,7 +32,7 @@ BuildRequires: pkgconfig(xcb-sync)
BuildRequires: pkgconfig(xscrnsaver)
Requires: kf5-filesystem >= %{version}
Requires: kf5-filesystem >= %{majmin}
%description
KDE Frameworks 5 Tier 1 integration module for idle time detection.
@ -83,6 +83,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- use %%majmin
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save