I just want to create an RPM file to distribute my Linux binary “foobar”, with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installed in /usr/bin/foobar.
Unfortunately the documentation for RPM is 27 chapters long and I really don’t have a day to sit down and read this, because I am also busy making .deb and EXE installers for other platforms.
What is the absolute minimum I have to do to create an RPM? Assume the foobar binary and foobar.conf are in the current working directory.
I often do binary rpm per packaging proprietary apps – also moster as websphere – on linux.
So my experience could be useful also a you, besides that it would better to do a TRUE RPM if you can. But i digress.
So the a basic step for packaging your (binary) program is as follow – in which i suppose the
program is toybinprog with version 1.0, have a conf to be installed in /etc/toybinprog/toybinprog.conf and have a bin to be installed in /usr/bin called tobinprog :
1. create your rpm build env for RPM < 4.6,4.7
2. create the tarball of your project
3. Copy to the sources dir
4. build the source and the binary rpm
And that’s all.
Hope this help