LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Building RPMs from source (https://www.linuxquestions.org/questions/linux-software-2/building-rpms-from-source-297660/)

IronBeagle 03-04-2005 12:05 PM

Building RPMs from source
 
Can someone tell me how I can do this (again)?

I'll enter:
rpmbuild -ta myfile.tar.gz

I'll always get this message:
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

This is a problem with all of the source files, and I think I'm at my wits end.

Much appreciated!:cool:

bigrigdriver 03-04-2005 01:14 PM

To build an rpm from a source file, the source file has to contain an rpm .spec file. To get an idea of what a spec file looks like, install any .src.rpm you have handy, and look in the SOURCE and SPECS directories. In SOURCE, you'll find a tarball. In SPECS, you'll find an rpm .spec file.
Some tarballs contain the .spec file, which makes them basically a .src.rpm which looks and installs a bit differently for building. Most tarballs I've seen don't include the .spec file.

IronBeagle 03-04-2005 01:46 PM

Thanks!
 
Thanks for the info!
For a moment I was bouncing off the walls:
I'll wear my badge with pride:
:newbie:


All times are GMT -5. The time now is 11:08 AM.