Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 rpmbuild, build rpm from tarball

views
     
TSevilguy
post Jun 19 2005, 05:40 PM, updated 21y ago

Enthusiast
*****
Senior Member
871 posts

Joined: Dec 2004
hye...i want to ask how to build rpm from tarball. i use to build xine rpm from tar using the commad rpmbuild -ta. i tried to build other program but it is unsuccessfull. i dont remember the error but it is something like "version not inclued in main program" i think the error sound like that. is there any command to bypass the version check in the tarball? thanks in advance smile.gif
fyire
post Jun 19 2005, 09:10 PM

Look at all my stars!!
Group Icon
VIP
9,270 posts

Joined: Jan 2003
From: Somewhere out there
it'll help if u can post the exact tarball version of the xine that you wanna turn into a RPM. basically, for building of RPMs, you're gonna need somekinda rpm .spec file that defines how the RPM is gonna be built. Will be helpful if you can post that .spec file contents too
kons
post Jun 19 2005, 09:17 PM

Конс
Group Icon
Moderator
6,181 posts

Joined: Oct 2004



Usually the spec file is inside the tarball.
So far I haven't encountered any problem with rpmbuild before.
But I have to admit that I don't build rpm that often...

I would always extract it first before rpmbuild it.
Bah, that would make no difference..

Perhaps you can tell us which tarball are you using to build..
Include the address to the tarball as well...
I'll be glad to try it.

Cheers!
TSevilguy
post Jun 20 2005, 11:11 AM

Enthusiast
*****
Senior Member
871 posts

Joined: Dec 2004
sory.. hehe.. ok. first of all i tried to rpm build tvtime but i have fail. i dont remember other software that i've tried to rpmbuild. actually only i've can rpmbuild only xine software without any problem. kons.. u mantion that u extract it first and then u rpmbuild that software. what command to use? recently i have tried to rpmbuild k3b. the source code come with .bz2 extension. i tried to use rpmbuild -ta but it cant do the job. the new version k3b work on kde 3.2 right? i'm using kde 3.4. so...is there any problem with that? smile.gif

kons
post Jun 20 2005, 11:24 AM

Конс
Group Icon
Moderator
6,181 posts

Joined: Oct 2004



Sometimes, unless we are desperate, it's good to install using the install script provided within the tar.gz
If a package is available as RPM, usually they would make it as RPM first before we can get a hand on it, like PBone tvtime.

The spec file provided with tvtime probably doesn't follow the standard conventions, and if it's .bz2, I'm afraid we might want to extract it out first, before rpmbuild it.

Cheers!
TSevilguy
post Jun 20 2005, 04:14 PM

Enthusiast
*****
Senior Member
871 posts

Joined: Dec 2004
QUOTE(kons @ Jun 20 2005, 11:24 AM)
If a package is available as RPM, usually they would make it as RPM first before we can get a hand on it, like PBone tvtime.
*
actually i dont really understand what u mean sweat.gif

the reason i want to rpmbuild couse it is easier to track down programs that i've installed using yast. if i install program from tarbal, yast cannot detect it. smile.gif

i know how to extract the tar.bz2. and after i have extract it, how to rpmbuild it?

so the conclusion is, not all programs out there can be turned to rpm? correct me if i'm wrong.
kons
post Jun 20 2005, 04:23 PM

Конс
Group Icon
Moderator
6,181 posts

Joined: Oct 2004



QUOTE(evilguy @ Jun 20 2005, 04:14 PM)
i know how to extract the tar.bz2. and after i have extract it, how to rpmbuild it?

so the conclusion is, not all programs out there can be turned to rpm? correct me if i'm wrong.
*
To rpmbuild a tar.gz or tar.bz2 file, we will need to locate the spec file if it's not in the standard location.
Furthermore, some of them have even rename the spec file to some weird file name that it cannot be found by normal user.
The worst case would be, they didn't bother to write a spec file or, they didn't bother to include it inside the tarball... Then it's impossible to rpmbuild it.

Yeah, not all tarballs out there can be rpmbuild.

YaST is a stranger to me. biggrin.gif

Cheers!
hunt2sp
post Jun 20 2005, 06:29 PM

Always Somewhere
*****
Senior Member
772 posts

Joined: Jan 2003
From: Derng Cale Sir Punk
YaST, isnt that in Suse? I came trought YaST during the Novel Suse Open day...are you using Suse?
kons
post Jun 20 2005, 06:38 PM

Конс
Group Icon
Moderator
6,181 posts

Joined: Oct 2004



QUOTE(hunt2sp @ Jun 20 2005, 06:29 PM)
YaST, isnt that in Suse? I came trought YaST during the Novel Suse Open day...are you using Suse?
*
Yeah. It's from Suse.
It's not my cup of tea.
Ubuntu, Fedora, and Gentoo is my cup of tea.
TSevilguy
post Jun 21 2005, 12:44 AM

Enthusiast
*****
Senior Member
871 posts

Joined: Dec 2004
yes i'm using suse. yast really help newbie like me. it show all the program that i have install to my pc. but only if i've installed the program in rpm format. if i install using tarbal, yast cannot detect it. so.. that's why i try to rpmbuild all the tarbal. if somebody can help me on how to detect all the program that i've installed include the tarball program without using yast, i really appreciate that smile.gif
fyire
post Jun 21 2005, 12:58 AM

Look at all my stars!!
Group Icon
VIP
9,270 posts

Joined: Jan 2003
From: Somewhere out there
QUOTE(evilguy @ Jun 20 2005, 04:14 PM)
actually i dont really understand what u mean  sweat.gif

the reason i want to rpmbuild couse it is easier to track down programs that i've installed using yast. if i install program from tarbal, yast cannot detect it. smile.gif

i know how to extract the tar.bz2. and after i have extract it, how to rpmbuild it?

so the conclusion is, not all programs out there can be turned to rpm? correct me if i'm wrong.
*
Actually, no, anything can be turned into RPM, just that there will be times when you have to write ya own spec file. Having said that, some spec files may be tailored for different distributions, so something that can work on redhat may not work on suse. That's why you may need to modify your spec file at times in order to get it to work.

After you've extracted the tar.bz2 tarball, look inside that directory for a file with the extension .spec. That is what u need to do the rpmbuild

Do a search on RPMs on google. There should be those guides out there, do a search on freshmeat as well, I've seen some apps that help u with the rpmbuild process too...

 

Change to:
| Lo-Fi Version
0.0151sec    0.14    5 queries    GZIP Disabled
Time is now: 25th December 2025 - 02:28 AM