- # fc3-7. So RHEL and Fedora look at the same file. The awk trickery here
- # forces the field to be numeric so that the spec comparison works
- %if %(awk '{print $1}' /etc/redhat-release) == "Fedora" && %(awk '{print $4+0}' /etc/redhat-release) == 3
+ # fc3-8. So RHEL and Fedora look at the same file. Different versions have
+ # different numbers of spaces; hence the use if $3 vs. $4..
+ %if %(awk '$1 == "Fedora" && $4 ~ /3.*/ { exit 1; }' /etc/redhat-release; echo $?)