LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2005, 12:05 PM   #1
IronBeagle
LQ Newbie
 
Registered: Nov 2004
Distribution: Suse 9.2
Posts: 8

Rep: Reputation: 0
Question 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!
 
Old 03-04-2005, 01:14 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 03-04-2005, 01:46 PM   #3
IronBeagle
LQ Newbie
 
Registered: Nov 2004
Distribution: Suse 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks!

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building RPMs Brian of Gep Linux - Newbie 2 05-02-2004 10:26 AM
building rpms as non-root user - temp probs frogman Linux - Software 2 11-23-2003 04:41 PM
Using Source RPMs Ross Clement Red Hat 3 11-23-2003 02:44 PM
building rpms from cyrus-sasl help... tarballed Linux - Software 0 08-21-2003 06:09 PM
source rpms Daveb3 Linux - Newbie 9 04-05-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration