# installed-but-unpackaged static libs.
# This flag tells rpmbuild to behave.
%bcond_with wayland
-
+%bcond_with x
# Version is the date of latest commit in qtbase, followed by 'g' + few
# characters of the last git commit ID.
BuildRequires: python
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(xkbcommon)
-BuildRequires: pkgconfig(glesv2)
%if %{with wayland}
BuildRequires: pkgconfig(egl)
-%else
+BuildRequires: pkgconfig(glesv2)
+%endif
+%if %{with x}
+BuildRequires: pkgconfig(gles20)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(scim)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrender)
%description plugin-platform-linuxfb
This package contains the linuxfb platform plugin for Qt
-%if ! %{with wayland}
+%if %{with x}
%package plugin-platform-xcb
Summary: XCB platform plugin
%if ! 0%{?qt5_release_build}
-developer-build \
-no-warnings-are-errors \
+%endif
+ -platform devices/linux-g++-tizen \
+%if "%{profile}" != ""
+ -device-option TIZEN_PROFILE=%{profile} \
%endif
%if %{with wayland}
- -platform devices/linux-g++-tizen-ivi \
+ -device-option QT_QPA_DEFAULT_PLATFORM=wayland \
%else
- -platform devices/linux-g++-tizen-mobile \
+%if %{with x}
+ -device-option QT_QPA_DEFAULT_PLATFORM=xcb \
+%endif
%endif
-prefix "%{_prefix}" \
-bindir "%{_libdir}/qt5/bin" \
-nomake tests \
-nomake examples \
-no-xinput2 \
-%if %{with wayland}
- -no-xcb
-%else
+%if %{with x}
-xcb \
-qt-xcb
+%else
+ -no-xcb
%endif
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqlinuxfb.so
-%if ! %{with wayland}
+%if %{with x}
%files plugin-platform-xcb
%defattr(-,root,root,-)