summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-05-31 21:50:21 +0200
committerNiels de Vos <ndevos@redhat.com>2015-06-07 11:33:35 -0700
commitffe8b4d8149b50df53353bdb85fac1251a85ec2f (patch)
tree254fa1aacb2dbb53c935b1c082b6cbb5293f586c /glusterfs.spec.in
parent3373379303afa575c0616482c8ab8c3c4a08cc22 (diff)
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>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in5
1 files changed, 5 insertions, 0 deletions
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} \