[packages/qt5-qt3d] - rename qch bcond to doc (all docs require qtassistant now)

baggins baggins at pld-linux.org
Tue May 23 11:24:10 CEST 2017


commit ad86ec4feb39de7424a1de6e626c15aee3e7ad2f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue May 23 11:23:43 2017 +0200

    - rename qch bcond to doc (all docs require qtassistant now)

 qt5-qt3d.spec | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/qt5-qt3d.spec b/qt5-qt3d.spec
index 4df5a0b..382d417 100644
--- a/qt5-qt3d.spec
+++ b/qt5-qt3d.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	qch	# documentation in QCH format
+%bcond_without	doc	# Documentation
 
 %define		orgname		qt3d
 %define		qtbase_ver		%{version}
@@ -25,7 +25,7 @@ BuildRequires:	Qt5Qml-devel >= %{qtdeclarative_ver}
 BuildRequires:	Qt5Quick-devel >= %{qtdeclarative_ver}
 BuildRequires:	assimp-devel
 BuildRequires:	pkgconfig
-%if %{with qch}
+%if %{with doc}
 BuildRequires:	qt5-assistant >= %{qttools_ver}
 BuildRequires:	qt5-doc-common >= %{qttools_ver}
 %endif
@@ -133,15 +133,17 @@ Przykłady do bibliotek Qt5 3D.
 %build
 qmake-qt5
 %{__make}
-%{__make} %{!?with_qch:html_}docs
+%{?with_doc:%{__make} docs}
 
 %install
 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
 
 # useless symlinks
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?
@@ -297,11 +299,11 @@ rm -rf $RPM_BUILD_ROOT
 %{qt5dir}/mkspecs/modules/qt_lib_3drender.pri
 %{qt5dir}/mkspecs/modules/qt_lib_3drender_private.pri
 
+%if %{with doc}
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qt3d
 
-%if %{with qch}
 %files doc-qch
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qt3d.qch
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt5-qt3d.git/commitdiff/ad86ec4feb39de7424a1de6e626c15aee3e7ad2f



More information about the pld-cvs-commit mailing list