commit b29429620b9a34a72dc49e3464c74a3d5dc45e43
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Aug 18 15:28:53 2020 +0100
Improve compatibility with new CMake macro
libftl.spec | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/libftl.spec b/libftl.spec
index 6c747fa..65b6680 100644
--- a/libftl.spec
+++ b/libftl.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: libftl
Version: 0.9.14
Release: 5%{?dist}
@@ -30,16 +32,13 @@ Development files for libftl.
%build
-mkdir -p build
-pushd build
%cmake3 -DDISABLE_AUTO_INGEST=TRUE \
-DDISABLE_FTL_APP=TRUE \
- -DFTL_INSTALL_INCLUDES=TRUE ..
-%make_build
-popd
+ -DFTL_INSTALL_INCLUDES=TRUE
+%cmake3_build
%install
-%make_install -C build
+%cmake3_install
%files
%license LICENSE