This allows patches to be applied when building the RPMs; the addition
of the ceph patch to disable /etc/init.d/ceph from autostarting Ceph
daemons leads to the desire for a .patch file, conditionally applied
by the .spec. See the Ceph sources.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
mkdir -p ${BUILDAREA}/{SOURCES,SRPMS,SPECS,RPMS,BUILD}
cp -a ceph-*.tar.bz2 ${BUILDAREA}/SOURCES/.
cp -a ceph.spec ${BUILDAREA}/SPECS/.
+cp -a *.patch ${BUILDAREA}/SOURCES/. || true
# Build RPMs
BUILDAREA=`readlink -fn ${BUILDAREA}` ### rpm wants absolute path