diff --git a/projects/rdc/src/RPM_postun.in b/projects/rdc/src/RPM_postun.in index 377f96a64c..328d7aaec8 100755 --- a/projects/rdc/src/RPM_postun.in +++ b/projects/rdc/src/RPM_postun.in @@ -9,7 +9,7 @@ do_update_alternatives(){ for i in "${binaries[@]}" do - update-alternatives --remove "$i" @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/$i + update-alternatives --remove "$i" $RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_BINDIR@/$i done } diff --git a/projects/rdc/src/RPM_preun.in b/projects/rdc/src/RPM_preun.in index 1c0387275e..591da0b8d3 100644 --- a/projects/rdc/src/RPM_preun.in +++ b/projects/rdc/src/RPM_preun.in @@ -3,5 +3,5 @@ if [ $1 -le 1 ]; then # perform the below actions for rpm remove($1=0) or upgrade($1=1) operations # remove pyc file generated by python - rm -rf /@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/@RDC@/python_binding/__pycache__ + rm -rf /$RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_LIBEXECDIR@/@RDC@/python_binding/__pycache__ fi diff --git a/projects/rdc/src/RPM_rpm_post.in b/projects/rdc/src/RPM_rpm_post.in index bf7e8f0298..6bdf892e71 100755 --- a/projects/rdc/src/RPM_rpm_post.in +++ b/projects/rdc/src/RPM_rpm_post.in @@ -40,12 +40,12 @@ do_update_alternatives(){ do # No obvious recover strategy if things fail # No manual or other slave pages to install - if [ -e @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/"$i" ] + if [ -e $RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_BINDIR@/"$i" ] then update-alternatives --install /usr/bin/"$i" "$i" \ - @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/"$i" "$altscore" + $RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_BINDIR@/"$i" "$altscore" else - echo "@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/$i not found, but that is OK" >&2 + echo "$RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_BINDIR@/$i not found, but that is OK" >&2 fi done true @@ -78,7 +78,7 @@ do_create_rdc_user() { create_rdc_service() { if [ -d /run/systemd/system ]; then - ln -s -f -r @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/rdc/rdc.service @DISTRO_ROOT@/rdc.service + ln -s -f -r $RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_LIBEXECDIR@/rdc/rdc.service @DISTRO_ROOT@/rdc.service fi }