diff --git a/CMakeLists.txt b/CMakeLists.txt index b312b6db5..40d00c713 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -427,7 +427,6 @@ set(CPACK_PACKAGE_VERSION # RPM package specific variables set(CPACK_RPM_PACKAGE_LICENSE "MIT") -set(CPACK_RPM_PACKAGE_PROVIDES "${CPACK_PACKAGE_NAME}") set(CPACK_RPM_COMPONENT_INSTALL ON) set(CPACK_RPM_PACKAGE_RELEASE_DIST ON) set(CPACK_RPM_FILE_NAME "RPM-DEFAULT") @@ -449,6 +448,16 @@ set(PACKAGE_REQUIRES set(CPACK_RPM_PACKAGE_REQUIRES ${PACKAGE_REQUIRES}) set(CPACK_DEBIAN_PACKAGE_DEPENDS ${PACKAGE_REQUIRES}) +# Handle the project rebranding from omniperf to rocprofiler-compute +set(OMNIPERF_PACKAGE_NAME "omniperf") +set(CPACK_RPM_PACKAGE_PROVIDES ${OMNIPERF_PACKAGE_NAME}) +set(CPACK_RPM_PACKAGE_OBSOLETES ${OMNIPERF_PACKAGE_NAME}) +set(CPACK_RPM_PACKAGE_CONFLICTS ${OMNIPERF_PACKAGE_NAME}) + +set(CPACK_DEBIAN_PACKAGE_PROVIDES ${OMNIPERF_PACKAGE_NAME}) +set(CPACK_DEBIAN_PACKAGE_REPLACES ${OMNIPERF_PACKAGE_NAME}) +set(CPACK_DEBIAN_PACKAGE_BREAKS ${OMNIPERF_PACKAGE_NAME}) + # Disable automatic dependency generation set(CPACK_RPM_PACKAGE_AUTOREQPROV OFF) set(CPACK_RPM_PACKAGE_AUTOREQ OFF)