LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm --rebuild - unknown option? (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-rebuild-unknown-option-348748/)

futz 08-01-2005 01:37 AM

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?

tkedwards 08-01-2005 01:41 AM

Code:

rpmbuild -ba icebreaker-1.2.1-1.src.rpm

futz 08-01-2005 02:01 AM

error: File /home/futz/Download/icebreaker-1.2.1-1.src.rpm does not appear to be a specfile.

tkedwards 08-01-2005 04:12 AM

Sorry, force of habit, its:
Code:

rpmbuild --rebuild icebreaker-1.2.1-1.src.rpm

futz 08-02-2005 09:03 PM

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.

tkedwards 08-02-2005 10:05 PM

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

futz 08-03-2005 12:12 AM

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

tkedwards 08-03-2005 04:20 AM

Try replacing 'copyright' with 'license':
Code:

License:        GPL

futz 08-03-2005 09:35 PM

Quote:

Originally posted by tkedwards
Try replacing 'copyright' with 'license':
Code:

License:        GPL

That did it. Thanks for the help.


All times are GMT -5. The time now is 06:30 PM.