Add URL fix for SUSE's spec and add test
This commit is contained in:
parent
e491d549e7
commit
cbfad9f5ca
2 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,7 @@ sub _build_parse_spec {
|
|||
summary => qr[^Summary:\s+(.+)],
|
||||
license => qr[^License:\s+(.+)],
|
||||
group => qr[^Group:\s+(\S+)],
|
||||
url => qr[^(URL|Url):\s+(\S+)],
|
||||
url => qr[^(?:URL|Url):\s+(\S+)],
|
||||
buildroot => qr[^BuildRoot:\s+(\S+)],
|
||||
buildarch => qr[^BuildArch:\s+(\S+)],
|
||||
excludearch => qr[^ExcludeArch:\s+(\S+)],
|
||||
|
|
|
@ -12,6 +12,7 @@ isa_ok($spec, 'Parse::RPM::Spec');
|
|||
|
||||
is($spec->name, 'perl-Array-Compare', 'Correct name');
|
||||
is($spec->summary, 'Perl extension for comparing arrays', 'Correct summary');
|
||||
is($spec->url, 'http://search.cpan.org/dist/Array-Compare/', 'Correct URL');
|
||||
is($spec->epoch, 1, 'Correct epoch');
|
||||
|
||||
is($spec->version, '1.16', 'Correct version');
|
||||
|
|
Loading…
Add table
Reference in a new issue