From: Vyacheslav Barinov Date: Mon, 19 Jan 2015 07:25:20 +0000 (+0300) Subject: Prevent GBS fail if do_profiling is not defined X-Git-Tag: accepted/tizen/base/20151223.052301~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F33957%2F1;p=platform%2Fupstream%2Fgawk.git Prevent GBS fail if do_profiling is not defined Now if no do_profiling macro in prjconf the following happens: GbpError: RPM error while parsing None: can't parse specfile Change-Id: Id26ad775d624dd90fe30a0d4632bdeaf16d2e5f5 Signed-off-by: Vyacheslav Barinov --- diff --git a/packaging/gawk.spec b/packaging/gawk.spec index 74cb932..601c4fe 100644 --- a/packaging/gawk.spec +++ b/packaging/gawk.spec @@ -47,7 +47,7 @@ cp %{SOURCE1001} . %build AUTOPOINT=true autoreconf --force --install %configure --libexecdir=%{_libdir} --disable-nls -%if %do_profiling +%if 0%{?do_profiling:1} %__make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_generate" %__make check %__make clean