package Module::Install::Copyright;

use 5.006;
use base qw(Module::Install::Base);
use strict;

our $AUTHOR_ONLY = 1;
our $AUTHORITY   = 'cpan:TOBYINK';
our $VERSION     = '0.009';

sub write_copyright_file
{
	my $self = shift;
	$self->admin->write_copyright_file(@_) if $self->is_admin;
}

1;

__END__

=head1 NAME

Module::Install::Copyright - package a COPYRIGHT file with a distribution

=head1 SYNOPSIS

In Makefile.PL:

	write_copyright_file;

=head1 DESCRIPTION

Extracts copyright and licensing information from embedded pod and/or RDF
metadata included in the distribution, and outputs it as a text file called
"COPYRIGHT" which should roughly conform to the Debian copyright file format.

This module provides one function for use in L<Module::Install>-based
Makefile.PL scripts:

=over

=item C<< write_copyright_file >>

=back

=head1 BUGS

Please report any bugs to
L<http://rt.cpan.org/Dist/Display.html?Queue=Module-Install-Copyright>.

=head1 SEE ALSO

This is a plugin for L<Module::Install>.

It relies on metadata from L<Module::Install::RDF>.

It outputs data roughly conforming to
L<http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/>.

=head1 AUTHOR

Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

=head1 COPYRIGHT AND LICENCE

This software is copyright (c) 2012-2013 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=head1 DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.