Hi,
Is there a portable (portable across different versions of rpm) way to override specify defines which span across several lines, from inside of a spec file?
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} .. This seems to work on rpm-4.4.x (FC4), but seems to fail with rpm-4.0.x (rh7.3):
# rpmbuild tmp.spec .... error: Macro %__os_install_post has empty body error: line 55: Unknown tag: ./brp-compress \
AFAIS, rpm-4.0.x chokes on the line continuation char.
Ralf
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?
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.
packaging@lists.fedoraproject.org