From be424cdbba40217dfa60e09ca9f532dc776ef046 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sat, 15 Aug 2015 12:00:22 -0500 Subject: [PATCH] - conditionally use valgrind only if needed --- qt5-qtbase.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index d77ab84..c48891b 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -484,12 +484,12 @@ pushd src/xml; ../../bin/qmake; popd # see also https://bugreports.qt-project.org/browse/QTBUG-42071 QT_HASH_SEED=0; export QT_HASH_SEED %if 0%{?valgrind} -mv bin/qdoc bin/qdoc.orig -install %{SOURCE2} bin/qdoc -%endif +make html_docs || \ + mv bin/qdoc bin/qdoc.orig && install %{SOURCE2} bin/qdoc && \ + make html_docs && \ + mv bin/qdoc.orig bin/qdoc -f +%else make html_docs -%if 0%{?valgrind} -mv bin/qdoc.orig bin/qdoc -f %endif make qch_docs %endif @@ -945,6 +945,7 @@ fi %changelog * Sat Aug 15 2015 Rex Dieter 5.5.0-16 - backport 0055-Respect-manual-set-icon-themes.patch (kde#344469) +- conditionally use valgrind only if needed * Fri Aug 07 2015 Kevin Kofler - 5.5.0-15 - use valgrind to debug qdoc HTML generation