LinuxQuestions.org
Review your favorite Linux distribution.
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-18-2014, 06:07 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
rpmbuild - how to setup compile options


HI All,

I`m trying to build rpm package base on the source package.
I would like to know, how may I configure compilation options in the .spec file.

For example:
Quote:
./configure --prefix=/opt/nginx --enable-wmi-module
How may I do this, in which section I need to put what.


Thank You in advance for Your support.
 
Old 09-18-2014, 06:29 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,617

Rep: Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367
that is more or less obvious. It should be put before the make command. In general all the build related commands should be put into the %build section. The only exception is the make install phase (that will go into the %install section). But there are exceptions, especially if you download a source package you need to check how should you do that. the %install section will prepare the $RPM_BUILD_ROOT directory and the underlying structure.
 
  


Reply

Tags
compile, rpm


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
[SOLVED] rpmbuild and the %setup directive entz Linux - Kernel 2 08-20-2011 08:39 AM
compile options teufelhund Slackware 5 04-12-2006 03:22 AM
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 07:53 PM
rpmbuild desired cpu options asprayama Linux - Software 1 03-27-2005 02:42 PM
rpmbuild options ras123 Linux - Software 3 05-02-2004 11:27 PM

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

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