]> git.pld-linux.org Git - packages/qt5-qtsvg.git/commitdiff
- rename qch bcond to doc (all docs require qtassistant now)
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 23 May 2017 10:11:23 +0000 (12:11 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 23 May 2017 10:11:23 +0000 (12:11 +0200)
qt5-qtsvg.spec

index 3203b2b0e3cc6fb089307447f1ae96e161450c3c..11f27cb2f2b149297866b1dd5e76096bc8313888 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without qch     # documentation in QCH format
+%bcond_without doc     # Documentation
 
 %define                orgname         qtsvg
 %define                qtbase_ver      %{version}
@@ -20,7 +20,7 @@ BuildRequires:        Qt5Gui-devel >= %{qtbase_ver}
 BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver}
 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
 BuildRequires: Qt5Xml-devel >= %{qtbase_ver}
-%if %{with qch}
+%if %{with doc}
 BuildRequires: qt5-assistant >= %{qttools_ver}
 %endif
 BuildRequires: qt5-build >= %{qtbase_ver}
@@ -132,15 +132,17 @@ Przykłady do biblioteki Qt5 Svg.
 %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.?
@@ -199,11 +201,11 @@ rm -rf $RPM_BUILD_ROOT
 %{qt5dir}/mkspecs/modules/qt_lib_svg.pri
 %{qt5dir}/mkspecs/modules/qt_lib_svg_private.pri
 
+%if %{with doc}
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qtsvg
 
-%if %{with qch}
 %files doc-qch
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qtsvg.qch
This page took 0.408256 seconds and 4 git commands to generate.