Software-License-OrLaterPack-v0.10.2/0000775000175100017510000000000012777011543015422 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/0000775000175100017510000000000012777011543016170 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/0000775000175100017510000000000012777011543017762 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/0000775000175100017510000000000012777011543021344 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/LGPL_3_0/0000775000175100017510000000000012777011543022543 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/LGPL_3_0/or_later.pm0000644000175100017510000003226012777011543024711 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/LGPL_3_0/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::LGPL_3_0::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'LGPL' #pod $lic->abbr; # 'LGPLv3.0+' #pod $lic->_name; # 'GNU Lesser General Public License' #pod $lic->name; # 'The GNU Lesser General Public License version 3.0 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::LGPL_3_0 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::LGPL_3_0::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: LGPLv3.0+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::LGPL_3_0'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "LGPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'LGPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::LGPL_3_0->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU Lesser General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU Lesser General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::LGPL_3_0::or_later - LGPLv3.0+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::LGPL_3_0::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'LGPL' $lic->abbr; # 'LGPLv3.0+' $lic->_name; # 'GNU Lesser General Public License' $lic->name; # 'The GNU Lesser General Public License version 3.0 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::LGPL_3_0 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "LGPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU Lesser General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/LGPL_2_1/0000775000175100017510000000000012777011543022543 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/LGPL_2_1/or_later.pm0000644000175100017510000003226012777011543024711 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/LGPL_2_1/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::LGPL_2_1::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'LGPL' #pod $lic->abbr; # 'LGPLv2.1+' #pod $lic->_name; # 'GNU Lesser General Public License' #pod $lic->name; # 'The GNU Lesser General Public License version 2.1 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::LGPL_2_1 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::LGPL_2_1::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: LGPLv2.1+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::LGPL_2_1'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "LGPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'LGPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::LGPL_2_1->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU Lesser General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU Lesser General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::LGPL_2_1::or_later - LGPLv2.1+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::LGPL_2_1::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'LGPL' $lic->abbr; # 'LGPLv2.1+' $lic->_name; # 'GNU Lesser General Public License' $lic->name; # 'The GNU Lesser General Public License version 2.1 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::LGPL_2_1 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "LGPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU Lesser General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/AGPL_3/0000775000175100017510000000000012777011543022311 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/AGPL_3/or_later.pm0000644000175100017510000003220612777011543024457 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/AGPL_3/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::AGPL_3::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'AGPL' #pod $lic->abbr; # 'AGPLv3+' #pod $lic->_name; # 'GNU Affero General Public License' #pod $lic->name; # 'The GNU Affero General Public License version 3 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::AGPL_3 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::AGPL_3::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: AGPLv3+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::AGPL_3'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "AGPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'AGPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::AGPL_3->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU Affero General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU Affero General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::AGPL_3::or_later - AGPLv3+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::AGPL_3::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'AGPL' $lic->abbr; # 'AGPLv3+' $lic->_name; # 'GNU Affero General Public License' $lic->name; # 'The GNU Affero General Public License version 3 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::AGPL_3 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "AGPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU Affero General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_3/0000775000175100017510000000000012777011543022210 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_3/or_later.pm0000644000175100017510000003207512777011543024362 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/GPL_3/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::GPL_3::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'GPL' #pod $lic->abbr; # 'GPLv3+' #pod $lic->_name; # 'GNU General Public License' #pod $lic->name; # 'The GNU General Public License version 3 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::GPL_3 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::GPL_3::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: GPLv3+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::GPL_3'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "GPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'GPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::GPL_3->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::GPL_3::or_later - GPLv3+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::GPL_3::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'GPL' $lic->abbr; # 'GPLv3+' $lic->_name; # 'GNU General Public License' $lic->name; # 'The GNU General Public License version 3 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::GPL_3 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "GPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_2/0000775000175100017510000000000012777011543022207 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_2/or_later.pm0000644000175100017510000003207512777011543024361 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/GPL_2/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::GPL_2::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'GPL' #pod $lic->abbr; # 'GPLv2+' #pod $lic->_name; # 'GNU General Public License' #pod $lic->name; # 'The GNU General Public License version 2 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::GPL_2 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::GPL_2::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: GPLv2+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::GPL_2'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "GPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'GPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::GPL_2->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::GPL_2::or_later - GPLv2+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::GPL_2::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'GPL' $lic->abbr; # 'GPLv2+' $lic->_name; # 'GNU General Public License' $lic->name; # 'The GNU General Public License version 2 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::GPL_2 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "GPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_1/0000775000175100017510000000000012777011543022206 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/lib/Software/License/GPL_1/or_later.pm0000644000175100017510000003207512777011543024360 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/GPL_1/or_later.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #tt #pod =for :this This is C module documentation. Read this if you #pod are going to hack or extend the module, or use the module directly. #pod #pod =for :those If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =head1 SYNOPSIS #pod #pod my $lic = Software::License::GPL_1::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa' #pod } ); #pod #pod $lic->_abbr; # 'GPL' #pod $lic->abbr; # 'GPLv1+' #pod $lic->_name; # 'GNU General Public License' #pod $lic->name; # 'The GNU General Public License version 1 or later' #pod #pod $lic->notice; #pod # Copyright statement and #pod # standard GNU 3-paragraph license notice. #pod $lic->notice( 'short' ); #pod # Copyright statement, license name and #pod # two sentences about free software and warranties. #pod #pod # …and other methods inherited from Software::License::GPL_1 #pod # and Software::License. #pod #pod =head1 DESCRIPTION #pod #pod C is a subclass of C. #pod It overrides few parent methods and introduces few own methods. #pod #pod See documentation on L for a general description of the class interface. #pod #pod =cut package Software::License::GPL_1::or_later; use strict; use warnings; use version 0.77; # ABSTRACT: GPLv1+ license for Software::License infrastructure our $VERSION = 'v0.10.2'; # VERSION use parent 'Software::License::GPL_1'; use Text::Wrap; #pod =attr _abbr #pod #pod Bare abbreviated license name, "GPL". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _abbr { return 'GPL'; }; #pod =attr abbr #pod #pod Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license #pod version (with trailing plus sign). #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub abbr { my ( $self ) = @_; return $self->_abbr . 'v' . $self->version; }; #pod =attr base #pod #pod A reference to base license object, i. e. license without "or later" clause. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub base { my ( $self ) = @_; if ( not $self->{ base } ) { my %base = %$self; # Create a copy, because `new` (re)blesses passed `HashRef`. $self->{ base } = Software::License::GPL_1->new( \%base ); }; return $self->{ base }; }; #pod =attr _name #pod #pod Bare name of the license, which is also bare name of the base license, because it does #pod include neither definitive article ("The"), nor license version nor "or later" clause: #pod "GNU General Public License". #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub _name { return 'GNU General Public License'; }; #pod =attr name #pod #pod This attribute meets C specification: returned name starts with definitive #pod capitalized article ("The"). Returned name also includes the base license version (like other #pod C classes do) (without trailing plus sign) and "or later" clause. #pod #pod =cut sub name { my ( $self ) = @_; return sprintf( "The %s version %s or later", $self->_name, $self->base->version ); }; #pod =attr program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "this program". This form of program name is intended to be used in the middle of #pod sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub program { my ( $self ) = @_; return $self->{ program } || $self->{ Program } || 'this program'; }; #pod =attr Program #pod #pod A program name as specified by the C option in constructor, or the C option in #pod constructor, or "This program". This form of program name is intended to be used in the beginning #pod of sentence. #pod #pod Note: this attribute is I inherited from the base class. #pod #pod =cut sub Program { my ( $self ) = @_; return $self->{ Program } || $self->{ program } || 'This program'; }; #pod =method notice #pod #pod This method overrides L's C. Differences are: #pod #pod =for :list #pod * If the license object was created with C or C or both options, notice will #pod include real program name instead of generic "this program". #pod * It returns copyright statement followed by standard GNU 3-paragraph license notice. #pod * Result is formatted with L. #pod #pod The method can be called with C<'short'> argument to get short version of notice. Short version #pod includes: copyright statement, license name, and two sentences about free software and warranties. #pod Note: This is experimental feature. #pod #pod =cut sub notice { my ( $self, $arg ) = @_; my $notice = Text::Wrap::fill( '', '', $self->_fill_in( $arg || 'NOTICE' ) ); # Documentation on `fill` says it deletes all trailing whitespace, but it looks like it # may leave one space. Let us make sure notice ends with one newline. $notice =~ s{\s*\z}{\n}x; return $notice; }; #pod =attr version #pod #pod License version (base license version with appended plus sign to denote "or later" clause). #pod #pod =cut sub version { my ( $self ) = @_; return $self->base->version . '+'; }; 1; #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # =pod =encoding UTF-8 =head1 NAME Software::License::GPL_1::or_later - GPLv1+ license for Software::License infrastructure =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C module documentation. Read this if you are going to hack or extend the module, or use the module directly. If you want to use GNU license with "or later" clause read the L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS my $lic = Software::License::GPL_1::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa' } ); $lic->_abbr; # 'GPL' $lic->abbr; # 'GPLv1+' $lic->_name; # 'GNU General Public License' $lic->name; # 'The GNU General Public License version 1 or later' $lic->notice; # Copyright statement and # standard GNU 3-paragraph license notice. $lic->notice( 'short' ); # Copyright statement, license name and # two sentences about free software and warranties. # …and other methods inherited from Software::License::GPL_1 # and Software::License. =head1 DESCRIPTION C is a subclass of C. It overrides few parent methods and introduces few own methods. See documentation on L for a general description of the class interface. =head1 OBJECT ATTRIBUTES =head2 _abbr Bare abbreviated license name, "GPL". Note: this attribute is I inherited from the base class. =head2 abbr Abbreviated license name: concatenated bare abbreviated license name, 'v' character, and license version (with trailing plus sign). Note: this attribute is I inherited from the base class. =head2 base A reference to base license object, i. e. license without "or later" clause. Note: this attribute is I inherited from the base class. =head2 _name Bare name of the license, which is also bare name of the base license, because it does include neither definitive article ("The"), nor license version nor "or later" clause: "GNU General Public License". Note: this attribute is I inherited from the base class. =head2 name This attribute meets C specification: returned name starts with definitive capitalized article ("The"). Returned name also includes the base license version (like other C classes do) (without trailing plus sign) and "or later" clause. =head2 program A program name as specified by the C option in constructor, or the C option in constructor, or "this program". This form of program name is intended to be used in the middle of sentence. Note: this attribute is I inherited from the base class. =head2 Program A program name as specified by the C option in constructor, or the C option in constructor, or "This program". This form of program name is intended to be used in the beginning of sentence. Note: this attribute is I inherited from the base class. =head2 version License version (base license version with appended plus sign to denote "or later" clause). =head1 OBJECT METHODS =head2 notice This method overrides L's C. Differences are: =over 4 =item * If the license object was created with C or C or both options, notice will include real program name instead of generic "this program". =item * It returns copyright statement followed by standard GNU 3-paragraph license notice. =item * Result is formatted with L. =back The method can be called with C<'short'> argument to get short version of notice. Short version includes: copyright statement, license name, and two sentences about free software and warranties. Note: This is experimental feature. =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut __DATA__ __NOTICE__ Copyright (C) {{$self->year}} {{$self->holder}} {{$self->Program}} is free software: you can redistribute it and/or modify it under the terms of the {{$self->_name}} as published by the Free Software Foundation, either version {{$self->base->version}} of the License, or (at your option) any later version. {{$self->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. See the {{$self->_name}} for more details. You should have received a copy of the {{$self->_name}} along with {{$self->program}}. If not, see . __short__ Copyright (C) {{$self->year}} {{$self->holder}} License {{$self->abbr}}: {{$self->name}} <{{$self->url}}>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. __END__ # end of file # Software-License-OrLaterPack-v0.10.2/lib/Software/License/OrLaterPack.pm0000644000175100017510000004564012777011543024060 0ustar vdbvdb# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: lib/Software/License/OrLaterPack.pm # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # This is dummy main module of `OrLaterPack`, because CPAN does not handle well distributions # without a main module. Also, it documents the distribution as a whole. package Software::License::OrLaterPack; use strict; # Let Kwalitee be happy. use warnings; # Ditto. use version 0.77; # ABSTRACT: Use GNU license with "or later" clause our $VERSION = 'v0.10.2'; # VERSION 1; #pod =pod #pod #pod =encoding UTF-8 #pod #pod =for :this This is C user manual. Read this if you want to use GNU license with "or later" clause. #pod #pod =for :those If you are going to hack or extend C read module documentation, e. g. #pod L. General topics like getting source, building, installing, #pod bug reporting and some others are covered in the F file. #pod #pod =for comment --------------------------------------------------------------------------------------- #pod #pod =head1 SYNOPSIS #pod #pod =for test_synopsis BEGIN { die "SKIP: Not Perl code.\n" }; #pod # Ok, the second part is Perl code, but `Test::Synopsis` doesn't allow to check only part of #pod # synopsis. #pod #pod In C: #pod #pod name = Foo-Bar #pod version = 0.001 #pod author = John Doe #pod license = GPL_3::or_later #pod ; or another license, see the list of provided licenses #pod copyright_holder = John Doe #pod copyright_year = 2015 #pod … #pod #pod Direct usage: #pod #pod use Software::License::GPL_3::or_later; #pod # or another license, see the list of provided licenses #pod my $lic = Software::License::GPL_3::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'Assa', #pod } ); #pod $lic->abbr; # returns 'GPLv3+' #pod $lic->notice; # Copyright statement and 3-paragraph GNU license notice #pod … #pod #pod =for comment --------------------------------------------------------------------------------------- #pod #pod =head1 DESCRIPTION #pod #pod All "or later" are just subclasses of corresponding base license classes. For example, #pod C is a subclass of C, so any "or #pod later" license can be used like any other license. For example, in your F file: #pod #pod license = GPL_3::or_later #pod #pod However, licenses in the pack introduce few features not found in base classes. #pod #pod =head2 Program Name #pod #pod C constructor accepts hashref as the only argument: #pod #pod $lic = Software::License::GPL_3::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod } ); #pod #pod C documents two keys C and C shown in example. However, #pod C constructor just (re)blesses passed hashref to the package, keeping all the #pod hash keys and values intact, so you can pass more arguments to the constructor. #pod #pod C licenses use two more keys C and C: #pod #pod $lic = Software::License::GPL_3::or_later->new( { #pod holder => 'John Doe', #pod year => '2010', #pod program => 'assa', #pod Program => 'Assa', #pod } ); #pod #pod These values are used as program name instead of generic "this program" in license notice, for #pod example: #pod #pod Assa is free software: you can redistribute it and/or modify it… #pod #pod C key is used in the middle of sentence, C is used if program name starts a #pod sentence. You may specify either one or both keys. If only one key specified, it is used in all the #pod occurrences regardless of its position within a sentence. #pod #pod Note: At time of writing, these keys are used only by licenses from C. You can safely #pod pass them to constructor of any license, it does not hurt but keys will not be used. #pod #pod When using C you just specify few options, and C does all the work on #pod behalf of you: #pod #pod name = Assa #pod license = GPL_3::or_later #pod copyright_holder = John Doe #pod copyright_year = 2010 #pod #pod Program name is specified, but C does not pass it to license object constructor. Patch #pod for C submitted but not yet applied. Meanwhile, you can hack it with little help from #pod C plugin: #pod #pod name = Assa #pod license = GPL_3::or_later #pod copyright_holder = John Doe #pod copyright_year = 2010 #pod [Hook::Init] #pod . = $dist->license->{ program } = $dist->name; #pod ; Voilà: license has `program` key now. #pod ... #pod #pod For accessing these keys, C introduced two methods: C and C. They #pod are convenient because you should not worry if the key was specified or not: a method returns best #pod available variant of program name. For example, if C key was not passed to the #pod constructor, C<< $self->{ program } >> will return C, while C<< $self->program >> will #pod return value of C key, if it was specified, or "this program" as the last resort. However, #pod these methods are not defined in base class and can be invoked only on a license from #pod C. #pod #pod =head2 Short License Notice #pod #pod Standard GNU license notice consists of 3 paragraphs (more than 100 words and 600 characters). It #pod is ok for the program documentation, but it far too long to be printed in the beginning of #pod interactive session. For latter purpose FSF recommends to use short notice like this one: #pod #pod Copyright (C) 2010 John Doe #pod License GPLv3+: GNU General Public License version 3 or later. #pod This is free software: you are free to change and redistribute it. #pod There is NO WARRANTY, to the extent permitted by law. #pod #pod To get short license notice, pass C<'short'> argument to the C method: #pod #pod $lic->notice( 'short' ); #pod #pod At time of writing, C<'short'> argument is respected only by licenses in C. Other #pod licenses ignore the arguments and return ordinary license note. #pod #pod Note: This feature is considered experimental now. #pod #pod =for comment --------------------------------------------------------------------------------------- #pod #pod =head1 LIST OF PROVIDED LICENSES #pod #pod =for :list #pod = L #pod = L #pod = L #pod = L #pod = L #pod = L #pod #pod #pod =head1 CAVEATS #pod #pod L hardcodes the list of "valid" licenses. In version 2.150001 of the module there #pod are no "upgradable" GNU licenses, so in CPAN the GPLv3+ will look as ordinal GPLv3 (C), and #pod so on. #pod #pod =for comment --------------------------------------------------------------------------------------- #pod #pod =head1 SEE ALSO #pod #pod =for :list #pod = L #pod = L #pod = L #pod = L #pod #pod =for comment --------------------------------------------------------------------------------------- #pod #pod =head1 COPYRIGHT AND LICENSE #pod #pod Copyright (C) 2015 Van de Bugger #pod #pod License GPLv3+: The GNU General Public License version 3 or later #pod . #pod #pod This is free software: you are free to change and redistribute it. There is #pod NO WARRANTY, to the extent permitted by law. #pod #pod #pod =cut # doc/what.pod # #pod =encoding UTF-8 #pod #pod =head1 WHAT? #pod #pod C (or just C for brevity) is an add-on for C, a set #pod of licenses with "or later" clause (like C). It allows Perl developers (who use #pod C) to release their work under the terms of a I version I or (at user #pod option) any later version. #pod #pod =cut # end of file # # doc/why.pod # #pod =encoding UTF-8 #pod #pod =head1 WHY? #pod #pod C is a popular tool for building CPAN distributions. Build process is controlled by #pod F, C configuration file. A distribution author can specify license covering #pod his work by using C option in F file: #pod #pod license = NAME #pod #pod where I is a name of module from L hierarchy. #pod #pod C is shipped with a set of popular licenses, from C to C, #pod including GNU licenses (GPL), including their "Affero" and "Lesser" variants. #pod #pod So, if a developer wants to release his work under the terms of the GPL version 3, he should write #pod in his F: #pod #pod license = GPL_3 #pod #pod However, L or (at your #pod option) any later version"|https://www.gnu.org/licenses/gpl-faq.html#VersionThreeOrLater>. Unfortunately, C distribution #pod does not supply (out of the box) a way to express such clause. #pod #pod C fulfills the lack. If C is installed, a developer can specify in his #pod F: #pod #pod license = GPL_3::or_later #pod #pod =cut # end of file # # end of file # __END__ =pod =encoding UTF-8 =head1 NAME Software::License::OrLaterPack - Use GNU license with "or later" clause =head1 VERSION Version v0.10.2, released on 2016-10-10 22:17 UTC. =head1 WHAT? C (or just C for brevity) is an add-on for C, a set of licenses with "or later" clause (like C). It allows Perl developers (who use C) to release their work under the terms of a I version I or (at user option) any later version. This is C user manual. Read this if you want to use GNU license with "or later" clause. If you are going to hack or extend C read module documentation, e. g. L. General topics like getting source, building, installing, bug reporting and some others are covered in the F file. =head1 SYNOPSIS =head1 DESCRIPTION All "or later" are just subclasses of corresponding base license classes. For example, C is a subclass of C, so any "or later" license can be used like any other license. For example, in your F file: license = GPL_3::or_later However, licenses in the pack introduce few features not found in base classes. =head2 Program Name C constructor accepts hashref as the only argument: $lic = Software::License::GPL_3::or_later->new( { holder => 'John Doe', year => '2010', } ); C documents two keys C and C shown in example. However, C constructor just (re)blesses passed hashref to the package, keeping all the hash keys and values intact, so you can pass more arguments to the constructor. C licenses use two more keys C and C: $lic = Software::License::GPL_3::or_later->new( { holder => 'John Doe', year => '2010', program => 'assa', Program => 'Assa', } ); These values are used as program name instead of generic "this program" in license notice, for example: Assa is free software: you can redistribute it and/or modify it… C key is used in the middle of sentence, C is used if program name starts a sentence. You may specify either one or both keys. If only one key specified, it is used in all the occurrences regardless of its position within a sentence. Note: At time of writing, these keys are used only by licenses from C. You can safely pass them to constructor of any license, it does not hurt but keys will not be used. When using C you just specify few options, and C does all the work on behalf of you: name = Assa license = GPL_3::or_later copyright_holder = John Doe copyright_year = 2010 Program name is specified, but C does not pass it to license object constructor. Patch for C submitted but not yet applied. Meanwhile, you can hack it with little help from C plugin: name = Assa license = GPL_3::or_later copyright_holder = John Doe copyright_year = 2010 [Hook::Init] . = $dist->license->{ program } = $dist->name; ; Voilà: license has `program` key now. ... For accessing these keys, C introduced two methods: C and C. They are convenient because you should not worry if the key was specified or not: a method returns best available variant of program name. For example, if C key was not passed to the constructor, C<< $self->{ program } >> will return C, while C<< $self->program >> will return value of C key, if it was specified, or "this program" as the last resort. However, these methods are not defined in base class and can be invoked only on a license from C. =head2 Short License Notice Standard GNU license notice consists of 3 paragraphs (more than 100 words and 600 characters). It is ok for the program documentation, but it far too long to be printed in the beginning of interactive session. For latter purpose FSF recommends to use short notice like this one: Copyright (C) 2010 John Doe License GPLv3+: GNU General Public License version 3 or later. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. To get short license notice, pass C<'short'> argument to the C method: $lic->notice( 'short' ); At time of writing, C<'short'> argument is respected only by licenses in C. Other licenses ignore the arguments and return ordinary license note. Note: This feature is considered experimental now. =head1 WHY? C is a popular tool for building CPAN distributions. Build process is controlled by F, C configuration file. A distribution author can specify license covering his work by using C option in F file: license = NAME where I is a name of module from L hierarchy. C is shipped with a set of popular licenses, from C to C, including GNU licenses (GPL), including their "Affero" and "Lesser" variants. So, if a developer wants to release his work under the terms of the GPL version 3, he should write in his F: license = GPL_3 However, L or (at your option) any later version"|https://www.gnu.org/licenses/gpl-faq.html#VersionThreeOrLater>. Unfortunately, C distribution does not supply (out of the box) a way to express such clause. C fulfills the lack. If C is installed, a developer can specify in his F: license = GPL_3::or_later =for comment --------------------------------------------------------------------------------------- =for test_synopsis BEGIN { die "SKIP: Not Perl code.\n" }; # Ok, the second part is Perl code, but `Test::Synopsis` doesn't allow to check only part of # synopsis. In C: name = Foo-Bar version = 0.001 author = John Doe license = GPL_3::or_later ; or another license, see the list of provided licenses copyright_holder = John Doe copyright_year = 2015 … Direct usage: use Software::License::GPL_3::or_later; # or another license, see the list of provided licenses my $lic = Software::License::GPL_3::or_later->new( { holder => 'John Doe', year => '2010', program => 'Assa', } ); $lic->abbr; # returns 'GPLv3+' $lic->notice; # Copyright statement and 3-paragraph GNU license notice … =for comment --------------------------------------------------------------------------------------- =for comment --------------------------------------------------------------------------------------- =head1 LIST OF PROVIDED LICENSES =over 4 =item L =item L =item L =item L =item L =item L =back =head1 CAVEATS L hardcodes the list of "valid" licenses. In version 2.150001 of the module there are no "upgradable" GNU licenses, so in CPAN the GPLv3+ will look as ordinal GPLv3 (C), and so on. =for comment --------------------------------------------------------------------------------------- =for comment --------------------------------------------------------------------------------------- =head1 SEE ALSO =over 4 =item L =item L =item L =item L =back =head1 AUTHOR Van de Bugger =head1 COPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger License GPLv3+: The GNU General Public License version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =cut Software-License-OrLaterPack-v0.10.2/xt/0000775000175100017510000000000012777011543016055 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/xt/release/0000775000175100017510000000000012777011543017475 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/xt/release/minimum-version.t0000644000175100017510000000026612777011543023022 0ustar vdbvdb#!perl use Test::More; eval "use Test::MinimumVersion"; plan skip_all => "Test::MinimumVersion required for testing minimum versions" if $@; all_minimum_version_ok( qq{5.006} ); Software-License-OrLaterPack-v0.10.2/xt/release/dist-manifest.t0000644000175100017510000000023012777011543022422 0ustar vdbvdb#!perl use Test::More; eval "use Test::DistManifest"; plan skip_all => "Test::DistManifest required for testing the manifest" if $@; manifest_ok(); Software-License-OrLaterPack-v0.10.2/xt/release/pod-linkcheck.t0000644000175100017510000000053712777011543022400 0ustar vdbvdb#!perl use strict; use warnings; use Test::More; foreach my $env_skip ( qw( SKIP_POD_LINKCHECK ) ){ plan skip_all => "\$ENV{$env_skip} is set, skipping" if $ENV{$env_skip}; } eval "use Test::Pod::LinkCheck"; if ( $@ ) { plan skip_all => 'Test::Pod::LinkCheck required for testing POD'; } else { Test::Pod::LinkCheck->new->all_pod_ok; } Software-License-OrLaterPack-v0.10.2/xt/release/cpan-changes.t0000644000175100017510000000034412777011543022210 0ustar vdbvdbuse strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::CPAN::Changes 0.012 use Test::More 0.96 tests => 1; use Test::CPAN::Changes; subtest 'changes_ok' => sub { changes_file_ok('Changes'); }; Software-License-OrLaterPack-v0.10.2/xt/release/new-version.t0000644000175100017510000000511212777011543022133 0ustar vdbvdb# this test was generated with Dist::Zilla::Plugin::Test::NewVersion 0.009 use strict; use warnings FATAL => 'all'; use Test::More 0.88; use Encode; use HTTP::Tiny; use JSON; use version; use Module::Metadata; use List::Util 'first'; use CPAN::Meta 2.120920; # 'provides' field from dist metadata, if needed my $dist_provides; # returns bool, detailed message sub version_is_bumped { my ($module_metadata, $pkg) = @_; my $res = HTTP::Tiny->new->get("http://cpanidx.org/cpanidx/json/mod/$pkg"); return (0, 'index could not be queried?') if not $res->{success}; # JSON wants UTF-8 bytestreams, so we need to re-encode no matter what # encoding we got. -- rjbs, 2011-08-18 (in # Dist::Zilla::Plugin::CheckPrereqsIndexed) my $json_octets = Encode::encode_utf8($res->{content}); my $payload = JSON::->new->decode($json_octets); return (0, 'no valid JSON returned') unless $payload; return (1, 'not indexed') if not defined $payload->[0]{mod_vers}; return (1, 'VERSION is not set in index') if $payload->[0]{mod_vers} eq 'undef'; my $indexed_version = version->parse($payload->[0]{mod_vers}); my $current_version = $module_metadata->version($pkg); if (not defined $current_version) { $dist_provides ||= do { my $metafile = first { -e $_ } qw(MYMETA.json MYMETA.yml META.json META.yml); my $dist_metadata = $metafile ? CPAN::Meta->load_file($metafile) : undef; $dist_metadata->provides if $dist_metadata; }; $current_version = $dist_provides->{$pkg}{version}; return (0, 'VERSION is not set; indexed version is ' . $indexed_version) if not $dist_provides or not $current_version; } return ( $indexed_version < $current_version, 'indexed at ' . $indexed_version . '; local version is ' . $current_version, ); } foreach my $filename ( "lib\/Software\/License\/AGPL_3\/or_later\.pm", "lib\/Software\/License\/GPL_1\/or_later\.pm", "lib\/Software\/License\/GPL_2\/or_later\.pm", "lib\/Software\/License\/GPL_3\/or_later\.pm", "lib\/Software\/License\/LGPL_2_1\/or_later\.pm", "lib\/Software\/License\/LGPL_3_0\/or_later\.pm", "lib\/Software\/License\/OrLaterPack\.pm" ) { my $module_metadata = Module::Metadata->new_from_file($filename); foreach my $pkg ($module_metadata->packages_inside) { my ($bumped, $message) = version_is_bumped($module_metadata, $pkg); ok($bumped, $pkg . ' (' . $filename . ') VERSION is ok' . ( $message ? (' (' . $message . ')') : '' ) ); } } done_testing; Software-License-OrLaterPack-v0.10.2/xt/release/portability.t0000644000175100017510000000027712777011543022230 0ustar vdbvdb#!perl use strict; use warnings; use Test::More; eval 'use Test::Portability::Files'; plan skip_all => 'Test::Portability::Files required for testing portability' if $@; run_tests(); Software-License-OrLaterPack-v0.10.2/xt/release/pod-no404s.t0000644000175100017510000000052712777011543021473 0ustar vdbvdb#!perl use strict; use warnings; use Test::More; foreach my $env_skip ( qw( SKIP_POD_NO404S AUTOMATED_TESTING ) ){ plan skip_all => "\$ENV{$env_skip} is set, skipping" if $ENV{$env_skip}; } eval "use Test::Pod::No404s"; if ( $@ ) { plan skip_all => 'Test::Pod::No404s required for testing POD'; } else { all_pod_files_ok(); } Software-License-OrLaterPack-v0.10.2/xt/release/meta-json.t0000644000175100017510000000006412777011543021555 0ustar vdbvdb#!perl use Test::CPAN::Meta::JSON; meta_json_ok(); Software-License-OrLaterPack-v0.10.2/xt/release/kwalitee.t0000644000175100017510000000027512777011543021471 0ustar vdbvdb# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.12 use strict; use warnings; use Test::More 0.88; use Test::Kwalitee 1.21 'kwalitee_ok'; kwalitee_ok(); done_testing; Software-License-OrLaterPack-v0.10.2/xt/release/distmeta.t0000644000175100017510000000017212777011543021472 0ustar vdbvdb#!perl # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use Test::CPAN::Meta; meta_yaml_ok(); Software-License-OrLaterPack-v0.10.2/xt/release/synopsis.t0000644000175100017510000000006012777011543021543 0ustar vdbvdb#!perl use Test::Synopsis; all_synopsis_ok(); Software-License-OrLaterPack-v0.10.2/xt/release/fixme.t0000644000175100017510000000017612777011543020774 0ustar vdbvdb#!perl # This test is generated by Dist::Zilla::Plugin::Test::Fixme use strict; use warnings; use Test::Fixme; run_tests(); Software-License-OrLaterPack-v0.10.2/xt/perlcritic.ini0000644000175100017510000000112012777011543020706 0ustar vdbvdb# xt/perlcritic.ini # # # This file is part of perl-Software-License-OrLaterPack. # severity = 3 verbose = 3 # Use message format "%m at %f line %l\n", like Perl error messages. [Subroutines::ProhibitUnusedPrivateSubroutines] # `perlcritic` does not detect implicit using of methods, for example, builders. # So skip this check in Moose classes. skip_when_using = Moose [ControlStructures::ProhibitCascadingIfElse] max_elsif = 5 [-CodeLayout::ProhibitParensWithBuiltins] # I often use builtin function with parenthesis, like `push()`. # end of file # Software-License-OrLaterPack-v0.10.2/xt/aspell-en.pws0000644000175100017510000000051112777011543020463 0ustar vdbvdbpersonal_ws-1.1 en 0 UTF-8 Affero AGPL aspell BitCard bugtracker BUILDARGS CCpack CheckPrereqsIndexed cpanm ExtUtils fedorapeople FedoraPeople GPL GPLv hardcodes ini LGPL LiveJournal MakeMaker MERCHANTABILITY metainfo MetaResources minimalistic MojibakeTests OpenID perlmod pws readme SourceForge symlink TODO txt upgradable UTC Software-License-OrLaterPack-v0.10.2/xt/author/0000775000175100017510000000000012777011543017357 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/xt/author/pod-coverage.t0000644000175100017510000000033412777011543022115 0ustar vdbvdb#!perl # This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. use Test::Pod::Coverage 1.08; use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); Software-License-OrLaterPack-v0.10.2/xt/author/test-version.t0000644000175100017510000000067612777011543022215 0ustar vdbvdbuse strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::Version 1.09 use Test::Version; my @imports = qw( version_ok ); my $params = { is_strict => 1, has_version => 1, multiple => 0, }; push @imports, $params if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); Test::Version->import(@imports); version_ok('lib/Software/License/OrLaterPack.pm'); done_testing; Software-License-OrLaterPack-v0.10.2/xt/author/pod-syntax.t0000644000175100017510000000025212777011543021647 0ustar vdbvdb#!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); Software-License-OrLaterPack-v0.10.2/xt/author/pod-spell.t0000644000175100017510000000060412777011543021441 0ustar vdbvdbuse strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007003 use Test::Spelling 0.12; use Pod::Wordlist; set_spell_cmd('aspell list -l en -p ./xt/aspell-en.pws'); add_stopwords(); all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ AGPL_3 Bugger GPL_1 GPL_2 GPL_3 LGPL_2_1 LGPL_3_0 License OrLaterPack Software Van de lib or_later van Software-License-OrLaterPack-v0.10.2/xt/author/mojibake.t0000644000175100017510000000015112777011543021320 0ustar vdbvdb#!perl use strict; use warnings qw(all); use Test::More; use Test::Mojibake; all_files_encoding_ok(); Software-License-OrLaterPack-v0.10.2/xt/author/no-tabs.t0000644000175100017510000000054112777011543021105 0ustar vdbvdbuse strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15 use Test::More 0.88; use Test::NoTabs; my @files = ( 'Changes', 'GPLv3', 'VERSION', 'lib/Software/License/OrLaterPack.pm', 't/01-test.t', 'xt/aspell-en.pws', 'xt/perlcritic.ini' ); notabs_ok($_) foreach @files; done_testing; Software-License-OrLaterPack-v0.10.2/xt/author/critic.t0000644000175100017510000000044512777011543021022 0ustar vdbvdb#!perl use strict; use warnings; use Test::More; use English qw(-no_match_vars); eval "use Test::Perl::Critic"; plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; Test::Perl::Critic->import( -profile => "xt/perlcritic.ini" ) if -e "xt/perlcritic.ini"; all_critic_ok(); Software-License-OrLaterPack-v0.10.2/xt/author/eol.t0000644000175100017510000000057312777011543020326 0ustar vdbvdbuse strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 use Test::More 0.88; use Test::EOL; my @files = ( 'Changes', 'GPLv3', 'VERSION', 'lib/Software/License/OrLaterPack.pm', 't/01-test.t', 'xt/aspell-en.pws', 'xt/perlcritic.ini' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; done_testing; Software-License-OrLaterPack-v0.10.2/t/0000775000175100017510000000000012777011543015665 5ustar vdbvdbSoftware-License-OrLaterPack-v0.10.2/t/00-compile.t0000644000175100017510000000315212777011543017716 0ustar vdbvdbuse 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 use if $ENV{AUTOMATED_TESTING}, 'Test::DiagINC'; use Test::More; plan tests => 7 + ($ENV{AUTHOR_TESTING} ? 1 : 0); my @module_files = ( 'Software/License/AGPL_3/or_later.pm', 'Software/License/GPL_1/or_later.pm', 'Software/License/GPL_2/or_later.pm', 'Software/License/GPL_3/or_later.pm', 'Software/License/LGPL_2_1/or_later.pm', 'Software/License/LGPL_3_0/or_later.pm', 'Software/License/OrLaterPack.pm' ); # fake home for cpan-testers use File::Temp; local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 ); my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; use File::Spec; use IPC::Open3; use IO::Handle; open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my @warnings; for my $lib (@module_files) { # see L my $stderr = IO::Handle->new; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ and not eval { require blib; blib->VERSION('1.01') }; if (@_warnings) { warn @_warnings; push @warnings, @_warnings; } } is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; Software-License-OrLaterPack-v0.10.2/t/01-test.t0000644000175100017510000002005112777011543017243 0ustar vdbvdb#!perl -T # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # file: t/01-test.t # # Copyright © 2015 Van de Bugger # # This file is part of perl-Software-License-OrLaterPack. # # perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # perl-Software-License-OrLaterPack. If not, see . # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - use strict; use warnings; use if $ENV{AUTOMATED_TESTING}, 'Test::DiagINC'; use Test::More; use Scalar::Util qw{ blessed }; # Licenses to test. my %licenses = ( # Module name # Full license name AGPL => 'GNU Affero General Public License', GPL => 'GNU General Public License', LGPL => 'GNU Lesser General Public License', ); my @modules = qw{ AGPL_3 GPL_1 GPL_2 GPL_3 LGPL_2_1 LGPL_3_0 }; plan tests => @modules * 27; foreach my $mod ( @modules ) { diag( "Checking $mod..." ); $mod =~ m{\A([A-Z]+)_([0-9_]+)\z} or die; # $mod is a license module name, e. g. `LGPL_2_1`. my ( $abbr, $ver ) = ( $1, $2 ); # $abbr is a license short name, e. g. `LGPL`. $ver =~ s{_}{.}g; # $ver is a license version, e. g. `2.1`. my $super = "Software::License::${mod}"; # Parent class name. my $class = "${super}::or_later"; # Our license class name. use_ok( $super ) or next; use_ok( $class ) or next; my $s = new_ok( $super => [ { holder => 'John Doe', year => '2010' } ] ); my $l = new_ok( $class => [ { holder => 'John Doe', year => '2010' } ] ); is( $l->_abbr, $abbr, 'bare abbr' ); is( $l->abbr, "${abbr}v${ver}+", 'abbr' ); is( $l->_name, $licenses{ $abbr }, 'bare name' ); is( $l->name, "The $licenses{ $abbr } version $ver or later", 'name' ); is( $l->program, "this program", 'default program' ); is( $l->Program, "This program", 'default Program' ); { local $l->{ program } = 'assa'; is( $l->program, "assa", 'non-default program' ); is( $l->Program, "assa", 'computed Program' ); } { local $l->{ Program } = 'ASSA'; is( $l->Program, "ASSA", 'non-default Program' ); is( $l->program, "ASSA", 'computed program' ); } { local $l->{ program } = 'assa'; local $l->{ Program } = 'Assa'; is( $l->program, "assa", 'explicit program' ); is( $l->Program, "Assa", 'explicit Program' ); } is( $l->version, "${ver}+", 'version' ); my $b = $l->base; is( blessed( $b ), $super, 'base blessed' ); is( $b->holder, $l->holder, 'base holder' ); is( $b->year, $l->year, 'base year' ); is( $b->name, $s->name, 'base name' ); is( $b->version, $s->version, 'base version' ); # Verify notice. Standard `Software::Licence` notice looks like # # This software is Copyright (c) YEAR by HOLDER. # # This is free software, licensed under: # # license name # # Our notice is copyright statement is standard GNU notice: # # Copyright (C) YEAR HOLDER # # PROGRAM is free software: you can redistribute it and/or modify it under the terms # of the LICENSE as published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # 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. See the LICENSE for more details. # # You should have received a copy of the LICENSE along with PROGRAM. If not, see # . # # where *LICENSE* is the name of particular license, and *PROGARM* is a name of program # ("this program" by default). # my %RE; # We cannot search for plain license name because it may be wrapped across lines. Let us # construct regexp by replacing every space in the license name with `\s+`: $RE{ license } = $licenses{ $abbr }; $RE{ license } =~ s{ }{\\s+}g; $RE{ tail1 } = qr{ \s is \s free \s software: \s you \s can \s redistribute \s it \s and/or \s modify \s it \s under \s the \s terms \s of \s the \s $RE{ license } \s as \s published \s by \s the \s Free \s Software \s Foundation, \s either \s version \s \Q$ver\E \s of \s the \s License, \s or \s \(at \s your \s option\) \s any \s later \s version\. \n }x; $RE{ tail2 } = qr{ \s is \s distributed \s in \s the \s hope \s that \s it \s will \s be \s useful, \s but \s WITHOUT \s ANY \s WARRANTY; \s without \s even \s the \s implied \s warranty \s of \s MERCHANTABILITY \s or \s FITNESS \s FOR \s A \s PARTICULAR \s PURPOSE\. \s See \s the \s $RE{ license } \s for \s more \s details\. \n }x; $RE{ head3 } = qr{ You \s should \s have \s received \s a \s copy \s of \s the \s $RE{ license } \s along \s with \s }x; $RE{ tail3 } = qr{ \. \s If \s not, \s see \s \Q\E\. \n }x; like( $l->notice, qr{ \A \QCopyright (C) 2010 John Doe\E \n \n This \s program $RE{ tail1 } \n This \s program $RE{ tail2 } \n $RE{ head3 } this \s program $RE{ tail3 } \z }sx, 'Notice with default program name', ); like( do { local $l->{ program } = 'that program'; local $l->{ Program } = 'That program'; $l->notice(); }, qr{ \A \QCopyright (C) 2010 John Doe\E \n \n That \s program $RE{ tail1 } \n That \s program $RE{ tail2 } \n $RE{ head3 } that \s program $RE{ tail3 } \z }sx, 'Notice with explicit program and Program', ); like( do { local $l->{ program } = 'perl-Foo'; $l->notice(); }, qr{ \A \QCopyright (C) 2010 John Doe\E \n \n perl-Foo $RE{ tail1 } \n perl-Foo $RE{ tail2 } \n $RE{ head3 } perl-Foo $RE{ tail3 } \z }sx, 'Notice with explicit program', ); like( do { local $l->{ program } = 'perl-Bar'; $l->notice(); }, qr{ \A \QCopyright (C) 2010 John Doe\E \n \n perl-Bar $RE{ tail1 } \n perl-Bar $RE{ tail2 } \n $RE{ head3 } perl-Bar $RE{ tail3 } \z }sx, 'Notice with explicit Program', ); # Shorter note. like( $l->notice( 'short' ), qr{ \A \QCopyright (C) 2010 John Doe\E \n \n \QLicense ${abbr}v${ver}+:\E \s The \s $RE{ license } \s version \s \Q$ver\E \s or \s later \s ]+>\. \n \n This \s is \s free \s software: \s you \s are \s free \s to \s change \s and \s redistribute \s it. \s There \s is \s NO \s WARRANTY, \s to \s the \s extent \s permitted \s by \s law. \s \Z }sx, 'Short notice' ); }; # end of file # Software-License-OrLaterPack-v0.10.2/META.json0000644000175100017510000001066312777011543017047 0ustar vdbvdb{ "abstract" : "Use GNU license with \"or later\" clause", "author" : [ "Van de Bugger " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005", "license" : [ "gpl_3" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Software-License-OrLaterPack", "prereqs" : { "configure" : { "requires" : { "Module::Build::Tiny" : "0.034", "perl" : "5.006" } }, "develop" : { "requires" : { "CPAN::Meta" : "2.120920", "Dist::Zilla" : "5", "Dist::Zilla::Plugin::Hook::FileGatherer" : "0", "Dist::Zilla::Plugin::Hook::Init" : "0", "Dist::Zilla::PluginBundle::Author::VDB" : "0", "Encode" : "0", "English" : "0", "HTTP::Tiny" : "0", "JSON" : "0", "List::Util" : "0", "Module::Metadata" : "0", "Pod::Coverage::TrustPod" : "0", "Pod::Wordlist" : "0", "Software::License::GPL_3::or_later" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::CPAN::Meta::JSON" : "0.16", "Test::EOL" : "0", "Test::Fixme" : "0", "Test::Kwalitee" : "1.21", "Test::Mojibake" : "0", "Test::More" : "0.96", "Test::NoTabs" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::LinkCheck" : "0", "Test::Pod::No404s" : "0", "Test::Spelling" : "0.12", "Test::Synopsis" : "0", "Test::Version" : "1", "version" : "0" } }, "runtime" : { "requires" : { "Software::License::AGPL_3" : "0", "Software::License::GPL_1" : "0", "Software::License::GPL_2" : "0", "Software::License::GPL_3" : "0", "Software::License::LGPL_2_1" : "0", "Software::License::LGPL_3_0" : "0", "Text::Wrap" : "0", "parent" : "0", "perl" : "5.006", "strict" : "0", "version" : "0.77", "warnings" : "0" } }, "test" : { "requires" : { "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Scalar::Util" : "0", "Test::DiagINC" : "0.002", "Test::More" : "0", "blib" : "1.01", "if" : "0", "perl" : "5.006" } } }, "provides" : { "Software::License::AGPL_3::or_later" : { "file" : "lib/Software/License/AGPL_3/or_later.pm", "version" : "v0.10.2" }, "Software::License::GPL_1::or_later" : { "file" : "lib/Software/License/GPL_1/or_later.pm", "version" : "v0.10.2" }, "Software::License::GPL_2::or_later" : { "file" : "lib/Software/License/GPL_2/or_later.pm", "version" : "v0.10.2" }, "Software::License::GPL_3::or_later" : { "file" : "lib/Software/License/GPL_3/or_later.pm", "version" : "v0.10.2" }, "Software::License::LGPL_2_1::or_later" : { "file" : "lib/Software/License/LGPL_2_1/or_later.pm", "version" : "v0.10.2" }, "Software::License::LGPL_3_0::or_later" : { "file" : "lib/Software/License/LGPL_3_0/or_later.pm", "version" : "v0.10.2" }, "Software::License::OrLaterPack" : { "file" : "lib/Software/License/OrLaterPack.pm", "version" : "v0.10.2" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "mailto:bug-Software-License-OrLaterPack@rt.cpan.org", "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Software-License-OrLaterPack" }, "homepage" : "https://metacpan.org/release/Software-License-OrLaterPack", "license" : [ "http://www.gnu.org/licenses/gpl-3.0.txt" ], "repository" : { "type" : "hg", "url" : "http://hg.savannah.nongnu.org/hgweb/orlaterpack", "web" : "http://hg.savannah.nongnu.org/hgweb/orlaterpack" } }, "version" : "v0.10.2", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213" } Software-License-OrLaterPack-v0.10.2/Build.PL0000644000175100017510000000027712777011543016722 0ustar vdbvdb# This Build.PL for Software-License-OrLaterPack was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.015. use strict; use warnings; use 5.006; use Module::Build::Tiny 0.034; Build_PL(); Software-License-OrLaterPack-v0.10.2/META.yml0000644000175100017510000000377012777011543016700 0ustar vdbvdb--- abstract: 'Use GNU license with "or later" clause' author: - 'Van de Bugger ' build_requires: File::Spec: '0' File::Temp: '0' IO::Handle: '0' IPC::Open3: '0' Scalar::Util: '0' Test::DiagINC: '0.002' Test::More: '0' blib: '1.01' if: '0' perl: '5.006' configure_requires: Module::Build::Tiny: '0.034' perl: '5.006' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005' license: gpl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Software-License-OrLaterPack provides: Software::License::AGPL_3::or_later: file: lib/Software/License/AGPL_3/or_later.pm version: v0.10.2 Software::License::GPL_1::or_later: file: lib/Software/License/GPL_1/or_later.pm version: v0.10.2 Software::License::GPL_2::or_later: file: lib/Software/License/GPL_2/or_later.pm version: v0.10.2 Software::License::GPL_3::or_later: file: lib/Software/License/GPL_3/or_later.pm version: v0.10.2 Software::License::LGPL_2_1::or_later: file: lib/Software/License/LGPL_2_1/or_later.pm version: v0.10.2 Software::License::LGPL_3_0::or_later: file: lib/Software/License/LGPL_3_0/or_later.pm version: v0.10.2 Software::License::OrLaterPack: file: lib/Software/License/OrLaterPack.pm version: v0.10.2 requires: Software::License::AGPL_3: '0' Software::License::GPL_1: '0' Software::License::GPL_2: '0' Software::License::GPL_3: '0' Software::License::LGPL_2_1: '0' Software::License::LGPL_3_0: '0' Text::Wrap: '0' parent: '0' perl: '5.006' strict: '0' version: '0.77' warnings: '0' resources: bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Software-License-OrLaterPack homepage: https://metacpan.org/release/Software-License-OrLaterPack license: http://www.gnu.org/licenses/gpl-3.0.txt repository: http://hg.savannah.nongnu.org/hgweb/orlaterpack version: v0.10.2 x_serialization_backend: 'YAML::Tiny version 1.69' Software-License-OrLaterPack-v0.10.2/MANIFEST0000644000175100017510000001014112777011543016546 0ustar vdbvdb# This file was generated with Dist::Zilla::Plugin::Manifest::Write v0.9.5 Build.PL # 3rd party file built by ModuleBuildTiny COPYING # Software-License-OrLaterPack file built by GenerateFile Changes # Software-License-OrLaterPack file added by Manifest::Read GPLv3 # Software-License-OrLaterPack file added by Manifest::Read MANIFEST # metainfo file built by Manifest::Write META.json # metainfo file built by MetaJSON META.yml # metainfo file built by MetaYAML README # Software-License-OrLaterPack file built by GenerateFile VERSION # Software-License-OrLaterPack file added by Manifest::Read lib/Software/License/AGPL_3/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/GPL_1/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/GPL_2/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/GPL_3/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/LGPL_2_1/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/LGPL_3_0/or_later.pm # 3rd party file built by Hook::FileGatherer lib/Software/License/OrLaterPack.pm # Software-License-OrLaterPack file added by Manifest::Read t/00-compile.t # 3rd party file built by Test::Compile t/01-test.t # Software-License-OrLaterPack file added by Manifest::Read xt/aspell-en.pws # Software-License-OrLaterPack file added by Manifest::Read xt/author/critic.t # 3rd party file built by Test::Perl::Critic xt/author/eol.t # 3rd party file built by Test::EOL xt/author/mojibake.t # 3rd party file built by MojibakeTests xt/author/no-tabs.t # 3rd party file built by Test::NoTabs xt/author/pod-coverage.t # 3rd party file built by PodCoverageTests xt/author/pod-spell.t # 3rd party file built by Test::PodSpelling xt/author/pod-syntax.t # 3rd party file built by PodSyntaxTests xt/author/test-version.t # 3rd party file built by Test::Version xt/perlcritic.ini # Software-License-OrLaterPack file added by Manifest::Read xt/release/cpan-changes.t # 3rd party file built by Test::CPAN::Changes xt/release/dist-manifest.t # 3rd party file built by Test::DistManifest xt/release/distmeta.t # 3rd party file built by MetaTests xt/release/fixme.t # 3rd party file built by Test::Fixme xt/release/kwalitee.t # 3rd party file built by Test::Kwalitee xt/release/meta-json.t # 3rd party file built by Test::CPAN::Meta::JSON xt/release/minimum-version.t # 3rd party file built by Test::MinimumVersion xt/release/new-version.t # 3rd party file built by Test::NewVersion xt/release/pod-linkcheck.t # 3rd party file built by Test::Pod::LinkCheck xt/release/pod-no404s.t # 3rd party file built by Test::Pod::No404s xt/release/portability.t # 3rd party file built by Test::Portability xt/release/synopsis.t # 3rd party file built by Test::Synopsis Software-License-OrLaterPack-v0.10.2/COPYING0000644000175100017510000000165712777011543016464 0ustar vdbvdbCOPYRIGHT AND LICENSE Copyright (C) 2015 Van de Bugger perl-Software-License-OrLaterPack is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. perl-Software-License-OrLaterPack 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. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with perl-Software-License-OrLaterPack. If not, see . perl-Software-License-OrLaterPack *distribution* may contain files generated by Dist-Zilla and/or its plugins from third-party templates; copyright and license specified above are *not* applicable to that files. Software-License-OrLaterPack-v0.10.2/VERSION0000644000175100017510000000000712777011543016465 0ustar vdbvdbv0.10.2Software-License-OrLaterPack-v0.10.2/Changes0000644000175100017510000001222112777011543016711 0ustar vdbvdbVersion history for Perl distribution Software-License-OrLaterPack: v0.10.2 @ 2016-10-10 22:17 UTC - The preamble and instructions are integral parts of the GNU GPL and may not be omitted. v0.10.1 @ 2015-10-22 21:45 UTC - `aspell.en.pws` file renamed to `aspell-en.pws` to make `Test::Portability` happy. - Minor fix to make `Test::Synopsis` happy. - Short license note used in documentation. - Mercurial repository moved from FedoraPeople.org to NonGNU.Savannah.org. - Minor change in documentation: `attribute` term is used instead of `method` for all attribute readers. v0.10.0 @ 2015-10-03 09:01 UTC - Documentation updated. Added "DESCRIPTION" section to the manual, with two subsections "Program Name" and "Short License Notice". - `_name` method changed: "the" article dropped from returned value. Now `_name` returns "bare" license name, which is the same for "or later" license and for its base license, e. g. "GNU General Public License". - Introduced methods: `_abbr`, `abbr`, `base`, `program`, `Program`. - `_version` method retired, use `->base->version` instead. - **Incompatible change:** `notice` method takes program name from object, not from argument. Argument now is interpreted as requested notice variant. There are two variants: default (no argument) and `'short'`. Short notice is similar to the notice printed by the current GNU programs, e. g.: Copyright (C) YEAR HOLDER License ABBR: NAME URL This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. - Required Perl version lowered to 5.006. - Version style switched from old decimal to new dotted-decimal. 0.009 @ 2015-06-15 - `OrLaterPack.pm` is returned to the distribution. CPAN does not handle well distributions with no main module. In particular, distribution upgrade does not work. 0.008 @ 2015-06-14 - `OrLaterPack.pod` and distribution `README` now have `NAME`, `VERSION` and `AUTHOR` sections. - `bugtracker.web` resource is changed from SourceForge to `rt.cpan.org`. - All the small templates eliminated, files are generated from `dist.ini`. - Bug reporting changed to use `Dist::Zilla`'s `log` and `log_fatal` methods — it makes error messages more clear, especially error location more understandable. - Some more links added to documentation. 0.007 @ 2015-06-11 - Documentation moved to `doc/` directory, each chapter in separate file. The same files used to generate distribution COPYING and README, OrLaterPack.pod. Source COPYING is a symlink to `doc/14-copying.doc`. - More licenses added: GPL v1 and v2, LGPL v2.1 and 3.0. - All the `or_later.pm` modules now generated from the same template. - More test added: `MojibakeTests` (checks encoding), `CheckPrereqsIndexed` (checks all dependencies are available in CPAN). - Functional test expanded to cover added licenses. - Dummy module `OrLaterPack.pm` dropped, `OrLaterPack.pod` file introduced instead. - `manifest.txt` now describes all the source files (even those which are not copied to distribution). 0.006 @ 2015-04-29 - `_name` and `_version` methods introduced. The first returns plain license name (no version) with lowercase "article "the", the second return plain license version "3". - `notice` method overrides parent one: (1) our method has optional parameters — program name ("this program" by default), it is used in license notice text, (2) notice text is formatted with `Text::Wrap::fill`. - `AGPL_3::or_later` delegates most of the work to `GPL_3::or_later` to avoid code duplication. - I am studying CPAN features and polishing release process and materials. Added some info: where to get *real* source, how to report bugs, etc. 0.005 @ 2015-04-16 - Minor bug in POD fixed. - `dist.ini` and `weaver.ini` dropped from distribution. - License note in sources was incorrect, fixed. - Source `README` added, not fully completed yet. - Distribution `README` is also added. - SourceForge project created. - Dist meta info provided with resources: homepage and repository. 0.004 @ 2015-04-14 - `Changes` file format changed to meet CPAN requirements. - "Main" module added to make CPAN happy. - Studying `Dist::Zilla` — adding more release tests, etc. 0.003 @ 2015-04-12 - `Software-License-GPL_3-or_later` renamed to `Software-License-OrLaterPack`. - `AGPL_3::or_later` license added. - Documentation moved to `OrLaterPack.pod` file. - Functional test improved and expanded and now covers both licenses. 0.002 @ 2015-04-11 - `Module::Build::Tiny` used instead of `ExtUtils::MakeMaker`. - Functional test added. - `Test::Compile` test added. - Documentation added. 0.001 @ 2015-04-10 - Initial revision. No documentation, no tests, but `GPL_3::or_later` works and can be used. Software-License-OrLaterPack-v0.10.2/README0000644000175100017510000002150412777011543016302 0ustar vdbvdbWHAT? Software-License-OrLaterPack (or just OrLaterPack for brevity) is an add-on for Software-License, a set of licenses with "or later" clause (like GPL_3::or_later). It allows Perl developers (who use Dist-Zilla) to release their work under the terms of a *License* version *N* or (at user option) any later version. WHY? Dist-Zilla is a popular tool for building CPAN distributions. Build process is controlled by dist.ini, Dist-Zilla configuration file. A distribution author can specify license covering his work by using license option in dist.ini file: license = NAME where *NAME* is a name of module from Software::License hierarchy. Software-License is shipped with a set of popular licenses, from Apache_1_1 to Zlib, including GNU licenses (GPL), including their "Affero" and "Lesser" variants. So, if a developer wants to release his work under the terms of the GPL version 3, he should write in his dist.ini: license = GPL_3 However, Free Software Foundation recommends using clause "license version *N* or (at your option) any later version" . Unfortunately, Software-License distribution does not supply (out of the box) a way to express such clause. OrLaterPack fulfills the lack. If OrLaterPack is installed, a developer can specify in his dist.ini: license = GPL_3::or_later NAMING perl-Software-License-OrLaterPack is official software name. However, in Perl world prefix "perl-" is redundant and not used. For example, on meta::cpan this software is named as Software-License-OrLaterPack. In the rest of the documentation shortened name Software-License-OrLaterPack is used as synonym for full name perl-Software-License-OrLaterPack. We are in the Perl world, aren't we? You may notice that name may be spelled with dashes (Software-License-OrLaterPack) or with double colons (Software::License::OrLaterPack). Strictly speaking, there is difference: the first one is software name, while the second is name of Perl package, but often these names are interchangeable especially if software consists of single package. FORMS You may face Software-License-OrLaterPack in *source* or *distribution* forms. If you are going to use GNU license with "or later" clause, you will likely be interested in *using* Software-License-OrLaterPack *distribution*. If you are going to *develop* (or *hack*) the Software-License-OrLaterPack itself, you will likely need the *source*, not distribution. Since Perl is an interpreting language, modules in the distribution *look* like sources. Actually, they are Perl source files. But they are not *actual* sources, because they are *built* (preprocessed or generated) by Dist-Zilla. How to distinguish source and distribution: * Source may contain Mercurial files and directories .hgignore, .hgtags, .hg/, while distribution should not. * Source should contain dist.ini file, while distribution may not. * Source should *not* contain xt/ directory, while distribution should. * Name of source directory does *not* include version (e. g. Software-License-OrLaterPack), while name of distribution does (e. g. Software-License-OrLaterPack-v0.7.1). SOURCE Software-License-OrLaterPack source is in Mercurial repository hosted on savannah.nongnu.org. You can either browse the source online or clone the entire repository: $ hg clone http://hg.savannah.nongnu.org/hgweb/orlaterpack \ perl-Software-License-OrLaterPack Source Files Software-License-OrLaterPack source files usually include a comment near the top of the file: This file is part of perl-Software-License-OrLaterPack. Not all source files are included into distribution. Some source files are used at distribution build time only, and not required for installation. DISTRIBUTION Software-License-OrLaterPack distributions are published on CPAN . Generated Files Distribution may contain files preprocessed or generated by Dist-Zilla and its plugins. Some generated files are made from Software-License-OrLaterPack source, but some are generated from third-party templates. Files generated from third-party templates usually include a comment near the top of the file: This file was generated with NAME (where *NAME* is a name of the plugin generated the file). Such files are *not* part of Software-License-OrLaterPack source, and Software-License-OrLaterPack copyright and license are not applicable to such files. INSTALLING With cpanm cpanm tool is (probably) the easiest way to install distribution. It automates downloading, building, testing, installing, and uninstalling. To install the latest version from CPAN: $ cpanm Software::License::OrLaterPack To install a specific version (e. g. *v0.7.1*) from CPAN: $ cpanm Software::License::OrLaterPack@v0.7.1 To install locally available distribution (e. g. previously downloaded from CPAN or built from sources): $ cpanm ./Software-License-OrLaterPack-v0.7.1.tar.gz To uninstall the distribution: $ cpanm -U Software::License::OrLaterPack Manually To install distribution tarball manually (let us assume you have version *v0.7.1* of the distribution): $ tar xaf Software-License-OrLaterPack-v0.7.1.tar.gz $ cd Software-License-OrLaterPack-v0.7.1 $ perl Build.PL $ ./Build build $ ./Build test $ ./Build install See Also How to install CPAN modules HACKING For hacking, you will need Mercurial, Perl interpreter and Dist-Zilla (with some plugins), and likely cpanm to install missed parts. Clone the repository first: $ hg clone http://hg.savannah.nongnu.org/hgweb/orlaterpack \ perl-Software-License-OrLaterPack $ cd perl-Software-License-OrLaterPack To build a distribution from the source, run: $ dzil build If required Dist-Zilla plugins are missed, dzil tool will warn you and show the command to install all the required plugins, e. g.: Required plugin Dist::Zilla::Plugin::Test::EOL isn't installed. Run 'dzil authordeps' to see a list of all required plugins. You can pipe the list to your CPAN client to install or update them: dzil authordeps --missing | cpanm To run the tests: $ dzil test To run all the tests, including release tests: $ dzil test --release To install the distribution: $ dzil install or $ cpanm ./Software-License-OrLaterPack-VERSION.tar.gz where *VERSION* is a version of built distribution. To clean the directory: $ dzil clean DOCUMENTATION Online The easiest way is browsing the documentation online at meta::cpan . Locally Installed If you have the distribution installed, use perldoc tool to browse locally installed documentation: $ perldoc Software::License::OrLaterPack::Manual $ perldoc Software::License::OrLaterPack Built from Source Build Software-License-OrLaterPack first (see "HACKING"), then: $ cd Software-License-OrLaterPack-VERSION $ perldoc Software::License::OrLaterPack::Manual $ perldoc Software::License::OrLaterPack where *VERSION* is a version of built distribution. FEEDBACK CPAN Request Tracker The quickest way to report a bug in Software-License-OrLaterPack is by sending email to bug-Software-License-OrLaterPack [at] rt.cpan.org. CPAN request tracker can be used via web interface also: Browse bugs Browsing bugs does not require authentication. Report bugs You need to be a CPAN author, have a BitCard account, or OpenID in order to report bugs via the web interface. (On 2015-04-27 I have logged in successfully with my LiveJournal OpenID, but my Google OpenID did not work for CPAN. I did not check other OpenID providers.) Send Email to Author As a last resort, send email to author: Van de Bugger . Please start message subject with "perl-Software-License-OrLaterPack:". GLOSSARY CPAN Comprehensive Perl Archive Network, a large collection of Perl software and documentation. See cpan.org , What is CPAN? . Distribution Tarball, containing Perl modules and accompanying files (documentation, metainfo, tests). Usually distributions are uploaded to CPAN, and can be installed with dedicated tools (cpan, cpanm, and others). Module Perl library file, usually with .pm suffix. Usually contains one package. See perlmod . Package Perl language construct. See package and perlmod . Software-License-OrLaterPack-v0.10.2/GPLv30000644000175100017510000010451312777011543016242 0ustar vdbvdb GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 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. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .