[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Is there a way to set the RPM file name in the spec file?
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: Is there a way to set the RPM file name in the spec file?
- Date: Sat, 30 Sep 2000 13:32:27 -0400
On Thu, Sep 28, 2000 at 05:07:13PM +0200, t.l.roden@siep.shell.com wrote:
> Dear RPM List,
>
> In our macros file we have the _rpmfilename macro defined as:
>
> %_rpmfilename
> %%{OS}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{OS}.%%{ARCH}.rpm
>
Note carefully the doubled %%, as the value of %_rpmfilename
is *not* "just another macro" but rather a string that is
passed to headerSprintf() (read: just like --queryformat)
to generate the file name of the binary rpm package.
> Is there a way to override this (and other macro) values within the
> spec file definition?
>
You can redefine %_rpmfilename in a spec file, on the command line,
or from rpm configuration just like all macros.
FWIW, I'd suggest not defining %_rpmfilename in a spec file if you are going
to distribute your package, as another packager may be surprised at
your choice of file name.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]