From 38c8f6979e7a6ae103dbdd87553c3d51397db1ab Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jul 18 2020 18:32:39 +0000 Subject: Update to new out-of-source build mechanism --- diff --git a/allegro.spec b/allegro.spec index f1f5474..09b81c1 100644 --- a/allegro.spec +++ b/allegro.spec @@ -1,3 +1,6 @@ +# Force out of source build +%undefine __cmake_in_source_build + Name: allegro Version: 4.4.3.1 Release: 2%{?dist} @@ -226,11 +229,11 @@ developing applications that use logg. %autosetup -p1 %build -mkdir -p build && pushd build %cmake3 -DOpenGL_GL_PREFERENCE:STRING=LEGACY -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ - -DDOCDIR:STRING=%{_pkgdocdir} -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE .. -%make_build + -DDOCDIR:STRING=%{_pkgdocdir} -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE +%cmake3_build +pushd %{_vpath_builddir} # Converting text documentation to UTF-8 encoding. for file in docs/AUTHORS docs/CHANGES docs/THANKS \ docs/info/*.info docs/txt/*.txt docs/man/get_camera_matrix.3 \ @@ -242,8 +245,9 @@ done popd %install -pushd build -%make_install +%cmake3_install + +pushd %{_vpath_builddir} # installation of these is broken, because they use a cmake GLOB, but # that gets "resolved" when runnning cmake, and at that time the files # to install aren't generated yet ...