Sometimes it is just quicker to test the building of a CentOS package locally, than to wait for the OBS server to build it.
You also get a chance to search the BUILD directory for files that you might be missing.

I have written how to do this for Debian in an earlier post (see near the bottom): http://www.pokorra.de/2013/10/howto-improve-debian-packages-using-obs/

See also http://software.opensuse.org/download?package=osc&project=openSUSE%3ATools how to install osc for all sorts of Linux distributions!

For CentOS, you do this:

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/openSUSE:Tools/CentOS_6/openSUSE:Tools.repo
yum install osc build
osc -A https://obs.kolabsys.com:444/ checkout home:timotheus:branches:Kolab:Development
cd home:timotheus:branches:Kolab:Development/kolab-utils
osc build CentOS_6 x86_64 kolab-utils.spec --no-verify

Without the –no-verify parameter, you get errors like these:

/var/tmp/osbuild-packagecache/CentOS:6/release/x86_64/acl-2.2.49-6.el6.x86_64.rpm : public key not available
/var/tmp/osbuild-packagecache/CentOS:6/release/x86_64/attr-2.4.44-7.el6.x86_64.rpm : public key not available
[...]

By the way, you find the BUILDROOT in:

/var/tmp/build-root/CentOS_6-x86_64/home/abuild/rpmbuild/BUILDROOT/
Build OBS packages locally for CentOS
Markiert in: