cleanup/fix Qt5 related deps

and create 'bluetooth' feature macro to enable experimental
bluetooth support (default off)
epel9
Rex Dieter 5 years ago
parent 001cdcd8e2
commit 81675dfbaf

@ -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}

Loading…
Cancel
Save