diff --git a/bluez-qt.spec b/bluez-qt.spec index 18914cf..eafaf8e 100644 --- a/bluez-qt.spec +++ b/bluez-qt.spec @@ -18,12 +18,11 @@ %define sonum 6 %define _libname KF5BluezQt -%define _tar_path 5.103 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} -# Only needed for the package signature condition +%define qt5_version 5.15.2 %bcond_without released Name: bluez-qt Version: 5.114.0 @@ -36,15 +35,14 @@ Source: %{name}-%{version}.tar.xz Source1: %{name}-%{version}.tar.xz.sig Source2: frameworks.keyring %endif -BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} +BuildRequires: extra-cmake-modules >= %{_kf5_version} BuildRequires: fdupes -BuildRequires: kf5-filesystem -BuildRequires: cmake(Qt5Core) >= 5.15.0 -BuildRequires: cmake(Qt5DBus) >= 5.15.0 -BuildRequires: cmake(Qt5Gui) >= 5.15.0 -BuildRequires: cmake(Qt5Network) >= 5.15.0 -BuildRequires: cmake(Qt5Qml) >= 5.15.0 -BuildRequires: cmake(Qt5Widgets) >= 5.15.0 +BuildRequires: cmake(Qt5Core) >= %{qt5_version} +BuildRequires: cmake(Qt5DBus) >= %{qt5_version} +BuildRequires: cmake(Qt5Gui) >= %{qt5_version} +BuildRequires: cmake(Qt5Network) >= %{qt5_version} +BuildRequires: cmake(Qt5Qml) >= %{qt5_version} +BuildRequires: cmake(Qt5Widgets) >= %{qt5_version} BuildRequires: pkgconfig(udev) %description @@ -79,7 +77,7 @@ Udev rules. %package devel Summary: Async Bluez wrapper library - development files Requires: lib%{_libname}%{sonum} = %{version} -Requires: cmake(Qt5Core) >= 5.15.0 +Requires: cmake(Qt5Core) >= %{qt5_version} %description devel Development files for QBluez Async Bluez wrapper library.