-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWDEV-371122 - Package name corrected for hip-catch-amd (#160)
Change-Id: I8ca14f50761e8f332bc0ca096594e241077f4715
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ set(CPACK_PACKAGE_DESCRIPTION "HIP: | |
Heterogenous-computing Interface for Portability [CATCH TESTS]") | ||
set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.") | ||
set(CPACK_PACKAGE_CONTACT "HIP Support <[email protected]>") | ||
set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_VERSION_PATCH_GITHASH@) | ||
set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@) | ||
# by default rpm tries to reduce the file size by stripping the executable | ||
# To avoid build/packaging failures SWDEV-375603 and skip stripping | ||
set(CPACK_RPM_SPEC_MORE_DEFINE "%global __os_install_post %{nil}") | ||
|
@@ -100,6 +100,27 @@ if (CPACK_PACKAGE_VERSION MATCHES "local" ) | |
set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX ${CPACK_INSTALL_PREFIX}) | ||
endif() | ||
|
||
if (DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) | ||
set(CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) | ||
else() | ||
set(CPACK_DEBIAN_PACKAGE_RELEASE "local") | ||
endif() | ||
|
||
if(DEFINED ENV{CPACK_RPM_PACKAGE_RELEASE}) | ||
set(CPACK_RPM_PACKAGE_RELEASE $ENV{CPACK_RPM_PACKAGE_RELEASE}) | ||
else() | ||
set(CPACK_RPM_PACKAGE_RELEASE "local") | ||
endif() | ||
|
||
execute_process( COMMAND rpm --eval %{?dist} | ||
RESULT_VARIABLE PROC_RESULT | ||
OUTPUT_VARIABLE EVAL_RESULT | ||
OUTPUT_STRIP_TRAILING_WHITESPACE ) | ||
# Add os distribution tag to rpm package name . For deb package its set from build env | ||
if ( PROC_RESULT EQUAL "0" AND NOT EVAL_RESULT STREQUAL "" ) | ||
string(APPEND CPACK_RPM_PACKAGE_RELEASE "%{?dist}") | ||
endif() | ||
|
||
set(CPACK_SOURCE_GENERATOR "TGZ") | ||
# Install license file | ||
set ( CPACK_RESOURCE_FILE_LICENSE "@CMAKE_CURRENT_LIST_DIR@/../LICENSE.txt" ) | ||
|