[packages/qt5-qtdeclarative] - drop qch bcond

baggins baggins at pld-linux.org
Tue May 23 11:31:32 CEST 2017


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

    - drop qch bcond

 qt5-qtdeclarative.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/qt5-qtdeclarative.spec b/qt5-qtdeclarative.spec
index e92c4a9..774e607 100644
--- a/qt5-qtdeclarative.spec
+++ b/qt5-qtdeclarative.spec
@@ -2,14 +2,12 @@
 # Conditional build:
 %bcond_with	bootstrap	# disable features to able to build without installed qt5
 # -- build targets
-%bcond_without	doc
-%bcond_without	qch		# documentation in QCH format
+%bcond_without	doc		# Documentation
 %bcond_without	qm		# QM translations
 %bcond_without	qtxmlpatterns	# XmlListModel plugin (Qt5XmlPatterns based)
 
 %if %{with bootstrap}
 %undefine	with_doc
-%undefine	with_qch
 %undefine	with_qm
 %undefine	with_qtxmlpatterns
 %endif
@@ -38,7 +36,7 @@ BuildRequires:	Qt5Sql-devel >= %{qtbase_ver}
 BuildRequires:	Qt5Test-devel >= %{qtbase_ver}
 BuildRequires:	Qt5Widgets-devel >= %{qtbase_ver}
 %{?with_qtxmlpatterns:BuildRequires:	Qt5XmlPatterns-devel >= %{qtxmlpatterns_ver}}
-%if %{with qch}
+%if %{with doc}
 BuildRequires:	qt5-assistant >= %{qttools_ver}
 %endif
 BuildRequires:	qt5-build >= %{qtbase_ver}
@@ -248,9 +246,7 @@ Przykłady do bibliotek Qt5 Declarative.
 qmake-qt5
 %{__make}
 
-%if %{with doc}
-%{__make} %{!?with_qch:html_}docs
-%endif
+%{?with_doc:%{__make} docs}
 
 %if %{with qm}
 cd qttranslations-opensource-src-%{version}
@@ -267,7 +263,7 @@ install -d $RPM_BUILD_ROOT%{_bindir}
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 
 %if %{with doc}
-%{__make} install_%{!?with_qch:html_}docs \
+%{__make} install_docs \
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 %endif
 
@@ -530,13 +526,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_docdir}/qt5-doc/qtqml
 %{_docdir}/qt5-doc/qtquick
 
-%if %{with qch}
 %files doc-qch
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qtqml.qch
 %{_docdir}/qt5-doc/qtquick.qch
 %endif
-%endif
 
 %files examples -f examples.files
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtdeclarative.git/commitdiff/7b72fe568f4dc20a2325a799fd98c7608f79e0dd



More information about the pld-cvs-commit mailing list