summaryrefslogtreecommitdiffstats
path: root/default/cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-24 14:08:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commit46295b727cf75115003a2afd92d4029fa18a6df1 (patch)
tree9bd38fa8e152fd70ddc8f713c3957f8673a4f43c /default/cmake
parent857295339b54083dac9180dc0916dbe00e47f4e0 (diff)
Fix wrong rpm spec files extensions.
Classic RPM build file is suffixed with .spec. Change-Id: I66e1a756ce72501d3ebb103588bf439bf1135140 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'default/cmake')
-rw-r--r--default/cmake/macros.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/default/cmake/macros.cmake b/default/cmake/macros.cmake
index b1a5f68..9650ad0 100644
--- a/default/cmake/macros.cmake
+++ b/default/cmake/macros.cmake
@@ -166,8 +166,8 @@ macro(wgt_package_build)
endmacro(wgt_package_build)
macro(rpm_package_build)
- if(NOT EXISTS ${PROJECT_RPM_DIR}/config.rpm.in)
- MESSAGE(STATUS "Missing mandatory files: you needconfig.rpm.in in ${PROJECT_RPM_DIR} folder.")
+ if(NOT EXISTS ${PROJECT_RPM_DIR}/config.spec.in)
+ MESSAGE(STATUS "Missing mandatory files: you need config.spec.in in ${PROJECT_RPM_DIR} folder.")
else()
# extract PROJECT_PKG_DEPS and replace ; by , for RPM spec file
get_property(PROJECT_PKG_DEPS GLOBAL PROPERTY PROJECT_PKG_DEPS)
@@ -176,16 +176,16 @@ macro(rpm_package_build)
endforeach()
# build rpm spec file from template
- configure_file(${PROJECT_RPM_DIR}/config.rpm.in ${PROJECT_PKG_DIR}/config.rpm)
+ configure_file(${PROJECT_RPM_DIR}/config.spec.in ${PROJECT_PKG_DIR}/config.spec)
- add_custom_command(OUTPUT ${PROJECT_NAME}.rpm
+ add_custom_command(OUTPUT ${PROJECT_NAME}.spec
DEPENDS ${PROJECT_TARGETS}
- COMMAND rpmbuild -ba ${PROJECT_PKG_DIR}/config.rpm
+ COMMAND rpmbuild -ba ${PROJECT_PKG_DIR}/config.spec
)
- add_custom_target(rpm DEPENDS ${PROJECT_NAME}.rpm)
+ add_custom_target(rpm DEPENDS ${PROJECT_NAME}.spec)
add_dependencies(rpm populate)
- set(ADDITIONAL_MAKE_CLEAN_FILES, "${PROJECT_NAME}.rpm")
+ set(ADDITIONAL_MAKE_CLEAN_FILES, "${PROJECT_NAME}.spec")
if(PACKAGE_MESSAGE)
add_custom_command(TARGET rpm