LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2005, 01:37 AM   #1
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Rep: Reputation: 15
rpm --rebuild - unknown option?


I want to install the game IceBreaker. There's no package available for Fedora 4, so I was going to compile it from source. Here are the instructions from the site:

> In most cases, you should be able to grab the source rpm and rebuild.
>
> This is really easy: run "rpm --rebuild icebreaker-1.2.1-1.src.rpm", which will make a new
> binary RPM in /usr/src/rpm/RPMS/arch/ (with rpm possibly replaced by the name of your
> distro, and arch of course being the architecture of your system).

Of course, as usual, it's just not that simple. My rpm returns this error: "--rebuild: unknown option"

What's the deal?
 
Old 08-01-2005, 01:41 AM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Code:
rpmbuild -ba icebreaker-1.2.1-1.src.rpm
 
Old 08-01-2005, 02:01 AM   #3
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
error: File /home/futz/Download/icebreaker-1.2.1-1.src.rpm does not appear to be a specfile.
 
Old 08-01-2005, 04:12 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Sorry, force of habit, its:
Code:
rpmbuild --rebuild icebreaker-1.2.1-1.src.rpm
 
Old 08-02-2005, 09:03 PM   #5
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Aaaaarrrrrgggghhhhhh!!!! Here's what it says:

Installing icebreaker-1.2.1-1.src.rpm
warning: user mattdm does not exist - using root
warning: group src does not exist - using root
warning: user mattdm does not exist - using root
warning: group src does not exist - using root
error: Legacy syntax is unsupported: copyright
error: line 6: Unknown tag: Copyright: GPL

So much bullshit to go thru for a little game. There are times when I really really love my windoze xp box. Not so fun to tinker with as Linux, but so simple to do stuff like this.
 
Old 08-02-2005, 10:05 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
On most distros its simply a matter of going into the software installer, typing 'icebreaker' and clicking install, its available for both Debian and Mandrake like this. Unfortunately it doesn't appear to be packaged for Fedora, and that RPM you've got has been badly written.

Anyway try doing (all as root)
Code:
rpm -i icebreaker
then go to /usr/src/redhat/SPECS and comment out line 6 in the icebreaker SPEC file. Now run:
Code:
rpmbuild -ba /usr/src/redhat/SPECS/icebreaker.spec
 
Old 08-03-2005, 12:12 AM   #7
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
On most distros its simply a matter of going into the software installer, typing 'icebreaker' and clicking install, its available for both Debian and Mandrake like this.
Yup. It's that simple in Ubuntu, which uses Synaptic. I just did it.

---------------------------------------------

Back to Fedora 4:

Tried commenting out that line. That either doesn't work, or I'm not using the right character as a comment symbol. Tried all the usual ones.

Tried removing the line. Of course that won't work.

Read up on spec files. Saw this line,

Quote:
"Copyright: This line tells how a package is copyrighted. You should use something like GPL, BSD, MIT, public domain, distributable, or commercial."
So I tried various other entries like "public domain" and "distributable", in place of the original "GPL". All attempts got me messages like this:

Quote:
error: Legacy syntax is unsupported: copyright
error: line 6: Unknown tag: Copyright: distributable

Last edited by futz; 08-03-2005 at 01:30 AM.
 
Old 08-03-2005, 04:20 AM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Try replacing 'copyright' with 'license':
Code:
License:        GPL

Last edited by tkedwards; 08-03-2005 at 04:21 AM.
 
Old 08-03-2005, 09:35 PM   #9
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tkedwards
Try replacing 'copyright' with 'license':
Code:
License:        GPL
That did it. Thanks for the help.
 
  


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 .src.rpm -> unknown option gletare Fedora 2 11-05-2005 04:44 PM
rpm -bb unknown option nlardizabal Linux - Software 4 10-27-2005 10:44 AM
rpm -ba => -b : unknown option nextone Linux From Scratch 3 12-22-2004 07:48 PM
rpm -bb : unknown option stevie_velvet Linux - Enterprise 4 09-08-2004 08:23 AM
installing nvnet + rpm rebuild option gunslinger77 Linux - Software 0 05-11-2004 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

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