[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Setting up configurable spec files



On Wed, 2003-09-03 at 04:34, Scot Mc Pherson wrote:

> I would like to so something like:
> 
> rpmbuild -bb --prefix=/new/path file.spec
> 
> So that the --prefix path would be inserted before any other path information 
> using some macro.

Try

   rpmbuild -bb --define 'myprefix /my/prefix' foo.spec

and if you want a default value for myprefix, use eg. this in the spec:

   %{!?myprefix: %{expand: %%define myprefix /other/prefix}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []