--- /dev/null
+# TODO:
+# - cleanup
+
+%define orgname qtdoc
+Summary: The Qt5 Qtdoc
+Name: qt5-%{orgname}
+Version: 5.2.0
+Release: 0.1
+License: LGPL v2.1 or GPL v3.0
+Group: X11/Libraries
+Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
+# Source0-md5: 76936bc86bb0b58cc340c5b9e4a24308
+URL: http://qt-project.org/
+BuildRequires: qt5-qtbase-devel = %{version}
+BuildRequires: qt5-qttools-devel = %{version}
+BuildRequires: rpmbuild(macros) >= 1.654
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautoreqdep libGL.so.1 libGLU.so.1
+%define _noautostrip '.*_debug\\.so*'
+
+%define specflags -fno-strict-aliasing
+%define _qtdir %{_libdir}/qt5
+
+%description
+qtdoc contains the main Qt Reference Documentation, which includes
+overviews, Qt topics, and examples not specific to any Qt module.The
+configuration files are located in qtdoc/doc/config and the articles
+in qtdoc/doc/src. Note that QDoc is located in qtbase.
+
+%prep
+%setup -q -n %{orgname}-opensource-src-%{version}
+
+%build
+qmake-qt5
+%{__make}
+%{__make} docs
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+
+%{__make} install_docs \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_docdir}/qt5-doc