LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Source files (https://www.linuxquestions.org/questions/linux-newbie-8/source-files-272410/)

Slayer097 12-31-2004 04:04 PM

Source files
 
How do I make an rpm or deb or whatever out of source files? Thanks.

bigrigdriver 12-31-2004 05:20 PM

To make an rpm from a source tarball, you need to write an rpm spec file. Deb probably has something similar.
For the full documentation on writing rpm spec files, check out the Documentation links at the RH website, and download a copy of Max-rpm (700+ pages - all you could ever want to know about rpm).
Or,
cheat a little. Get checkinstall and use it to install a tarball (choose the option that makes both a binary and src rpm). Then unpack the .src.rpm and inspect the spec file to see how they're written.
Or,
do the same with any .src.rpm.
The spec file tells rpm what to do with the tarball and the files within. Max-rpm also goes into considerable depth on how to construct the build tree to make the tarball.
Go read. I wish you success. It's a trip the first time you get it to work.

srichand 01-01-2005 02:46 AM

You could get hold of this book http://www.amazon.com/exec/obidos/tg...glance&s=books
called Maximum RPM by Ed Bailey. Quite a good read.

Hope that helped

Srichand

mugstar 01-01-2005 03:50 AM

Quote:

Originally posted by bigrigdriver
To make an rpm from a source tarball, you need to write an rpm spec file.
Doesn't rpmbuild automate this?


All times are GMT -5. The time now is 12:00 AM.