rpm: add option "--with debug" for rpmbuild/mock
When passing "--with debug" to mock or rpmbuild, the build process will add the "--enable-debug" option to ./configure. This makes it easier to build RPMs with debugging enabled. Change-Id: Ie584a4a03525385b337bbf81e5093f2af1b0b780 BUG: 1198849 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/11020 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
parent
3373379303
commit
ffe8b4d814
@ -9,6 +9,10 @@
|
||||
## All argument definitions should be placed here and keep them sorted
|
||||
##
|
||||
|
||||
# if you wish to compile an rpm with debugging...
|
||||
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with debug
|
||||
%{?_with_debug:%global _with_debug --enable-debug}
|
||||
|
||||
# if you wish to compile an rpm with cmocka unit testing...
|
||||
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with cmocka
|
||||
%{?_with_cmocka:%global _with_cmocka --enable-cmocka}
|
||||
@ -584,6 +588,7 @@ This package provides the translators needed on any GlusterFS client.
|
||||
%build
|
||||
./autogen.sh && %configure \
|
||||
%{?_with_cmocka} \
|
||||
%{?_with_debug} \
|
||||
%{?_with_tmpfilesdir} \
|
||||
%{?_without_bd} \
|
||||
%{?_without_epoll} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user