From 30c622656e1a13bc155695fffb97cd3b68d9ebf9 Mon Sep 17 00:00:00 2001 From: Vyacheslav Barinov Date: Mon, 19 Jan 2015 10:25:20 +0300 Subject: [PATCH] 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 --- packaging/gawk.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4