Remove accidentally included META.yml.
Don't generate license texts automatically. (Use --license to include them.) Drop the LD_RUN_PATH hack unless --old is used.
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
name: cpanspec
|
|
||||||
version: 1.59
|
|
||||||
author:
|
|
||||||
- Steven Pritchard <steve@cpan.org>
|
|
||||||
abstract: ~
|
|
||||||
license: perl
|
|
||||||
requires:
|
|
||||||
Archive::Tar: 0
|
|
||||||
Archive::Zip: 0
|
|
||||||
File::Basename: 0
|
|
||||||
FileHandle: 0
|
|
||||||
Getopt::Long: 0
|
|
||||||
LWP::UserAgent: 0
|
|
||||||
Module::CoreList: 0
|
|
||||||
POSIX: 0
|
|
||||||
Parse::CPAN::Packages: 0
|
|
||||||
Pod::Usage: 0
|
|
||||||
Text::Autoformat: 0
|
|
||||||
YAML: 0
|
|
||||||
provides: {}
|
|
||||||
generated_by: Module::Build version 0.261
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
#
|
#
|
||||||
# $Id: cpanspec,v 1.1 2006/02/01 21:46:07 stevenpritchard Exp $
|
# $Id: cpanspec,v 1.2 2006/02/02 14:48:55 stevenpritchard Exp $
|
||||||
|
|
||||||
####
|
####
|
||||||
#
|
#
|
||||||
@@ -50,6 +50,7 @@ cpanspec [options] [file [...]]
|
|||||||
Options:
|
Options:
|
||||||
--help -h Help message
|
--help -h Help message
|
||||||
--old -o Be more compatible with old RHL/FC releases
|
--old -o Be more compatible with old RHL/FC releases
|
||||||
|
--license -l Include generated license texts if absent in source
|
||||||
--noprefix -n Don't add perl- prefix to package name
|
--noprefix -n Don't add perl- prefix to package name
|
||||||
--force -f Force overwriting existing spec
|
--force -f Force overwriting existing spec
|
||||||
--packager -p Name and email address of packager (for changelog)
|
--packager -p Name and email address of packager (for changelog)
|
||||||
@@ -92,8 +93,17 @@ Includes explicit dependencies for core Perl modules.
|
|||||||
|
|
||||||
Uses C<%check || :> instead of just C<%check>.
|
Uses C<%check || :> instead of just C<%check>.
|
||||||
|
|
||||||
|
=item *
|
||||||
|
|
||||||
|
Includes a hack to remove LD_RUN_PATH from Makefile.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
=item B<-l>, B<--license>
|
||||||
|
|
||||||
|
Generate COPYING and Artistic license texts if the source doesn't seem
|
||||||
|
to include them.
|
||||||
|
|
||||||
=item B<-n>, B<--noprefix>
|
=item B<-n>, B<--noprefix>
|
||||||
|
|
||||||
Don't add I<perl-> prefix to the name of the package. This is useful
|
Don't add I<perl-> prefix to the name of the package. This is useful
|
||||||
@@ -175,6 +185,7 @@ our %opt;
|
|||||||
|
|
||||||
our $help=0;
|
our $help=0;
|
||||||
our $compat=0;
|
our $compat=0;
|
||||||
|
our $license=0;
|
||||||
our $noprefix=0;
|
our $noprefix=0;
|
||||||
our $force=0;
|
our $force=0;
|
||||||
our $packager;
|
our $packager;
|
||||||
@@ -317,6 +328,7 @@ sub extract($$$) {
|
|||||||
GetOptions(
|
GetOptions(
|
||||||
'help|h' => \$help,
|
'help|h' => \$help,
|
||||||
'old|o' => \$compat,
|
'old|o' => \$compat,
|
||||||
|
'license|l' => \$license,
|
||||||
'noprefix|n' => \$noprefix,
|
'noprefix|n' => \$noprefix,
|
||||||
'force|f' => \$force,
|
'force|f' => \$force,
|
||||||
'packager|p=s' => \$packager,
|
'packager|p=s' => \$packager,
|
||||||
@@ -680,7 +692,7 @@ END
|
|||||||
|
|
||||||
print $spec
|
print $spec
|
||||||
"\%{__perl} -pi -e 's/^\\tLD_RUN_PATH=[^\\s]+\\s*/\\t/' Makefile\n"
|
"\%{__perl} -pi -e 's/^\\tLD_RUN_PATH=[^\\s]+\\s*/\\t/' Makefile\n"
|
||||||
if (!$noarch);
|
if ($compat and !$noarch);
|
||||||
|
|
||||||
print $spec <<END;
|
print $spec <<END;
|
||||||
make \%{?_smp_mflags}
|
make \%{?_smp_mflags}
|
||||||
@@ -718,7 +730,7 @@ chmod -R u+rwX,go+rX,go-w \$RPM_BUILD_ROOT/*
|
|||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
if (!grep /copying|artistic|copyright|license/i, @doc) {
|
if ($license and !grep /copying|artistic|copyright|license/i, @doc) {
|
||||||
print $spec <<END;
|
print $spec <<END;
|
||||||
perldoc -t perlgpl > COPYING
|
perldoc -t perlgpl > COPYING
|
||||||
perldoc -t perlartistic > Artistic
|
perldoc -t perlartistic > Artistic
|
||||||
|
|||||||
Reference in New Issue
Block a user