LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 02: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, 02: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, 03: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, 05: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, 10: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, 11: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, 01: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 02:30 AM.
 
Old 08-03-2005, 05: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 05:21 AM.
 
Old 08-03-2005, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 01:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration