perl.req1p
List requirements for perl scripts and libraries
Usage
perl.req [{-h | --help}]
[{-v | --verbose}]
[{-m | --method=strict | normal | relaxed}]
[FILE ...]
Overview
perl.req calculates prerequisites for each Perl source file specified on a command line; alternatively, a list of files is obtained from standard input, one file per line. "use", "require" and "do" statements are processed. The output of perl.req is suitable for automatic dependency tracking (e.g. for RPM packaging).
For example, /usr/lib/perl5/File/Temp.pm requires, in particular, "perl(Fcntl.pm) >= 1.030" (as of perl-5.8.6).
perl.req is basically a wrapper for B::PerlReq Perl compiler backend.
Options
-
-m, --method=method -
Use particular method for dependency tracking. Alternatively, RPM_PERL_REQ_METHOD environment variable can be used to set the method.
The following methods are available:
strict-
Search thoroughly and list all requirements. In particular, list platform-specific (non-UNIX) requirements and requirements found inside
"eval"blocks.
normal(default)-
Enable moderate search most acceptable for RPM packaging. That is, skip files known to be platform-specific; skip platform-specific requirements and those found inside
"eval"blocks; skip most common requirements (e.g."strict.pm").
relaxed-
Enable relaxed mode. That is, tolerate B::PerlReq failures; in addition to normal method, skip conditional requirements (e.g.
"require"statements inside subroutines); skip"do FILE"statements; list only essential dependencies.
-
-v, --verbose -
Increase verbosity.
Copying
Copyright (c) 2003, 2004 Alexey Tourbin, ALT Linux Team.
This is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.