I'm creating an RPM file (with rpmbuild). Currently it is possible to install several versions of the RPM in parallel (apparently RPM doesn't prevent this), but this causes problems because my %pre
and %post
scripts create and delete some files, so multiple parallel installations will conflict with each other.
Is there a way to prevent such parallel installation when building an RPM?
The package is intended to work on CentOS (RHEL) 6.