Disabling brp-strip for mock builds?

Josh Kelley joshkel at gmail.com
Thu Jul 19 17:27:19 UTC 2007


On 7/16/07, Kevin Kofler <kevin.kofler at chello.at> wrote:
> Josh Kelley <joshkel <at> gmail.com> writes:
> > What do I need to do to properly disable brp-strip for mock builds?
>
> Does something like this work?
> %define __os_install_post %(echo '%{__os_install_post}' |
> sed -e 's!/usr/lib/rpm/[^/]*/?brp-strip %{__strip}!!g')

Thank you for the suggestion.  I had trouble getting it to work,
although I think that that may have been user error on my part; I
ended up copying Dag Wieers' approach from his acroread.spec file:

%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}

That appears to work fine.

Josh Kelley




More information about the fedora-devel-list mailing list