Trying to create a spec file for a CentOS 6.5 system.  The rpm should check release to add specific Requires: lines based on the OS version....and it doesn't work at all:Spec file snippet:%if 0%{?rhel} == 6Requires: packageName%endif%descriptionCheck dependencies and make OS modifications. %files/etc/rpm/macros.dist:# dist macros.%rhel 6%centos 6%centos_ver 6%dist .el6%el6 1According to many web pages I've been to, the code should work but I never get a message that packageName is required when installing the rpm..What am I missing here??UPDATE...Reinstalled my system and everything works OK now..Something must have mess up my environment on my test system...My original code now works
rpm macros on CentOS 6.5
rpm;centos