commit 17d41828522bd331db5d867de063c020039a5440
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 23 15:58:22 2020 +0100
Improve compatibility with new CMake macro
deepin-movie.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/deepin-movie.spec b/deepin-movie.spec
index f908feb..8f4df82 100644
--- a/deepin-movie.spec
+++ b/deepin-movie.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: deepin-movie
Version: 3.2.24.3
Release: 4%{?dist}
@@ -54,11 +56,11 @@ Header files and libraries for %{name}.
sed -i '/dtk2/s|lib|libexec|' src/CMakeLists.txt
%build
-%cmake -DCMAKE_BUILD_TYPE=Release
-%make_build
+%cmake3 -DCMAKE_BUILD_TYPE=Release
+%cmake3_build
%install
-%make_install
+%cmake3_install
install -Dm644 %SOURCE1 %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
appstream-util validate-relax --nonet
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop