From 3a703cec00ddc272ddc00b8c0baabca8924f67e6 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Wed, 25 Jun 2025 12:36:47 -0400 Subject: [PATCH] Provide a version for RPM Obsoletes attribute (#670) Fix RPM generation warning [ROCm/rocprofiler-compute commit: 1903e8e7487646ecb788da5e1cb4211db60406b5] --- projects/rocprofiler-compute/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index 0ff773a226..234f8f37c2 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -528,7 +528,7 @@ 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_OBSOLETES "${OMNIPERF_PACKAGE_NAME} < 3.0.0") set(CPACK_RPM_PACKAGE_CONFLICTS ${OMNIPERF_PACKAGE_NAME}) set(CPACK_DEBIAN_PACKAGE_PROVIDES ${OMNIPERF_PACKAGE_NAME})