fix versionging (ie, use majmin)

epel9
Rex Dieter 6 years ago
parent a1993497c4
commit d9a8529beb

@ -7,31 +7,31 @@ Summary: KDE Frameworks 5 Tier 4 workspace and cross-framework integration plugi
License: LGPLv2+ License: LGPLv2+
URL: https://cgit.kde.org/%{framework}.git 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) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
%global stable unstable %global stable unstable
%else %else
%global stable stable %global stable stable
%endif %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
## upstream patches (lookaside cache) ## upstream patches (lookaside cache)
# filter plugin provides # filter plugin provides
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ %global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{version} BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kconfigwidgets-devel >= %{version} BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{version} BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kiconthemes-devel >= %{version} BuildRequires: kf5-kiconthemes-devel >= %{majmin}
BuildRequires: kf5-kio-devel >= %{version} BuildRequires: kf5-kio-devel >= %{majmin}
BuildRequires: kf5-knewstuff-devel >= %{version} BuildRequires: kf5-knewstuff-devel >= %{majmin}
BuildRequires: kf5-knotifications-devel >= %{version} BuildRequires: kf5-knotifications-devel >= %{majmin}
BuildRequires: kf5-kpackage-devel >= %{version} BuildRequires: kf5-kpackage-devel >= %{majmin}
BuildRequires: kf5-kwidgetsaddons-devel >= %{version} BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: libXcursor-devel BuildRequires: libXcursor-devel
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
@ -65,8 +65,8 @@ Requires: %{name} = %{version}-%{release}
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: kf5-kiconthemes-devel >= %{version} Requires: kf5-kiconthemes-devel >= %{majmin}
Requires: kf5-kconfigwidgets-devel >= %{version} Requires: kf5-kconfigwidgets-devel >= %{majmin}
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for

Loading…
Cancel
Save