# 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
Summary(pl.UTF-8): Biblioteki Qt5 Declarative
Name: qt5-%{orgname}
Version: 5.8.0
-Release: 0.1
+Release: 1
License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
Group: X11/Libraries
Source0: http://download.qt.io/official_releases/qt/5.8/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
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}
qmake-qt5
%{__make}
-%if %{with doc}
-%{__make} %{!?with_qch:html_}docs
-%endif
+%{?with_doc:%{__make} docs}
%if %{with qm}
cd qttranslations-opensource-src-%{version}
INSTALL_ROOT=$RPM_BUILD_ROOT
%if %{with doc}
-%{__make} install_%{!?with_qch:html_}docs \
+%{__make} install_docs \
INSTALL_ROOT=$RPM_BUILD_ROOT
%endif
%{_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)