From 529c96c08b6c7ff459f41833e9788cc34a6ce8ac Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Wed, 17 Nov 2021 17:44:36 -0500 Subject: [PATCH] Fix to previous commit I used the binary directory instead of the source directory to specify the spec.in path, which passed local testing since these directories are in the same location. This is not guarenteed to be true. Change-Id: I1b49ca8453b9c074a947104c26fb39667d728a8e Signed-off-by: Jeremy Newton --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d48d98b8e..994b00fbf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,7 +336,7 @@ endif() ## Specify a RPM SPEC template # This template was generated by using "CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE" # but I've modified it to support CPACK_RPM_PACKAGE_RECOMMENDS for EL8+ and SLE -set ( CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_BINARY_DIR}/RPM/${CPACK_RPM_PACKAGE_NAME}.spec.in" ) +set ( CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_SOURCE_DIR}/RPM/${CPACK_RPM_PACKAGE_NAME}.spec.in" ) # 'dist' breaks manual builds on debian systems due to empty Provides execute_process( COMMAND rpm --eval %{?dist}