From 8575662bf23abb0ada4e9ca2ee0442d06062c46f Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 21 2020 07:24:20 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/qxkb.spec b/qxkb.spec index a4c2918..d95cc41 100644 --- a/qxkb.spec +++ b/qxkb.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + %global commit ee9a1eee9dc810b33b931601203051d841bc3e7a %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -31,24 +33,13 @@ Can use svg icon for indicate language layer. %autosetup %build -mkdir build -pushd build -%cmake .. -make %{?_smp_mflags} -popd +%cmake +%cmake_build %install -pushd build -%{make_install} -popd +%cmake_install desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop -%post -/usr/bin/update-desktop-database &> /dev/null || : - -%postun -/usr/bin/update-desktop-database &> /dev/null || : - %files %doc COPYING NEWS README %{_bindir}/%{name}