setup_rpm should notify about build status as early as possible
An attempt was made to fix this in https://github.com/ceph/ceph-build/pull/614, but that broke the rpm build because the operations on ceph.spec.in, namely
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec, moved across a cd, and operate on relative paths.
Several things ought to happen:
1) ceph.spec.in should be irrelevant to the build; although it's in the dist tarball, ceph.spec should serve for all purposes, as far as I can tell.
2) scripts that cd should refer to files with absolute paths to avoid this sort of brittleness.