From 5f6062a146fac6f2a4f3821cef03bf1ba4d98144 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 6 Aug 2020 11:40:54 +0200 Subject: [PATCH] adaptations for CMake out-of-tree builds See: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds --- brewtarget.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/brewtarget.spec b/brewtarget.spec index 683520c..2ab59db 100644 --- a/brewtarget.spec +++ b/brewtarget.spec @@ -1,4 +1,5 @@ -# I don't see an obvious way to get a tarball by tag from gitorious, so: +# force out-of-tree build for spec compatibility with older releases +%undefine __cmake_in_source_build Name: brewtarget Version: 2.1.0 @@ -26,12 +27,13 @@ It also can export and import recipes in BeerXML. %build %cmake -DDO_RELEASE_BUILD:BOOL=ON -make %{?_smp_mflags} - +%cmake_build %install -make VERBOSE=1 INSTALL="install -p" CP="cp -p" DESTDIR=%{buildroot} install +%cmake_install /usr/bin/install -m 0644 -Dp doc/brewtarget.1 %buildroot%{_mandir}/man1/brewtarget.1 + +%check desktop-file-validate %buildroot%{_datadir}/applications/%{name}.desktop %files