Mailinglist Archive: opensuse-buildservice (260 mails)

< Previous Next >
Re: [opensuse-buildservice] How to handle BuildRequires in spec file like "/usr/bin/perl"?
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 23 Dec 2009 11:53:09 +0100
  • Message-id: <20091223105309.GA24312@xxxxxxx>
On Wed, Dec 23, 2009 at 06:09:09PM +0800, Jian Lee wrote:
I'm treat it as the same as BuildRequires, so I modified the
Build/Rpm.pm to contain it in the pool of BuildRequires:

-------------------------------------------------
# grep -i BuildPrereq /usr/lib/build/Build/Rpm.pm
$ifdeps = 1 if $line =~ /^(BuildRequires|BuildPrereq|
BuildConflicts|\#\!BuildIgnore)\s*:\s*(\S.*)$/i;
if ($preamble && ($line =~ /^(BuildRequires|BuildPrereq|
BuildConflicts|\#\!BuildIgnore)\s*:\s*(\S.*)$/i)) {
if (lc($what) ne 'buildrequires' and lc($what) ne 'buildprereq')
{
===========================================

Thanks, I've changed our code to match that.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >