From ffe8b4d8149b50df53353bdb85fac1251a85ec2f Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Sun, 31 May 2015 21:50:21 +0200 Subject: 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 Reviewed-on: http://review.gluster.org/11020 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- glusterfs.spec.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 59daab4cf38..bf1794d7ddd 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -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} \ -- cgit