[
{
'class_description' => 'Stand-alone license paragraph. This paragraph is used to describe licenses which are used somewhere else in the Files paragraph.',
'accept' => [
'.*',
{
'value_type' => 'string',
'type' => 'leaf',
'description' => 'license short_name. Example: GPL-1 LPL-2.1+'
}
],
'name' => 'Dpkg::Copyright::LicenseSpec',
'copyright' => [
'2010',
'2011 Dominique Dumont'
],
'author' => [
'Dominique Dumont'
],
'license' => 'LGPL2',
'element' => [
'text',
{
'compute' => {
'undef_is' => '\'\'',
'use_eval' => '1',
'formula' => 'require Software::LicenseUtils ;
my $h = {
short_name => &index( - ),
holder => \'foo\'
} ;
# no need to fail if short_name is unknown
eval {
Software::LicenseUtils->new_from_short_name($h)->summary ;
} ;',
'allow_override' => '1'
},
'value_type' => 'string',
'type' => 'leaf',
'description' => 'Full license text.'
}
]
}
]
;