[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Setting up configurable spec files
- From: Ville Skyttä <ville skytta iki fi>
- To: rpm-list redhat com
- Subject: Re: Setting up configurable spec files
- Date: Wed, 03 Sep 2003 09:03:23 +0300
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]
[]