1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
=head1 NAME
Debian::Copyright::Stanza::Header - header stanza of Debian copyright file
=head1 VERSION
This document describes Debian::Copyright::Stanza::Header version 0.2 .
=head1 SYNOPSIS
my $copy = Debian::Copyright::Stanza::Header->new(\%data);
print $copy; # auto-stringification
=head1 DESCRIPTION
Debian::Copyright::Stanza::Header can be used for representation and
manipulation of the header stanza of Debian copyright files in an
object-oriented way. Converts itself to a textual representation in string
context.
=head1 FIELDS
The supported fields for header stanzas are listed below.
Note that real copyright fields may contain dashes in their names. These are
replaced with underscores.
=over
=item Format
=item Upstream_Name
=item Comment
=item Upstream_Contact
=item Source
=item Disclaimer
=item License
=item Copyright
=item Files_Excluded
=back
=cut
package Debian::Copyright::Stanza::Header;
require v5.10.1;
use strict;
use warnings;
use base qw(Debian::Copyright::Stanza);
use constant fields => qw (
Format
Upstream_Name
Upstream_Contact
Source
Disclaimer
Comment
License
Copyright
Files_Excluded
);
our $VERSION = '0.2';
=head1 CONSTRUCTOR
=over
=item new
=item new( { field => value, ... } )
Creates a new L<Debian::Copyright::Stanza::Header> object and optionally
initialises it with the supplied data.
=back
=head1 SEE ALSO
Debian::Copyright::Stanza::Header inherits most of its functionality from
L<Debian::Copyright::Stanza>
=head1 COPYRIGHT & LICENSE
Copyright (C) 2011-12 Nicholas Bamber L<nicholas@periapt.co.uk>
This module is substantially based upon L<Debian::Control::Stanza::Source>.
Copyright (C) 2009 Damyan Ivanov L<dmn@debian.org>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License version 2 as published by the Free
Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
=cut
1;
|