LinuxQuestions.org
Help answer threads with 0 replies.
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 12-08-2008, 06:14 PM   #1
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
rpmbuild a spec file when a BuildRequires is not installed


I'm trying to create a set of rpm files to install the requirements
for a program. I found a great utility named cpanspec that will
create a spec file for perl modules and have started building rpm
files.

I was able to create an rpm file for Business::CreditCard as a
regular user. Now I'm trying to build another module that
requires B::CC, and rpmbuild -ba fails saying that I am missing
B::CC. I don't want to install it just to create another rpm
file. Is there a way to make rpmbuild "think" that B::CC is
installed in the build environment without installing it on
the system?
 
Old 12-08-2008, 06:45 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since a .spec file takes shell commands you could export PERL5LIB=/some/dir inside of it which, if you run it from the CLI and check with 'perl -V', should show the path added to @INC?
 
  


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
Why is rpmbuild -ba name.spec is creating a <name>-debug.rpm only jjap Linux - Newbie 3 06-12-2008 06:01 PM
Wrote spec file, installed RPM, binary gives relocation error and refers to build dir hollywoodb Red Hat 2 05-19-2007 10:27 AM
Need help with RPMBUILD .spec included wadevondoom Linux - Software 3 07-27-2006 06:59 PM
Problem with rpmbuild and template.spec file abefroman Linux - Software 0 11-27-2005 12:18 AM
rpmbuild -ba php.spec pk21 Linux - General 0 09-16-2003 09:34 AM

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

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