Dne 4.10.2015 v 05:22 Sérgio Basto napsal(a):
Mock after building and write the rpms, always execute %clean, doesn't
matter if I add --no-cleanup-after, example .
Have we any simple way to mock not perform %clean, at the end ?
I need it to debug the make install ...
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ilJSts
+ umask 022
+ cd /builddir/build/BUILD
+ cd mp4v2-trunk
+ exit 0
--no-cleanup-after tells *mock* to not wipe buildchroot after building.
What you are looking for is to tell *rpmbuild* to not run %clean when building (and then
probably tell mock to use
--no-cleanup-after so you can investigate the artifacts).
So the solution should be:
mock --rpmbuild-opts=--noclean --no-cleanup-after foo.src.rpm
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys