Commit b2f4fefa authored by François Grisez's avatar François Grisez

flexisip-rpm: add an extra --define to rpmbuild invokation to indicate we are building on Debian

(cherry picked from commit 96bc5d26)
parent 7e90ba19
......@@ -828,6 +828,11 @@ macro(linphone_builder_add_external_project PROJNAME)
else()
set(CURRENT_PROJ_CMAKE_OPTIONS ${EP_${PROJNAME}_CMAKE_OPTIONS} ${EP_${PROJNAME}_LINKING_TYPE})
string(REPLACE ";" " " CURRENT_PROJ_CMAKE_OPTIONS "${CURRENT_PROJ_CMAKE_OPTIONS}")
if (${PLATFORM} STREQUAL "Debian")
set(DEBIAN_PLATFORM 1)
else()
set(DEBIAN_PLATFORM 0)
endif()
linphone_builder_configure_file_for_project(${PROJNAME} CONFIGURE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure_rpm.sh)
linphone_builder_configure_file_for_project(${PROJNAME} BUILD ${CMAKE_CURRENT_SOURCE_DIR}/cmake/build.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build_rpm.sh)
unset(CURRENT_PROJ_CMAKE_OPTIONS)
......
......@@ -13,6 +13,7 @@ export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
rpmbuild -ta --clean --rmsource --define "_topdir $RPM_TOPDIR" \
--define='_localstatedir /var/opt/belledonne-communications' \
--define='debian_platform @DEBIAN_PLATFORM@' \
@LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS@ \
@LINPHONE_BUILDER_RPMBUILD_OPTIONS@ \
--rmspec @ep_build@/*.tar.gz \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment