#!/bin/bash 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 /$RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_LIBEXECDIR@/@RDC@/python_binding/__pycache__ fi