[packages/qt5-qtwebsockets] - rename qch bcond to doc (all docs require qtassistant now)
baggins
baggins at pld-linux.org
Tue May 23 12:17:59 CEST 2017
commit 70084c35de522d0a27a4e131403a5349fcaf891d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue May 23 12:17:51 2017 +0200
- rename qch bcond to doc (all docs require qtassistant now)
qt5-qtwebsockets.spec | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/qt5-qtwebsockets.spec b/qt5-qtwebsockets.spec
index 3260aec..8f56ec1 100644
--- a/qt5-qtwebsockets.spec
+++ b/qt5-qtwebsockets.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_without qch # documentation in QCH format
+%bcond_without doc # Documentation
%bcond_without qm # QM translations
%define orgname qtwebsockets
@@ -24,7 +24,7 @@ BuildRequires: Qt5Network-devel >= %{qtbase_ver}
BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver}
BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver}
BuildRequires: Qt5Sql-devel >= %{qtbase_ver}
-%if %{with qch}
+%if %{with doc}
BuildRequires: qt5-assistant >= %{qttools_ver}
%endif
BuildRequires: qt5-build >= %{qtbase_ver}
@@ -134,7 +134,7 @@ Przykłady do biblioteki Qt5 WebSockets.
%build
qmake-qt5
%{__make}
-%{__make} %{!?with_qch:html_}docs
+%{?with_doc:%{__make} docs}
%if %{with qm}
cd qttranslations-opensource-src-%{version}
@@ -148,8 +148,10 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT
-%{__make} install_%{!?with_qch:html_}docs \
+%if %{with doc}
+%{__make} install_docs \
INSTALL_ROOT=$RPM_BUILD_ROOT
+%endif
%if %{with qm}
%{__make} -C qttranslations-opensource-src-%{version} install \
@@ -230,11 +232,11 @@ rm -rf $RPM_BUILD_ROOT
%{qt5dir}/mkspecs/modules/qt_lib_websockets.pri
%{qt5dir}/mkspecs/modules/qt_lib_websockets_private.pri
+%if %{with doc}
%files doc
%defattr(644,root,root,755)
%{_docdir}/qt5-doc/qtwebsockets
-%if %{with qch}
%files doc-qch
%defattr(644,root,root,755)
%{_docdir}/qt5-doc/qtwebsockets.qch
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtwebsockets.git/commitdiff/70084c35de522d0a27a4e131403a5349fcaf891d
More information about the pld-cvs-commit
mailing list