title: How to check os version in rpmbuild spec file
body: <p>I am building an rpm where I need to check the OS version. If it is rhel5 or rhel6, then it'll work, else it'll stop.
  Please advice how can I make it.</p>
  
  <p>Thanks &amp; Regards. </p>