Well since I don't know Oracle Enterprise Linux, but know a bit about building RPMs, I can describe the way I did it.
Sure you might need to first read RPM building HOWTO at fedoraproject.org
if you haven't done so already.
The next step you download some SRPM from your target Linux distribution (the one for which you're building RPM) and extract a SPEC file, which you can then use as a basis for your future custom RPM's SPEC. If you're installing a prog that requires creating system users, for example, then download a SRPM for some package that does the same and follow the way it does it.
Then you edit in the SPEC such fields as the package name, the source file name, etc., and especially the parts where it lists files it will install. The list of the files you get from your testing compile and install into some custom root.
Then you do `rpmbuild [options] yourpackage.spec` and see how it runs, then bring corrections into the SPEC in case of errors. It's actually rather simple
straighforward, just first of all make sure your compilation goes fine and the compiled packages install and run fine.
I've successfully followed this pattern building quite a few packages, simple as well as complicated. After all, it is nothing but an automated compilation and install.