Version 0.04.
Handle BuildArch definition. Thanks to Steve Goldner for pointing out the omission.
This commit is contained in:
parent
29340d719a
commit
2f20b0d347
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue