You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by enarkri <en...@ericsson.com> on 2012/03/16 09:27:12 UTC

Build Requires tag

Hi,
I am creating an RPM package using rpm-maven-plugin.
During the generation of the SPEC file,  I would want to have the 
"BUILDREQUIRES" tag also to be printed in the SPEC file.  Is it 
possible? If so how?


Naren

Re: Build Requires tag

Posted by Stanislav Ochotnicky <so...@redhat.com>.
Quoting enarkri (2012-03-16 09:27:12)
>Hi,
>I am creating an RPM package using rpm-maven-plugin.
>During the generation of the SPEC file,  I would want to have the 
>"BUILDREQUIRES" tag also to be printed in the SPEC file.  Is it 
>possible? If so how?

>From maven-rpm-plugin docs:
  In particular, source RPMs can not be generated and the spec files which
  are used do not do any build process (the plugin collects the files and
  "installs" them for packaging).

This would suggest that resulting spec files are not suitable for
rebuilding the package "from scratch" and therefore BuildRequires tag is
pointless in them. 

I assume you have a specific use-case, but it doesn't seem valid from
the information you provided. Why do you want to rebuild the rpm after
the maven-rpm-plugin is done with it?


-- 
Stanislav Ochotnicky <so...@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc.                               http://cz.redhat.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org