From 81675dfbafd907bf06cef29fd6f90cd6436b3d7c Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 31 Mar 2020 15:55:08 -0500 Subject: [PATCH] cleanup/fix Qt5 related deps and create 'bluetooth' feature macro to enable experimental bluetooth support (default off) --- kde-connect.spec | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/kde-connect.spec b/kde-connect.spec index 3c54eec..d9e6389 100644 --- a/kde-connect.spec +++ b/kde-connect.spec @@ -1,6 +1,10 @@ + +# enable experimental (default off) bluetooth support +#global bluetooth 1 + Name: kde-connect Version: 1.4 -Release: 2%{?dist} +Release: 0.2%{?dist} License: GPLv2+ Summary: KDE Connect client for communication with smartphones @@ -35,8 +39,16 @@ BuildRequires: kf5-knotifications-devel BuildRequires: kf5-kwayland-devel BuildRequires: qt5-qtbase-devel -BuildRequires: qt5-qtdeclarative-devel -BuildRequires: qt5-qtx11extras-devel + +%if 0%{?bluetooth} +BuildRequires: cmake(Qt5Bluetooth) +%endif +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Multimedia) +BuildRequires: cmake(Qt5Network) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5Test) +BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(KF5PulseAudioQt) @@ -103,7 +115,8 @@ Supplements: (kdeconnectd and nautilus) %build mkdir %{_target_platform} pushd %{_target_platform} -%{cmake_kf5} .. +%{cmake_kf5} .. \ + %{?bluetooth:-DBLUETOOTH_ENABLED:BOOL=ON} popd %make_build -C %{_target_platform}