doc subpkg

This commit is contained in:
Rex Dieter 2016-01-21 10:21:23 -06:00
parent 975c59bc40
commit 2fe1889a7f

View File

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