CPAN-RPM
view release on metacpan or search on metacpan
Use this option to suppress running a module's test suite during build.
=item B<--make-install=C<string-value>>
Allows user to supply arguments to the make install process. (As with the above, no support is offered for Module::Build).
=item B<--find-provides=C<string-value>>
=item B<--find-requires=C<string-value>>
These two options allow for redefining the RPM macros of the same name in the spec file.
=item B<--tempdir=C<string-value>>
Specify a temporary working directory instead of utilizing File::Temp.
=item B<--req-scan-all>
By default, the I<rpm-build> requirements script scans all files in a tarball for requirements information. As this may on occasion generate requirements on the produced rpm that belong only to sample programs or other files not critical to the modu...
=item B<--no-clean>
By default, the system passes I<--clean> to F<rpmbuild>, thus removing the unpacked sources from the BUILD directory. This option suppresses that functionality.
=item B<--shadow-pure>
Forces installation under F<installarchlib> even if the module is pure perl. This is significant because it is first in the @INC search for module determination. This will not do any good for modules with XS code or those that are already installed...
User may be required to use --force (see below) in conjuction with this option to build a fresh rpm before attempting to --install again.
=item B<--force>
By default the script will do as little work as possible i.e. if it has already previously retrieved a module from CPAN, it will not retrieve it again. If it has already generated a spec file it will not generate it again. This option allows the pa...
=item B<--no-fixin>
This option allows suppression of the fixin step when generating a package and avoids breaking certain test script e.g. MIME::Base64
=item B<--no-sign>
Suppresses package signatures. By default, cpan2rpm will sign the packages it generates IF the the RPM macros file has been configured to use signatures - this option prevents this behaviour. See also the I<--sign-setup> option below.
=item B<--install | -i>
Install the RPM after building it. If non-root user, you must have "sudo rpm" privileges to use this option.
=back
=head2 Miscellaneous options
The options below perform functions not closely related to the quotidien process of building a package.
=over
=item B<--fetch=C<string-value>>
One of B<cpanplus>, B<cpan>, B<web>, or B<reg>, this parameter specifies which method to use when retrieving a module from CPAN. Web retrievals are by parsing the CPAN website and may be faster though more error prone. To use either the CPAN or CPA...
If your environment requires the use of a proxy, simply set the environment variable as indicated below in (bash format):
F<export HTTP_PROXY=http://user:password@host.org:8080>
=item B<--modules, -f =C<string-value>>
Lists of modules to be processed can be stored in a file. Pass this parameter the name of your file. The file should contain the name of each module in a single line and the modules can be specified in any of their many forms (e.g. url, path to tar...
=item B<--mk-rpm-dirs=C<string-value>>
This option allows the non-root user to easily set up his account for building packages. The option requires a directory path where the RPMS, SPECS, etc. subdirectories will be created. These directories will contain the spec files, binaries and th...
Additionally, the script will create architecture directories F<i386>, F<i686> and F<noarch> and allows the user to pass B<--buildarch> to also create a directory for that architecture.
=item B<--sign-setup=[C<type:user>]>
This option sets up your RPM macros file to support the signing of packages. The option may be passed a value consisting of the signature type to use (currently only B<gpg> and B<pgp> are valid but consult the RPM man pages), a colon, and the user n...
B<Note:> unless you know what you're doing, do not pass any arguments to this option! Also, make sure not to pass a module name as an argument.
To further tailor your macros file please refer to the I<GPG SIGNATURES> section of the RPM man page.
=item B<--upgrade>
Whenever a new version of this program becomes available, an automatic notification will be issued to the user of this fact. The user may then choose to upgrade via this option. The option takes no parameters.
=item B<--no-upgrade-chk|-U>
During version checks, the script will time out within 5 seconds if the F<arix.com> server is unavailable (when working offline or if the server is down). Should the 5 seconds become annoying, users may pass this option to skip the version check.
=item B<--debug[=n]>
This option produces debugging output. An optional integer increases the level of verbosity for this output. If no integer is given, 1 is assumed.
=item B<--help, -h>
Displays a terse syntax message.
=item B<-V>
This option displays the version number of cpan2rpm itself.
=item B<-D>
This option runs cpan2rpm in the Perl debugger. Useful for anyone willing to dig on my behalf.
=back
=head1 CONFIGURATION FILE
In addition to reading options from the command line, cpan2rpm will slurp the configuration file F<~/.cpan2rpm>, if it exists. Please note that for this functionality to work, the module F<Getopt::ArgvFile> must be installed. If the config file exi...
Additionally, please note that if no config file exists in the $HOME directory, one may be passed explicitly on the command line as shown in the example below:
# cpan2rpm @options-file -V
Note that options from command line will override options from config file.
The configuration file should contain options in same format as they would be used in command line. Place one option per line.
Example:
--packager="John Doe <john.doe@example.com>"
( run in 0.659 second using v1.01-cache-2.11-cpan-71847e10f99 )