On Wednesday 26 June 2002 2:56 pm, Joe Sullivan wrote:
There are several programs that I'd like to make SuSE RPMs for (not part of the SuSE distro).
I'm sorta new at making RPMs, so I'm wondering a few things...
Have you read? http://www.rpm.org/max-rpm/ Very good.
Right now, I'm making an RPM by taking a tarball and doing: rpm -tb tarballname.tar.gz
From the manual I would guess that it would look inside that tarball for a spec file. Does that actually give you a finished RPM? What about an SRPM?
But will that RPM work on another person's SuSE system? I'm referring only to general programs, not anything that's "vital" to the linux system like the kernel or gcc...
Generally I try to build on the same kind of system as that which it will eventually run on. The only thing to be concerned about is file hierarchy. I would recommend looking at the output of rpm -qlp <your rpm>.rpm to see if it writes to any bizarre places before actually installing it. Your %files in your spec file should tell you which files you are picking up. You could make your RPM relocatable, but I haven't tried that. Jon