Search
SailfishOS Open Build Service
>
Projects
>
home:sebas
:
branches:home:plfiorini:maui:devel
:
hw:lge:hammerhead
>
qtwebengine
> qtwebengine.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtwebengine.spec of Package qtwebengine
# Package prefix %define pkgname qt5-qtwebengine # Conditional building of X11 related things %bcond_with X11 Name: qtwebengine #VCS: git@github.com:maui-packages/qtwebengine#d1e9e7e6bfb99ba1685c55ac758223f11e47f6df Summary: Web content engine library for Qt Version: 5.4.1 Release: 1 Group: Qt/Qt License: BSD and LGPLv2+ URL: http://qt.io Source0: %{name}-%{version}.tar.xz BuildRequires: qt5-qtcore-devel BuildRequires: qt5-qtgui-devel BuildRequires: qt5-qtnetwork-devel BuildRequires: qt5-qtwidgets-devel BuildRequires: qt5-qtprintsupport-devel BuildRequires: qt5-qtlocation-devel BuildRequires: qt5-qtmultimedia-devel BuildRequires: qt5-qtscript-devel BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: qt5-qt3d-devel BuildRequires: qt5-qtsensors-devel BuildRequires: qt5-qtxmlpatterns-devel BuildRequires: qt5-qmake BuildRequires: qt5-qtsql-devel BuildRequires: qt5-qttest-devel BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(sqlite3) %if %{with X11} BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xcomposite) %endif BuildRequires: glib2-devel BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gstreamer-app-0.10) BuildRequires: pkgconfig(gstreamer-base-0.10) BuildRequires: pkgconfig(gstreamer-interfaces-0.10) BuildRequires: pkgconfig(gstreamer-pbutils-0.10) BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) BuildRequires: pkgconfig(gstreamer-video-0.10) BuildRequires: libjpeg-turbo-devel BuildRequires: libpng-devel BuildRequires: libxml2-devel BuildRequires: libudev-devel BuildRequires: libxslt-devel BuildRequires: gperf BuildRequires: python BuildRequires: bison BuildRequires: flex BuildRequires: fdupes BuildRequires: ruby BuildRequires: perl BuildRequires: perl-version BuildRequires: perl-libs %description QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. %package -n %{pkgname} Summary: Web content engine library for Qt Group: Qt/Qt %description -n %{pkgname} QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. %package -n libqtwebengine5 Summary: Web content engine library for Qt - core runtime files Group: Qt/Qt Requires: %{pkgname}-uiprocess-launcher = %{version} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description -n libqtwebengine5 QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the core runtime files needed to launch Qt 5 applications using QtWebEngine library. %package -n libqtwebengine5-devel Summary: Web content engine library for Qt - core development files Group: Qt/Qt Requires: libqtwebengine5 = %{version} %description -n libqtwebengine5-devel QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the core development files needed to build Qt 5 applications using QtWebEngine library. %package -n libqtwebengine5-widgets Summary: Web content engine library for Qt - GUI runtime files Group: Qt/Qt Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description -n libqtwebengine5-widgets QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the GUI runtime files needed to launch Qt 5 applications using QtWebEngineWidgets library. %package -n libqtwebengine5-widgets-devel Summary: Web content engine library for Qt - GUI development files Group: Qt/Qt Requires: libqtwebengine5-widgets = %{version} %description -n libqtwebengine5-widgets-devel QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the GUI development files needed to build Qt 5 applications using QtWebEngineWidgets library. %package -n qt5-qtqml-import-webengineplugin Summary: Qt WebEngine QML plugin Group: Qt/Qt %description -n qt5-qtqml-import-webengineplugin QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the WebEngine QML plugin for QtQml. %package -n qt5-qtqml-import-webengineplugin-experimental Summary: Qt WebEngine Experimental QML plugin Group: Qt/Qt %description -n qt5-qtqml-import-webengineplugin-experimental QtWebEngine provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. This package contains the WebEngine QML Experimental plugin for QtQml. %prep %setup -q -n %{name}-%{version} # remove .../qt/tests directory which introduces nothing but trouble rm -rf Source/WebEngine/qt/tests/ %build ## From Carsten Munk: create way smaller debuginfo #export CXXFLAGS="`echo $CXXFLAGS | sed 's/ -g / -gdwarf-4 /g'`" #export CFLAGS="`echo $CFLAGS | sed 's/ -g / -gdwarf-4 /g'`" # XXX: Remove debug symbols entirely, we're running out of linker memory! export CXXFLAGS="`echo $CXXFLAGS | sed 's/ -g / /g'`" export CFLAGS="`echo $CFLAGS | sed 's/ -g / /g'`" # export QMAKEPATH="`pwd`/Tools/qmake" export QTDIR=/usr/share/qt5 # touch .git # # Configure to release build, drop tests, mimic Tools/qmake/mkspecs/features/production_build.prf for the whole # build not just WebCore. We could also drop WebEngine1 support aka libqtwebengine5-widgets with WEBKIT_CONFIG-=build_webengine1. # See also Tools/qmake/mkspecs/features/features.prf. qmake -qt=5 CONFIG+=release CONFIG-=debug \ WEBKIT_CONFIG-=build_tests \ CONFIG+=no_debug_info \ CONFIG-=separate_debug_info \ QMAKE_CFLAGS+=$QMAKE_CFLAGS_RELEASE \ QMAKE_CXXFLAGS+=$QMAKE_CXXFLAGS_RELEASE \ CONFIG*=use_all_in_one_files make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %qmake5_install # # Remove .la files # rm -f %{buildroot}/usr/lib/libQt5WebEngine.la # rm -f %{buildroot}/usr/lib/libQt5WebEngineWidgets.la # Fix wrong path in pkgconfig files find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \ -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \; # Fix wrong path in prl files find %{buildroot}%{_libdir} -type f -name '*.prl' \ -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \; # Eliminate duplicates %fdupes %{buildroot}/%{_libdir} %fdupes %{buildroot}/%{_includedir} %post -n libqtwebengine5 -p /sbin/ldconfig %postun -n libqtwebengine5 -p /sbin/ldconfig %post -n libqtwebengine5-widgets -p /sbin/ldconfig %postun -n libqtwebengine5-widgets -p /sbin/ldconfig %files -n %{pkgname}-uiprocess-launcher %defattr(-,root,root,-) %{_libdir}/qt5/libexec/QtWebProcess %if %{with X11} %{_libdir}/qt5/libexec/QtWebPluginProcess %endif %files -n libqtwebengine5 %defattr(-,root,root,-) %{_libdir}/libQt5WebEngine.so.* %files -n libqtwebengine5-devel %defattr(-,root,root,-) %{_includedir}/qt5/QtWebEngine/ %{_libdir}/cmake/Qt5WebEngine/ %{_libdir}/libQt5WebEngine.prl %{_libdir}/libQt5WebEngine.so %{_libdir}/pkgconfig/Qt5WebEngine.pc %{_datadir}/qt5/mkspecs/modules/qt_lib_webengine.pri %{_datadir}/qt5/mkspecs/modules/qt_lib_webengine_private.pri %files -n libqtwebengine5-widgets %defattr(-,root,root,-) %{_libdir}/libQt5WebEngineWidgets.so.* %files -n libqtwebengine5-widgets-devel %defattr(-,root,root,-) %{_includedir}/qt5/QtWebEngineWidgets/ %{_libdir}/cmake/Qt5WebEngineWidgets/ %{_libdir}/libQt5WebEngineWidgets.prl %{_libdir}/libQt5WebEngineWidgets.so %{_libdir}/pkgconfig/Qt5WebEngineWidgets.pc %{_datadir}/qt5/mkspecs/modules/qt_lib_webenginewidgets.pri %{_datadir}/qt5/mkspecs/modules/qt_lib_webenginewidgets_private.pri %files -n qt5-qtqml-import-webengineplugin %defattr(-,root,root,-) %{_libdir}/qt5/qml/QtWebEngine/libqmlwebengineplugin.so %{_libdir}/qt5/qml/QtWebEngine/qmldir %{_libdir}/qt5/qml/QtWebEngine/plugins.qmltypes %files -n qt5-qtqml-import-webengineplugin-experimental %defattr(-,root,root,-) %{_libdir}/qt5/qml/QtWebEngine/experimental/libqmlwebengineexperimentalplugin.so %{_libdir}/qt5/qml/QtWebEngine/experimental/qmldir