Quote:
Originally Posted by rubanek
I'm trying to package Apache Tomcat binary tarball into an RPM package for CentOS 6.4. The idea is to easily install tomcat via yum from my private yum repo.
|
You would normally build an rpm from a source tarball, not a binary tarball.
If you have a local copy of the source in an svn or hg repository, you would normally build a source package which would then be used to build the rpm, using rpmbuild and a spec file to detail how to build and package the files.
If you don't have a local svn or hg repository, then you can get the tomcat-src.rpm, and use rpmbuild to rebuild an rpm.
The src.rpm usually contains a source archive (tar.gz, or similar) plus the spec file, and possibly patches to fix any problems.
Have a read about 'rpmbuild', to get more detail.
Cheers,
Terry