App-CPANtoRPM
view release on metacpan or search on metacpan
These options (which can be included any number of times) will
replace the version for either a required feature or a provided
feature as they will appear in the spec file. That way, for example,
you can make the version of the requirement match what is provided
in other RPMs.
For example, if the perl RPM that is installed on the system
provides the feature perl=5.24.1 but the module requires
perl=5.008001, rpmbuild may fail because it doesn't know how to
compare these two version numbers to know whether the requirement is
met. When this happens, rpmbuild will fail due to missing
dependencies.
In this cae, you could reformat the dependency version by passing
in:
--repl-require perl=5.08.1
-m, --macros
Use the macro form of common SPEC constructs over the environment
variable form (e.g. %{buildroot} vs $RPM_BUILD_ROOT).
--build-rec, --test-rec, --runtime-rec
Many modules have a list of modules that are recommended to be
installed at build time, test time, or at run time, but they are not
absolutely required. By default, these modules will not be included
as requirements for the various steps. Adding these options will
require them.
Module Build Options
The perl module must be built as part of the process. The following
options are used during the build:
--build-type TYPE
TYPE must be 'make' or 'build' and specifies that the build must be
done using the Makefile.PL or Build.PL files respectively (for those
modules that have both). If that file does not exist, an error is
triggered.
--config STRING
The given string is passed to either the 'perl Build.PL' or 'perl
Makefile.PL' command used to configure the module and create a Build
script or a Makefile. This option can be passed in any number of
times, but only a single option should be included in each STRING.
STRING is passed in as a command line argument:
perl Makefile.PL STRING
perl Build.PL STRING
Since the arguments passed in differ when using a Makefile.PL and a
Build.PL procedure, for safety, you should always include the
--build-type option when using this option.
--build STRING
Similar to the --config option except this passes strings which are
passed to either the './Build' or 'make' command used to actually
build the module. This option can be passed in any number of times.
--config-input STRING
Sometimes, the configure step prompts for input that cannot be set
using an environment variable. In this case, this option may be used
to pass in a single line of input to the 'perl Build.PL' or 'perl
Makefile.PL' command used to configure the module and create a Build
script or a Makefile. This option can be passed in any number of
times, but each value should include a single line of input. This
will result in the following:
echo STRING | perl Makefile.PL
echo STRING | perl Build.PL
Since the arguments passed in differ when using a Makefile.PL and a
Build.PL procedure, for safety, you should always include the
--build-type option when using this option.
--build-input STRING
Similar to the --config-input option except this passes strings
which are passed to either the './Build' or 'make' command used to
actually build the module. This option can be passed in any number
of times.
-T/--install-type TYPE
-i/--install-base DIR
These options allow you to specify where the module will be
installed. By default, the module will be built to install in the
standard perl location. In most cases, that would mean installing
the module, documentation, and scripts in:
BASEDIR/lib/perl5/PERLVERS
BASEDIR/man
BASEDIR/bin
where BASEDIR is the place where perl is installed (which is
typically /usr) and PERLVERS is the version directory (i.e. 5.14.2).
To install in /usr/local instead of /usr, just use the option:
--install-base /usr/local
To change the module installation directory (but not the directory
of the documentation or scripts) to either the site_perl or
vendor_perl location, use:
--install-type site
--install-type vendor
to set the module directory to be:
BASEDIR/lib/perl5/site_perl/PERLVERS
BASEDIR/lib/perl5/vendor_perl/PERLVERS
respectively.
The --install-type value must be one of:
perl (or core)
site
vendor
and defaults to 'perl'. 'perl' and 'core' are synonyms. If this is
passed in, it will override any default value set in the Makefile.PL
or Build.PL scripts (so be careful about rebuilding core modules).
( run in 1.246 second using v1.01-cache-2.11-cpan-6aa56a78535 )