I think parts of the tooling we have for building packages for Debian can be used for building on Red Hat.
We have scripts in the repo that can build packages for Debian. This is all based on a tarball containing all source and custom tools for building an SDK. Creating Debian packages is done by running the following commands (links to the source is provided):
Hopefuly the tarball should be sufficient for building on Red Hat as well. The
rules in the Debian package is just a makefile that only relies on the tarball, python and gcc (and well for Debian the debhelper package is also required).
When we build the Debian images for distribution it is happening in a Debian wheezy chroot, to make sure our glibc dependencies are so that the package will work on wheezy and upwards. Therefore there should be no hidden dependencies. The script for creating the chroot environment is
tools/create_debian_chroot.sh, and the only additional packages installed in the chroot are python g++-4.6 git and subversion.
Regards,
Søren