Search
SailfishOS Open Build Service
>
Projects
>
home:phdeswer
:
branches:nemo:devel:hw:brcm:bcm2835:rpi
>
qtwayland
> qtwayland.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtwayland.spec of Package qtwayland
#%define _qtmodule_snapshot_version 0.0-gite5601d28 %define _qtwayland_variant wayland_brcm_egl Name: qt5-qtwayland Summary: Qt Wayland compositor Version: 5.6 Release: 0 Group: Qt/Qt License: LGPLv2.1 with exception or GPLv3 URL: http://qt.nokia.com #Source0: e5601d28.tar.gz Source0: qtwayland.tar.bz2 #Source0: qtwayland-master.zip Patch0: force-glib.patch Patch1: fixeglfs.patch Patch2: fullscreen.patch #%if "%{_qtwayland_variant}" == "wayland_brcm_egl" Patch4: rpi-brcm_egl.patch Patch6: remove-brcmwindow-direct-inheritance.patch Patch7: add-glib2-0.patch Patch8: qtwayland-brcm_egl-fix-build.patch Patch9: notests.patch #%endif #%if "%{_qtwayland_variant}" == "nogl" Patch3: fixnogl.patch Patch5: nogl-platforms.patch #%endif BuildRequires: pkgconfig(Qt5Core) >= 5.2.1 BuildRequires: pkgconfig(Qt5Gui) >= 5.2.1 BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.1 BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.1 BuildRequires: pkgconfig(Qt5PlatformSupport) >= 5.2.1 #BuildRequires: pkgconfig(Qt5Qml) >= 5.2.1 #BuildRequires: pkgconfig(Qt5Declarative) >= 5.2.1 #BuildRequires: pkgconfig(Qt5Quick) >= 5.2.1 #BuildRequires: pkgconfig(Qt5V8) >= 5.2.1 BuildRequires: pkgconfig(Qt5DBus) >= 5.2.1 BuildRequires: libxkbcommon-devel BuildRequires: pkgconfig(glib-2.0) BuildRequires: libffi-devel BuildRequires: fdupes BuildRequires: perl BuildRequires: gfx-rpi-libGLESv2, gfx-rpi-libEGL BuildRequires: gfx-rpi-libGLESv2-devel, gfx-rpi-libEGL-devel Requires: xkeyboard-config BuildRequires: gfx-rpi-libEGL-devel BuildRequires: gfx-rpi-devel #BuildRequires: wayland-devel >= 1.4.0 BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-server) BuildRequires: qt5-qmake >= 5.2.1 %if "%{_qtwayland_variant}" == "wayland_brcm_egl" BuildRequires: pkgconfig(egl) #BuildRequires: pkgconfig(bcm_host) %endif %if "%{_qtwayland_variant}" == "wayland_egl" BuildRequires: pkgconfig(wayland-egl) %endif %if "%{_qtwayland_variant}" == "xcomposite_egl" BuildRequires: pkgconfig(xcomposite) %endif %description Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Qt wayland compositor for %{_qtwayland_variant} %if "%{_qtwayland_variant}" == "wayland_egl" %package wayland_egl Summary: Qt Wayland compositor - plugin files for wayland_egl Group: Qt/Qt Requires: %{name} = %{version}-%{release} %description wayland_egl Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Qt wayland compositor plugin for wayland_egl %endif %if "%{_qtwayland_variant}" == "xcomposite_egl" %package xcomposite_egl Summary: Qt Wayland compositor - plugin files for xcomposite_egl Group: Qt/Qt Requires: %{name} = %{version}-%{release} %description xcomposite_egl t is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Qt wayland compositor plugin for xcomposite_egl %endif %package devel Summary: Qt Wayland compositor - development files for %{_qtwayland_variant} Group: Qt/Qt Requires: %{name} = %{version}-%{release} %description devel Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded systems without rewriting the source code. . This package contains the Qt wayland compositor development files for %{_qtwayland_variant} #%package examples #Summary: Qt Wayland compositor - examples #Group: Qt/Qt #Requires: %{name} = %{version}-%{release} # #%description examples #Qt is a cross-platform application and UI framework. Using Qt, you can #write web-enabled applications once and deploy them across desktop, #mobile and embedded systems without rewriting the source code. #. #This package contains the Qt wayland compositor examples for %{_qtwayland_variant} #### Build section %prep %setup -q -n qtwayland-5.6.0 %if "%{_qtwayland_variant}" == "wayland_egl" %patch0 -p1 #%patch1 -p1 %patch2 -p1 %endif %if "%{_qtwayland_variant}" == "wayland_brcm_egl" %patch4 -p1 #%patch6 -p1 %patch7 -p1 #%patch9 -p1 %endif %if "%{_qtwayland_variant}" == "nogl" %patch5 -p1 %patch3 -p1 %endif %build export QTDIR=/usr/share/qt5 export QTDIR=%_qt5_datadir export QT_WAYLAND_GL_CONFIG=wayland_brcm_egl #export QT_CONFIG=no-pkg-config touch .git #ls /usr/include/ #ls /usr/lib/pkgconfig #which qmake #pkg-config --cflags --libs wayland-server #pkg-config --cflags --libs wayland-client ls /usr/lib/ #find / -type f | xargs grep -s "5.0.2" #echo $PKG_CONFIG_PATH #export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig #export PKG_CONFIG_SYSROOT_DIR=/ #export PKG_CONFIG_PATH=/usr/lib/pkgconfig %qmake5 --version echo test2 /usr/lib/qt5/bin/qmake --version echo test3 %{_prefix}/%{_lib}/qt5/bin/qmake --version /usr/lib/qt5/bin/qmake "CONFIG+=wayland-compositor" "CONFIG-=config_wayland_egl" "CONFIG+=config_wayland_brcm" "QT_BUILD_PARTS += examples" cat /home/abuild/rpmbuild/BUILD/qtwayland-5.6.0/config.log #ls /home/abuild/rpmbuild/BUILD/qtwayland-5.6.0/* #ls %{buildroot} make %install rm -rf %{buildroot} /usr/lib/qt5/bin/qmake install #%qmake_install # 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/" {} \; # We don't need qt5/Qt/ rm -rf %{buildroot}/%{_includedir}/qt5/Qt %fdupes %{buildroot}/%{_includedir} rm -rf %{buildroot}%{_libdir}/debug #### Pre/Post section %post -p /sbin/ldconfig %postun -p /sbin/ldconfig #### File section %files %defattr(-,root,root,-) %if "%{_qtwayland_variant}" == "wayland_brcm_egl" %{_libdir}/qt5/plugins/platforms/libqwayland-brcm-egl.so %{_libdir}/qt5/plugins/platforms/libqwayland-generic.so %{_libdir}/qt5/plugins/wayland-graphics-integration/* %{_libdir}/libQt5WaylandClient* %{_libdir}/pkgconfig/Qt5WaylandClient.pc %endif %if "%{_qtwayland_variant}" == "nogl" %{_libdir}/qt5/plugins/platforms/libqwayland-nogl.so %endif #%if "%{_qtwayland_variant}" == "wayland_egl" %{_libdir}/libQt5Compositor.so.5 %{_libdir}/libQt5Compositor.so.5.* #%endif %if "%{_qtwayland_variant}" == "wayland_egl" %files wayland_egl %defattr(-,root,root,-) %{_libdir}/qt5/plugins/platforms/libqwayland-egl.so %{_libdir}/qt5/plugins/waylandcompositors/libwayland-egl.so %endif %if "%{_qtwayland_variant}" == "xcomposite_egl" %files xcomposite_egl %defattr(-,root,root,-) %{_libdir}/qt5/plugins/platforms/libqwayland-xcomposite-egl.so %{_libdir}/qt5/plugins/waylandcompositors/libxcomposite-egl.so %endif %files devel %defattr(-,root,root,-) %{_libdir}/libQt5Compositor.so %{_includedir}/qt5/* %{_libdir}/libQt5Compositor.la %{_libdir}/libQt5Compositor.prl %{_libdir}/pkgconfig/Qt5Compositor.pc %{_libdir}/cmake/* %{_datadir}/qt5/mkspecs/modules/* %{_libdir}/qt5/bin/qtwaylandscanner #%files examples #%defattr(-,root,root,-) #%{_libdir}/qt5/examples/qtwayland/ #### No changelog section, separate $pkg.changes contains the history