Fix failing test
This commit is contained in:
parent
529c06b04c
commit
f7c21bdcba
2 changed files with 18 additions and 18 deletions
|
@ -35,25 +35,25 @@ has parse_spec => (
|
|||
sub _build_parse_spec {
|
||||
return {
|
||||
scalars => {
|
||||
name => qr[^Name:\s*(\S+)],
|
||||
version => qr[^Version:\s*(\S+)],
|
||||
epoch => qr[^Epoch:\s*(\S+)],
|
||||
release => qr[^Release:\s*(\S+)],
|
||||
summary => qr[^Summary:\s*(.+)],
|
||||
license => qr[^License:\s*(.+)],
|
||||
group => qr[^Group:\s*(\S+)],
|
||||
url => qr[^URL:\s*(\S+)],
|
||||
buildroot => qr[^BuildRoot:\s*(\S+)],
|
||||
buildarch => qr[^BuildArch:\s*(\S+)],
|
||||
excludearch => qr[^ExcludeArch:\s*(\S+)],
|
||||
exclusivearch => qr[^ExclusiveArch:\s*(\S+)],
|
||||
excludeos => qr[^ExcludeOS:\s*(\S+)],
|
||||
exclusiveos => qr[^ExclusiveOS:\s*(\S+)],
|
||||
name => qr[^Name:\s+(\S+)],
|
||||
version => qr[^Version:\s+(\S+)],
|
||||
epoch => qr[^Epoch:\s+(\S+)],
|
||||
release => qr[^Release:\s+(\S+)],
|
||||
summary => qr[^Summary:\s+(.+)],
|
||||
license => qr[^License:\s+(.+)],
|
||||
group => qr[^Group:\s+(\S+)],
|
||||
url => qr[^URL:\s+(\S+)],
|
||||
buildroot => qr[^BuildRoot:\s+(\S+)],
|
||||
buildarch => qr[^BuildArch:\s+(\S+)],
|
||||
excludearch => qr[^ExcludeArch:\s+(\S+)],
|
||||
exclusivearch => qr[^ExclusiveArch:\s+(\S+)],
|
||||
excludeos => qr[^ExcludeOS:\s+(\S+)],
|
||||
exclusiveos => qr[^ExclusiveOS:\s+(\S+)],
|
||||
},
|
||||
arrays => {
|
||||
source => qr[^Source\d*:\s*(\S+)],
|
||||
buildrequires => qr[^BuildRequires:\s*(.+)],
|
||||
requires => qr[^Requires:\s*(.+)],
|
||||
source => qr[^Source\d*:\s+(\S+)],
|
||||
buildrequires => qr[^BuildRequires:\s+(.+)],
|
||||
requires => qr[^Requires:\s+(.+)],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ use warnings;
|
|||
use Test::More;
|
||||
use Test::Exception;
|
||||
|
||||
BEGIN { use_ok('Parse::RPM::Spec') };
|
||||
use Parse::RPM::Spec;
|
||||
|
||||
my $spec = Parse::RPM::Spec->new( { file => 't/perl-License-Syntax.spec' } );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue