2021-03-22 13:09:46 -07:00
|
|
|
# second term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
2022-02-24 12:01:39 -05:00
|
|
|
if [ $1 -le 1 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
|
|
|
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
|
2022-06-01 10:28:47 -07:00
|
|
|
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/x86_64-libhsakmt.conf
|
2021-03-22 13:09:46 -07:00
|
|
|
ldconfig
|
|
|
|
|
fi
|