Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 6520b90d1f
commit 2b3e7d644a
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -1,4 +1,4 @@
%undefine __cmake_in_source_build
# enable experimental (default off) bluetooth support # enable experimental (default off) bluetooth support
#global bluetooth 1 #global bluetooth 1
@ -117,17 +117,13 @@ Supplements: (kdeconnectd and nautilus)
%build %build
mkdir %{_target_platform} %{cmake_kf5} \
pushd %{_target_platform}
%{cmake_kf5} .. \
%{?bluetooth:-DBLUETOOTH_ENABLED:BOOL=ON} %{?bluetooth:-DBLUETOOTH_ENABLED:BOOL=ON}
popd %cmake_build
%make_build -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %cmake_install
# firewalld as shipped in f31+ provides it's own kdeconnect.xml # firewalld as shipped in f31+ provides it's own kdeconnect.xml
%if 0%{?fedora} && 0%{?fedora} < 31 %if 0%{?fedora} && 0%{?fedora} < 31

Loading…
Cancel
Save