# http://code.qt.io/cgit/qt-apps/qtwebbrowser.git # mirrored on GitHub %global srcname qt-apps-%{name} %global srcurl https://github.com/qtproject/%{srcname} Name: qtwebbrowser Version: 1.0 Release: 1%{?dist} Summary: QtWebEngine based browser for embedded touch devices License: GPLv3+ URL: http://doc.qt.io/QtWebBrowser Source0: %{srcurl}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Update window title Patch0: %{srcurl}/commit/ad6fe41f3637a13226a5960873e5321f8660c36d.patch BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5WebEngine) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: qt5-qhelpgenerator qt5-qdoc # TODO add "Qt Virtual Keyboard" %description The Qt WebBrowser (codename Roadtrip) is a browser for embedded devices developed using the capabilities of Qt and Qt WebEngine. Using recent Chromium, it features up-to-date HTML technologies behind a minimal but slick touch-friendly user interface from Qt Quick. %package doc Summary: Documentation for QtWebBrowser License: GFDL BuildArch: noarch %description doc %{summary}. ################################################################################## %prep %autosetup -p1 -n%{srcname}-%{version} sed -i -r 's:qhelpgenerator:\0-qt5:' doc/*.pri %build mkdir -p %{_target_platform} pushd %{_target_platform} %qmake_qt5 .. popd %make_build -C %{_target_platform} make %{_smp_mflags} -C %{_target_platform} docs %install %make_install -C %{_target_platform} # make install does nothing install -m0755 -t %{buildroot}%{_bindir} -D %{_target_platform}/src/%{name} ################################################################################### %files %license LICENSE.GPLv3 %{_bindir}/%{name} %files doc %license LICENSE.FDL %doc %{_target_platform}/doc/html/* #################################################################################### %changelog * Thu Jul 21 2016 Raphael Groner - 1.0-1 - initial