RedHat version in rpm spec files

Hi

In opensuse we have this nice version control variable I use much when designing rpm spec files:

rpm --showrc | grep suse_version
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1700 
-14: suse_version       1140

But I do not find anything close to this in rhel/centos
The only way I've found is to sed /etc/redhat-release

Like this:

cat /etc/redhat-release | sed 's/[^0-9]//g'
63

But I do not know if this holds for all releases.

Thanks