Version 0.04.

Handle BuildArch definition. Thanks to Steve Goldner for pointing out the omission.
This commit is contained in:
Dave Cross 2009-10-27 12:38:49 -04:00
parent 29340d719a
commit 2f20b0d347
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use warnings;
use Carp;
use Moose;
our $VERSION = '0.03';
our $VERSION = '0.04';
has file => ( is => 'rw', isa => 'Str', required => 1 );
has name => ( is => 'rw', isa => 'Str' );
@ -66,6 +66,7 @@ sub parse_file {
/^URL:\s*(\S+)/ and $self->{url} = $1;
/^Source0?:\s*(\S+)/ and $self->{source} = $1;
/^BuildRoot:\s*(\S+)/ and $self->{buildroot} = $1;
/^BuildArch:\s*(\S+)/ and $self->{buildarch} = $1;
/^BuildRequires:\s*(.+)/ and push @{$self->{buildrequires}}, $1;
/^Requires:\s*(.+)/ and push @{$self->{requires}}, $1;