Or `tar -tzf $TAR | grep specfile` and then `cd #{temp}/SPECS; tar -zxf $TAR ext/redhat/$SPEC` to extract just the specfile.