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:
stevenpritchard
2006-02-02 14:48:55 +00:00
parent 4b2d244477
commit 7c0f79f496
2 changed files with 15 additions and 25 deletions
-22
View File
@@ -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
+15 -3
View File
@@ -10,7 +10,7 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# 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:
--help -h Help message
--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
--force -f Force overwriting existing spec
--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>.
=item *
Includes a hack to remove LD_RUN_PATH from Makefile.
=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>
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 $compat=0;
our $license=0;
our $noprefix=0;
our $force=0;
our $packager;
@@ -317,6 +328,7 @@ sub extract($$$) {
GetOptions(
'help|h' => \$help,
'old|o' => \$compat,
'license|l' => \$license,
'noprefix|n' => \$noprefix,
'force|f' => \$force,
'packager|p=s' => \$packager,
@@ -680,7 +692,7 @@ END
print $spec
"\%{__perl} -pi -e 's/^\\tLD_RUN_PATH=[^\\s]+\\s*/\\t/' Makefile\n"
if (!$noarch);
if ($compat and !$noarch);
print $spec <<END;
make \%{?_smp_mflags}
@@ -718,7 +730,7 @@ chmod -R u+rwX,go+rX,go-w \$RPM_BUILD_ROOT/*
END
if (!grep /copying|artistic|copyright|license/i, @doc) {
if ($license and !grep /copying|artistic|copyright|license/i, @doc) {
print $spec <<END;
perldoc -t perlgpl > COPYING
perldoc -t perlartistic > Artistic