LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2006, 03:33 AM   #1
arnold12
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
Question on RPM


I am a semi newbie to creating a RPM for Linux. I search so many sites in web for get a tutorial about creating RPM. Yes, I have now some tutorial but that all are not so clear to me.

To create a RPM, I have to write spec file where all information is gathered about the installation process. But that’s not my point, my point is how can I add my own files like apache-tom-5.0.tar.gz and test.war, in the rpm?

I need basic information about that.
 
Old 07-19-2006, 04:51 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Did you mean rpmbuild or are we talking about different things here? It's been a long time since I last dealt with rpms so I might be wrong. Though I do remember that creating an rpm package seemed to be a difficult task since no good tutorials, advices nor other info was easy to find.
 
Old 07-19-2006, 04:59 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If they don't need to be processed at %setup or %build time, then at %install time just copy files from your $RPM_SOURCE_DIR to the appropriate $RPM_BUILD_ROOT subdir.


I do remember that creating an rpm package seemed to be a difficult task
Not really, no.
 
Old 07-19-2006, 05:02 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you need good tutorials for building rpms, then take a look at the Max rpm book available at rpm.org. Also take a look at the Fedora Developers Guide as well as the Fedora Project wiki.

As for including your own files in rpms, you include them as patches.
 
Old 07-19-2006, 05:21 AM   #5
arnold12
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn
If they don't need to be processed at %setup or %build time, then at %install time just copy files from your $RPM_SOURCE_DIR to the appropriate $RPM_BUILD_ROOT subdir.
OK,so in this way I can add my own files.
Now there is my another question, how can I put own files in specific location??

Like I want to put test.war file in /usr/local/student location.

waiting for another reply.

thanx.
 
Old 07-19-2006, 06:53 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Take a look at the Fedora developers guide line that I posted. Read the part about the spec file and what each section is about. After that concentrate on the section that says %files.
 
Old 07-30-2006, 01:38 AM   #7
arnold12
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I want to build a rpm on jdk using the jdk-1_5_0_06-linux-i586.bin file. I know there is an option on rpmbuild –rebuild on jpackage’s noarch rpm.

But I like to write a spec file on it. Is it the proper way to solve??
 
Old 07-30-2006, 08:06 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by arnold12
I want to build a rpm on jdk using the jdk-1_5_0_06-linux-i586.bin file. I know there is an option on rpmbuild –rebuild on jpackage’s noarch rpm.

But I like to write a spec file on it. Is it the proper way to solve??
Sun already supplies an rpm for jdk so I am not sure why you need to make your own.
 
  


Reply



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
rpm -Va question satimis Fedora 2 04-24-2005 08:27 PM
rpm question talkinggoat Linux - Newbie 2 09-26-2003 11:45 AM
RPM question tarballed Linux - General 1 04-01-2003 04:37 PM
RPM question aizkorri Programming 1 04-20-2002 02:02 PM
RPM Question AMDPwred Linux - General 4 01-20-2002 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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