summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2014-01-16 11:43:38 +0100
committerTomasz Olszak <olszak.tomasz@gmail.com>2014-02-20 16:28:15 +0100
commit3ca9019e1aef767e5e7b42017f2f5e51f8ba0054 (patch)
tree2dee5e16b217c7be9877c4829d3a471d4f76f85c
parentcfde8668e21296de46634337a6bef94bbfae5ec3 (diff)
downloadqtbase-3ca9019e1aef767e5e7b42017f2f5e51f8ba0054.tar.gz
qtbase-3ca9019e1aef767e5e7b42017f2f5e51f8ba0054.tar.bz2
qtbase-3ca9019e1aef767e5e7b42017f2f5e51f8ba0054.zip
Proper handling of x,wayland bcond's.
Now generic should build just fine. Bug-Tizen:TIVI-2416 Change-Id: Ic99512e66b122f1f3784abe6025014d90a1918b4 Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r--packaging/qt5.spec29
1 files changed, 18 insertions, 11 deletions
diff --git a/packaging/qt5.spec b/packaging/qt5.spec
index 99e9f691a3..c96a15b142 100644
--- a/packaging/qt5.spec
+++ b/packaging/qt5.spec
@@ -29,7 +29,7 @@
# 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.
@@ -69,10 +69,12 @@ BuildRequires: readline-devel
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)
@@ -87,7 +89,6 @@ BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(scim)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrender)
@@ -235,7 +236,7 @@ Requires: %{name}-qtcore = %{version}-%{release}
%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
@@ -543,10 +544,16 @@ MAKEFLAGS=%{?_smp_mflags} \
-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" \
@@ -589,11 +596,11 @@ MAKEFLAGS=%{?_smp_mflags} \
-nomake tests \
-nomake examples \
-no-xinput2 \
-%if %{with wayland}
- -no-xcb
-%else
+%if %{with x}
-xcb \
-qt-xcb
+%else
+ -no-xcb
%endif
@@ -986,7 +993,7 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqlinuxfb.so
-%if ! %{with wayland}
+%if %{with x}
%files plugin-platform-xcb
%defattr(-,root,root,-)