On Mon, Mar 23, 2015 at 9:16 PM, Taylor Braun-Jones <taylor@braun-jones.org> wrote:
To get the file name to match what the spec expected, I just had to:

mv SOURCES/kernel-rt-3.10.0-229.rt56.141.el7{,.centos}.tar.xz

Actually, renaming the file didn't quite work. What did work was using --define "dist .el7" like so:

rpmbuild --nodeps --define "%_topdir `pwd`" --define "dist .el7" -bs SPECS/kernel-rt.spec
mock -r epel-7-x86_64 --define "dist .el7" --rebuild SRPMS/kernel-rt-3.10.0-229.rt56.141.el7.src.rpm