use %majmin, pkgconfig(Qt5...) style deps

epel9
Rex Dieter 7 years ago
parent a2faa29d70
commit eddc608f4f

@ -2,27 +2,27 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 2 addon with auto completion widgets and classes
License: 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
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-kconfig-devel >= %{version}
BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Widgets)
%description
KCompletion provides widgets with advanced completion support as well as a
@ -32,7 +32,7 @@ lower-level completion class which can be used with your own widgets.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake(Qt5Widgets)
Requires: pkgconfig(Qt5Widgets)
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
@ -73,6 +73,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, pkgconfig(Qt5...) style deps
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save