LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-25-2012, 12:24 PM   #1
LKM
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Building RPM package for the first time, Please Help!


Hi All,

I am new to this forum, and since I am on a tight deadline, I thought of just posting my question instead of looking for the answers in previous posts. I am not asking anyone to do the research for me;however if someone has a lot of experience with this and can answer my questions I would really appreciate it. If you feel that my questions are unfair or dishonest or stupid or you have no desire to answer then there is no need for a reply. I sincerely appreciate any help I get, thank you..

I am trying to write a spec file to create a RPM package for the first time.

Here is what I am working with:

- My software already has been built. I just need to package the binary files with its dependencies into a RPM package. I am trying to build this RPM package on Linux Redhat.
- I have various run time dependencies such as: xerces, jama,matlab,perl etc.
- All files that will be packaged have been placed in the /opt directory.

My questions:

- Does anyone have any example spec file to create RPM package from binary files?

- With the above conditions my spec file will have two sections filled out %Requires and %files, is that correct?

- How do I add dependencies in the spec file?

- Is there a way to add a RPM package within another RPM package?

- What happens if the target machine (where I am trying to install the RPM package) does not have the required software, should I add the depended software within my RPM package? if yes, how do I do this?

I really appreciate any and all help.

Thank you and have a great day

Last edited by LKM; 09-25-2012 at 02:39 PM. Reason: In response to a reply.
 
Old 09-25-2012, 02:01 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by LKM View Post
since I am on a tight deadline, I thought of just posting my question instead of looking for the answers in previous posts.
...which might give others the impression of them letting them do your work for you?


Quote:
Originally Posted by LKM View Post
Does anyone have any example spec file to create RPM package from binary files?
That is not how RPM works but in short you only have and populate a %files section. See http://docs.fedoraproject.org/drafts...n/ch09s05.html


Quote:
Originally Posted by LKM View Post
spec file will have two sections filled out %Requires and %files, is that correct?
Time to find out I'd say...


Quote:
Originally Posted by LKM View Post
How do I add dependencies in the spec file?
See Prereq and BuildRequires?


Quote:
Originally Posted by LKM View Post
Is there a way to add a RPM package within another RPM package?
I hope not.


Quote:
Originally Posted by LKM View Post
What happens if the target machine (where I am trying to install the RPM package) does not have the required software, should I add the depended software within my RPM package?
That would undermine and defeat the whole purpose of using such a mature and stable package management system.
 
  


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
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 02:10 AM
Questions regarding building Rpm package. mathnitin Linux - Software 2 10-01-2011 02:28 AM
RPM Package building harish.patel Linux - Newbie 2 12-26-2008 12:57 AM
building rpm package question hct224 Linux - Newbie 2 09-02-2004 06:41 AM
Building own RPM package hems Linux - Newbie 1 11-28-2002 04:16 AM

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

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