Building custom RPMs
Can anyone recommend a good resource for learning how to build RPM packages from source tarballs? Redhat doesn't support it and after doing repeated searches for the past 4 days, there is nothing on the internet except for a shallow how-tos.
I'm trying to package a build of clamav we can distribute internally but will eventually need to make builds of java, jboss, tripwire, etc...
Some specific problems I am having include:
- I created a non-root account to build rpms but even though I specified a buildroot, when I build the RPM it still tries to overwrite libs in /var/lib.
- I downloaded the source tarball from clamav.com, can configure;make;make install just fine but when I build the rpm then try to install the rpm on another system it complains that the prereq libclamav.so.6 isn't installed.. but its in the source tarball. Shouldn't rpm include it as part of the make install?
The best doc I've found so far is the max-rpm.pdf document by Ed Bailey. I'm following it but not finding ways around these roadblocks. Looked at LDP too. If anyone knows of better resources, I'd appreciate the clue.
|