From 89890a8b2e07dc9969c9196c026b7bb69bf6bb44 Mon Sep 17 00:00:00 2001 From: Lauren Wrubleski Date: Fri, 9 Feb 2024 14:30:54 -0700 Subject: [PATCH] Correct debian/rpm --- .../cmake/ROCMCreatePackage.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake b/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake index cecc7289..7b0ba1a6 100755 --- a/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake +++ b/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake @@ -346,10 +346,18 @@ macro(rocm_create_package) CPACK_DEBIAN_DEVEL_PACKAGE_PROVIDES "${CPACK_DEBIAN_PACKAGE_PROVIDES}" "${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})") + endif() + + if(DEFINED CPACK_RPM_DEVEL_PACKAGE_PROVIDES) + rocm_join_if_set(", ", + CPACK_RPM_DEVEL_PACKAGE_PROVIDES + "${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}" + ) + else() rocm_join_if_set(", " CPACK_RPM_DEVEL_PACKAGE_PROVIDES - "${CPACK_DEBIAN_PACKAGE_PROVIDES}" - "${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}") + "${CPACK_RPM_PACKAGE_PROVIDES}" + "${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})") endif() else() rocm_package_add_dependencies(COMPONENT devel DEPENDS "${CPACK_PACKAGE_NAME} >= ${CPACK_PACKAGE_VERSION}")