Building a RPM
Hi all,
Ive read some previous posts on this subject but im in the dark since i am a newbie still and would like to see if someone can help me with building my own RPM.
Ive also been to the numerous RPM howto build sites but still need help, so if someone could please provide me with answers to some of my questions instead of posting links, that would be very appreciated, unless of course its a site that a 2nd grader can use to build his own RPM with pictures and hand puppets, then those are welcome! j/k
What i want to do is download this open source product which comes in a .tar.gz file, un zip it, run the config, make, make install, etc...
Then tar up the directory and create an rpm based on the arguments i used to do the install. The reason for this is so that when someone else uses this newly created RPM, it will install it in a different directory instead of the default directory, they wont need to run all the commands like configure, make, etc... Just an rpm -i filename.rpm should do the trick.
When i untar the original file and do the install myself, i notice it does have a .spec file. I think this is where im having problems. Can i alter this file to have the new directories in it and then build the rpm? What flags should i pass rpmbuild, ta or ba? When i did ta i have 4 rpm's, the main rpm, the devel, the www, and another one. This confused me because i wanted just one rpm.
Please help me understand how to do this. The guy that was here previously did it this way but left no instructions on how to do it.
|