Prevent GBS fail if do_profiling is not defined 57/33957/1
authorVyacheslav Barinov <v.barinov@samsung.com>
Mon, 19 Jan 2015 07:25:20 +0000 (10:25 +0300)
committerVyacheslav Barinov <v.barinov@samsung.com>
Mon, 19 Jan 2015 07:25:20 +0000 (10:25 +0300)
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 <v.barinov@samsung.com>
packaging/gawk.spec

index 74cb932..601c4fe 100644 (file)
@@ -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