diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2014-04-25 09:38:57 +0200 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2015-02-28 21:40:49 +0100 |
commit | d140de049db6fe3995503f6265f6efb75c0b3d10 (patch) | |
tree | e5375dda3b6e83519fc9a854152e6d5f0a26225b | |
parent | 18d1102a29275fc132fbacc4af1a663095681257 (diff) | |
download | qtbase-d140de049db6fe3995503f6265f6efb75c0b3d10.tar.gz qtbase-d140de049db6fe3995503f6265f6efb75c0b3d10.tar.bz2 qtbase-d140de049db6fe3995503f6265f6efb75c0b3d10.zip |
packaging: spec file adapted for Tizen 2.2.1
Bug-Tizen:TIVI-2416
Change-Id: I30622e9367cffd3b292b6aff9d89d2eeb041fd7e
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r-- | packaging/qt5.spec | 60 |
1 files changed, 54 insertions, 6 deletions
diff --git a/packaging/qt5.spec b/packaging/qt5.spec index 34f58c32d7..0bdb2cad63 100644 --- a/packaging/qt5.spec +++ b/packaging/qt5.spec @@ -28,6 +28,25 @@ # libFOO.a files and as such rpmlint never complains about # installed-but-unpackaged static libs. # This flag tells rpmbuild to behave. + +%if "%{tizen}" == "2.1" +%define profile mobile +%define _with_x 1 +%else +%define _with_xkbcommon 1 +%define _with_ibus 1 +%endif + +%if "%{profile}" == "mobile" +%define _with_tizenscim 1 +%else +%define _with_egl 1 +%endif + +%bcond_with egl +%bcond_with ibus +%bcond_with tizenscim +%bcond_with xkbcommon %bcond_with wayland %bcond_with x @@ -68,11 +87,16 @@ BuildRequires: pam-devel BuildRequires: readline-devel BuildRequires: python BuildRequires: pkgconfig(fontconfig) +%if %{with xkbcommon} BuildRequires: pkgconfig(xkbcommon) -BuildRequires: pkgconfig(gles20) -%if "%{profile}" != "mobile" +%endif +%if %{with egl} BuildRequires: pkgconfig(egl) %endif +%if %{with tizenscim} +BuildRequires: pkgconfig(scim) +%endif +BuildRequires: pkgconfig(gles20) %if %{with x} BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcursor) @@ -268,7 +292,7 @@ Requires: %{name}-qtcore = %{version}-%{release} %description plugin-sqldriver-sqlite This package contains the sqlite sql driver plugin - +%if %{with ibus} %package plugin-platforminputcontext-ibus Summary: The ibus platform import context plugin Group: Base/Libraries @@ -276,7 +300,8 @@ Requires: %{name}-qtcore = %{version}-%{release} %description plugin-platforminputcontext-ibus This package contains the ibus platform input context plugin - +%endif +%if %{with xkbcommon} && %{with x} %package plugin-platforminputcontext-compose Summary: Compose input context platform plugin Group: Base/Libraries @@ -284,6 +309,17 @@ Requires: %{name}-qtcore = %{version}-%{release} %description plugin-platforminputcontext-compose This package contains compose platform inputcontext plugin +%endif + +%if %{with tizenscim} +%package plugin-platform-inputcontext-tizenscim +Summary: tizenscim input context platform plugin +Group: Qt/Qt +Requires: %{name}-qtcore = %{version}-%{release} + +%description plugin-platform-inputcontext-tizenscim +This package contains tizenscim platform inputcontext plugin +%endif %package plugin-generic-evdev Summary: The evdev generic plugin @@ -369,7 +405,7 @@ Summary: Development files for QtOpenGL Group: Base/Libraries Requires: %{name}-qtopengl = %{version}-%{release} Requires: pkgconfig(gles20) -%if "%{profile}" != "mobile" +%if %{with egl} Requires: pkgconfig(egl) %endif @@ -541,6 +577,9 @@ MAKEFLAGS=%{?_smp_mflags} \ -platform devices/linux-g++-tizen \ %if "%{profile}" != "" -device-option TIZEN_PROFILE=%{profile} \ +%if "%_repository" == "emulator" + -device-option TIZEN_EMULATOR=1 \ +%endif %endif %if %{with wayland} -device-option QT_QPA_DEFAULT_PLATFORM=wayland \ @@ -1010,13 +1049,22 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos %defattr(-,root,root,-) %{_libdir}/qt5/plugins/sqldrivers/libqsqlite.so +%if %{with ibus} %files plugin-platforminputcontext-ibus %defattr(-,root,root,-) %{_libdir}/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so - +%endif +%if %{with xkbcommon} && %{with x} %files plugin-platforminputcontext-compose %defattr(-,root,root,-) %{_libdir}/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so +%endif + +%if %{with tizenscim} +%files plugin-platform-inputcontext-tizenscim +%defattr(-,root,root,-) +%{_libdir}/qt5/plugins/platforminputcontexts/libtizenscimplatforminputcontextplugin.so +%endif %files plugin-generic-evdev %defattr(-,root,root,-) |