diff --git a/qt5-qtx11extras.spec b/qt5-qtx11extras.spec index c1d31c1..7690627 100644 --- a/qt5-qtx11extras.spec +++ b/qt5-qtx11extras.spec @@ -1,12 +1,14 @@ %global qt_module qtx11extras +%define docs 1 + %define prerelease beta Summary: Qt5 - X11 support library Name: qt5-%{qt_module} Version: 5.6.0 -Release: 0.4.%{prerelease}%{?dist} +Release: 0.5.%{prerelease}%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -34,6 +36,17 @@ Requires: qt5-qtbase-devel%{?_isa} %description devel %{summary}. +%if 0%{?docs} +%package doc +Summary: API documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildRequires: qt5-qdoc +BuildRequires: qt5-qhelpgenerator +BuildArch: noarch +%description doc +%{summary}. +%endif + %prep %setup -q -n %{qt_module}-opensource-src-%{version}%{?prerelease:-%{prerelease}} @@ -44,12 +57,20 @@ pushd %{_target_platform} %{qmake_qt5} .. make %{?_smp_mflags} + +%if 0%{?docs} +make %{?_smp_mflags} docs +%endif popd %install make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} +%if 0%{?docs} +make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} +%endif + ## .prl/.la file love # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs pushd %{buildroot}%{_qt5_libdir} @@ -78,8 +99,17 @@ popd %{_qt5_libdir}/pkgconfig/Qt5X11Extras.pc %{_qt5_archdatadir}/mkspecs/modules/qt_lib_x11extras*.pri +%if 0%{?docs} +%files doc +%{_qt5_docdir}/qtx11extras.qch +%{_qt5_docdir}/qtx11extras/ +%endif + %changelog +* Thu Jan 21 2016 Rex Dieter 5.6.0-0.5.beta +- -doc subpkg + * Mon Dec 28 2015 Rex Dieter 5.6.0-0.4.beta - BR: cmake, update source URL, use %%license