cpan2rpm
view release on metacpan or search on metacpan
As with the previous option, this may be used to insert code at the end of a given section. This option also supports the I<tag> and I<files> sections which allow for the user to insert extra tags or files to the spec file.
I<exempli gratia>
--epilogue="tag:epoch: 1"
=back
=head2 Building options
The following options control the package making process.
=over
=item B<--spec-only>
This option instructs the script to only generate a spec file and not build the RPM package.
=item B<--spec=path>
This option allows the user to specify the full-path of the spec file to produce. By default, the specfile is placed in the SPECS directory and is named after the module with a F<.spec> extension.
Please note that cpan2rpm will overwrite existing files, so if you care about your current spec file, save it!
=item B<--make-maker=C<string-value>>
This option allows passing a string to the MakeMaker process (i.e. perl Makefile.PL <your-arguments-here>). At present there is no support for passing parameters to Module::Build->new() - if this is either possible or desired, please mail the author...
=item B<--make=C<string-value>>
Arguments supplied here get passed directly to the make process. (As with the above, no support is offered for Module::Build).
=item B<--make-no-test>
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<installsitearch> which usually comes earliest in the @INC. This may not do as much good for modules with XS code or those that are already installed into an architecture dependent path and are already first in the @INC. ...
You may need to remove the previously-generated rpm or use --force (see below) in conjuction with this option to actually rebuild 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.
( run in 0.704 second using v1.01-cache-2.11-cpan-800906f7e73 )