title: How to prevent parallel installation of multiple version of an RPM?
body: <p>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 <code>%pre</code> and <code>%post</code> scripts create and delete some files, so multiple parallel installations will conflict with each other.</p>
  
  <p>Is there a way to prevent such parallel installation when building an RPM?</p>
  
  <p>The package is intended to work on CentOS (RHEL) 6.</p>