%global qt_module qtdoc
Summary: Main Qt5 Reference Documentation
Name: qt5-%{qt_module}
Version: 5.1.1
Release: 2%{?dist}
License: GFDL
Url: http://qt-project.org/
Source0: http://download.qt-project.org/official_releases/qt/5.1/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
BuildArch: noarch
BuildRequires: qt5-qttools-devel >= %{version}
%description
QtDoc contains the main Qt Reference Documentation, which includes
overviews, Qt topics, and examples not specific to any Qt module.
%prep
%setup -q -n %{qt_module}-opensource-src-%{version}
%build
%{_qt5_qmake}
make docs %{?_smp_mflags}
%install
make install_docs INSTALL_ROOT=$RPM_BUILD_ROOT
%files
%doc LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
%{_qt5_docdir}/qtdoc.qch
%{_qt5_docdir}/qtdoc/
%changelog
* Mon Sep 30 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-2
- License: GFDL
* Sun Sep 22 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
- Initial packaging