LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-30-2011, 04:49 PM   #1
mathnitin
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Questions regarding building Rpm package.


I am trying to build the rpm package for the first time and I am not completely clear with the spec file, the way it works and have couple of questions.

1. What do I need to put in the install section of the spec file?Can anyone explain me the use of it please.

2. Do we need a "make install" always? The way I install is run "./configure" and "make". This installs it for the current user. But now when I am making a rpm for this, Do I need to have an "make install" in my spec file or this will work?

3. By default if I am not including any of the files in %file sections, what all files are copied in my rpm package?

4. When we run the "rpm -i package_name.rpm" command what exactly happens. I mean does it look into the %install section of the spec file or somewhere else and as I am just using the make command not the make install, where does it install and copy my files?

Thanks,
 
Old 09-30-2011, 08:01 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
a few things

what operation system is this

it DOSE make a bit of a difference
SUSE uses rpm's but uses OBS
fedora 15 ,rhel 5.7 . and rhel6.1 are different

also
Code:
zypper in ?
VS.
yum install ??
you have set up the rpmbuild directory ? right
rpmbuild software is installed


what tutorials have you read on this "unnamed" operating system ?
fedora
https://fedoraproject.org/wiki/How_t...an_RPM_package
CentOS
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
Red Hat
use the paid for help
-- other--
https://www.ibm.com/developerworks/library/l-rpm1/

SUSE
see: opensuse build service
https://build.opensuse.org/
 
Old 10-01-2011, 02:28 AM   #3
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 409

Rep: Reputation: 47
Quote:
Originally Posted by mathnitin View Post
I am trying to build the rpm package for the first time and I am not completely clear with the spec file, the way it works and have couple of questions.

1. What do I need to put in the install section of the spec file?Can anyone explain me the use of it please.
Hullo,
There are quite a few things to come to grips with when starting out to build your own packages.
I think a good way to learn is to get hold of a source tarball for a small package, and also get the src.rpm package.
You can compare what files are generated by 'make' in the source build with the details in the spec file.
A bit of experimenting and you will learn a lot.

Cheers,
Terry
 
  


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
RPM Package building harish.patel Linux - Newbie 2 12-26-2008 12:57 AM
Creating RPM Package without sources, building etc prakashpms Linux - Software 1 08-27-2008 03:19 PM
building rpm package question hct224 Linux - Newbie 2 09-02-2004 06:41 AM
building POSTFIX rpm package for Redhat hct224 Linux - Newbie 6 06-16-2004 02:32 AM
Building own RPM package hems Linux - Newbie 1 11-28-2002 04:16 AM


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