LinuxQuestions.org
Review your favorite Linux distribution.
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 10-29-2007, 12:16 PM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
How to make a RPM?


Hi Folks,

I downloaded firefox tar ball firefox-2.0.0.6.tar.gz. I extracted to a folder named firefox. Also I have installed the firefox and is going great.

Just a formal question: How can I use rpmbuild command to make the rpm of the firefox tarball. I am reading the man page of rpmbuild but finding it bit confusing.

So can anyone share the best and easiest way of making the rpm of it.

Waiting for your reply....
 
Old 10-29-2007, 12:29 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,776

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Look through the contents of the tarball. Look for a file name that ends with .spec. That is the .spec file that rpmbuild needs. It tells rpmbuild what to do with the tarball.

If there isn't one, you could try writing your own .spec file. For guidence on that, check the documentation at the RedHat website. Look for a book called Maximum RPM. It used to be available free to download. It takes you through the entire process (with example code) of writing an rpm .spec file.

Another option is to search for a firefox .src.rpm, which included the .spec file and the tarball. Even if it's a different version, you may be able to edit the .spec file to work with the tarball you have now (basically making your own .src.rpm to use to compile your own .rpm).

Last edited by bigrigdriver; 10-29-2007 at 12:31 PM.
 
Old 10-29-2007, 01:20 PM   #3
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Thanx for the reply,

One more formal question. Can every tar ball be converted to a rpm? Or it depends on the source code. What I mean to say is that is there any restriction on what can be made or what can't be made to a rpm?
 
Old 10-29-2007, 03:55 PM   #4
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Hey I have just learned how to build the rpm using the spec file. Thanks to every one.

But I am running through a different problem now.

I am trying to build a rpm from the source files present inside /usr/voltaire using rpmbuild.

The directory (/usr/voltaire) contains 64-bit shared objects in /usr/voltaire/lib/.

Quote:
demoxe:/usr/voltaire/lib # file *
libdapl.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
libdat.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
libitapi.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
libucm.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
libugsi.a: current ar archive
libugsi.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
sock-redirect-env.32.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
sock-redirect-env.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
sock-redirect.32.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
sock-redirect.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
But rpmbuild command says 64-bit objects should be placed in lib64/ dir
(in this case, will be /usr/voltaire/lib64/).
So rpmbuild returns error and stops building a rpm.

How can I overcome this error?
 
Old 10-29-2007, 04:18 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by paragkalra View Post
Hi Folks,

I downloaded firefox tar ball firefox-2.0.0.6.tar.gz. I extracted to a folder named firefox. Also I have installed the firefox and is going great.

Just a formal question: How can I use rpmbuild command to make the rpm of the firefox tarball. I am reading the man page of rpmbuild but finding it bit confusing.

So can anyone share the best and easiest way of making the rpm of it.

Waiting for your reply....

If you are only building the binary rpm (and not the source rpm) then I recommend that you use checkinstall.

http://www.asic-linux.com.mx/~izto/checkinstall/

--------------------
Steve Stites
 
  


Reply

Tags
rpm, rpmbuild


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
How to make rpm? Basavaraj Linux - Newbie 5 05-23-2006 11:44 AM
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 10:42 AM
how do i make an rpm? webazoid Linux - Software 5 08-07-2004 02:09 AM
How do you make a RPM? aaronruss Linux - Newbie 2 06-08-2004 10:57 PM
'make rpm' problems Flarfu Fedora 1 12-21-2003 04:43 AM


All times are GMT -5. The time now is 11:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration