[Fedora-packaging] Multiline %defines
Ralf Corsepius
rc040203 at freenet.de
Wed Jul 20 13:43:32 UTC 2005
On Wed, 2005-07-20 at 09:26 -0400, Matthew Miller wrote:
> On Wed, Jul 20, 2005 at 03:07:29PM +0200, Ralf Corsepius wrote:
> > Background: I am trying to override __os_install_post from inside of a
> > spec file, similar to this:
> > ..
> > %define __os_install_post \
> > ./brp-custom-compress \
> > ./brp-custom-strip \
> > %{nil}
> [...]
> > AFAIS, rpm-4.0.x chokes on the line continuation char.
>
> Haven't tried it, but what if you do:
>
> %define __os_install_post "./brp-custom-compress; ./brp-custom-strip"
>
> and dodge the issue?
To be tried.
However, I've been told [1]
%define __os_install_post ./brp-custom-compress; ./brp-custom-strip
was working, but haven't had a chance this try it yet.
Another obvious work-around would be not to use __os_install_post and to
explicitly call the brp* scripts:
%define __os_install_post %{nil}
...
%install
...
./brp-custom-compress
./brp-custom-strip
Does anybody recall since when (which rpm version, which RHL/FC release)
this issue had been fixed?
Ralf
[1] I don't have rh7.3, I just received a report from a rh7.3 user who
is trying to build one of my rpms.
More information about the Fedora-packaging
mailing list