This can be controlled by setting the autoRequires configuration value to
false:

http://mojo.codehaus.org/rpm-maven-plugin/rpm-mojo.html#autoRequires

On Wed, Oct 10, 2012 at 5:20 PM, Crawford, Andrew
<[email protected]>wrote:

> Hello,
>
> I've been scouring the RPM Plugin documentation and Google search results,
> trying to find a way to set the value of "autoreq" to "no" in the .spec
> file that RPM-Plugin produces.  So far I have not found any way to
> accomplish this (using configuration), and wanted to ping this list to see
> if it's possible.
>
> I do not have root access in my environment, but would still like to
> create and deploy custom RPM files.  To do this, I need to maintain my own
> "private" RPM database.  When the value of "autoreq" is set to "yes" in the
> RPM-Plugin's .spec file, this setup fails as it thinks things like /bin/sh
> are not present on the system.
>
> I know I can use the "--nodeps" RPM argument, but then I cannot checks for
> the dependencies that I do want to manage (one custom RPM requiring another
> custom RPM).  The best way to get what I need would be to disable the auto
> dependency (autoreq) setting.
>
> Please let me know if there is a configuration directive available to
> disable this setting.
>
> Thanks,
> Andrew C.
>
>
>

Reply via email to