From 1c93b1a76897eb4ba85a4c55ef194e5c472ac852 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 5 Dec 2013 13:41:33 -0600 Subject: [PATCH] - fix build when doc macro not defined fix harder :) can't do this partially, since it makes noarch content diff between archs --- qt5-qtbase.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index 1314283..6497249 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -140,16 +140,16 @@ Requires: pkgconfig(gl) %description devel %{summary}. +%if 0%{?docs} %package doc Summary: API documentation for %{name} Requires: %{name} = %{version}-%{release} -%if 0%{?docs} # for qhelpgenerator BuildRequires: qt5-qttools-devel -%endif BuildArch: noarch %description doc %{summary}. +%endif %package static Summary: Static library files for %{name} @@ -452,9 +452,9 @@ popd %dir %{_qt5_plugindir}/sqldrivers/ %{_qt5_plugindir}/sqldrivers/libqsqlite.so +%if 0%{?docs} %files doc %doc dist/README dist/changes-5.* -%if 0%{?docs} %{_qt5_docdir}/*.qch %{_qt5_docdir}/qdoc/ %{_qt5_docdir}/qmake/