%if "%{tizen}" == "2.1"
%define profile mobile
+%endif
+
+#no better way currently
+%if "%{tizen}" == "2.3"
+%define profile wearable
+%endif
+
+%if "%{tizen}" == "2.1" || "%{tizen}" == "2.3"
%define _with_x 1
%define xkb_config_root -xkb-config-root /etc/X11/xkb
%define _force_eglx 1
%define xkb_config_root %{nil}
%endif
+
%if "%{profile}" == "mobile"
%define _with_tizenscim 1
-%else
+%endif
+
+%if "%{profile}" != "wearable"
+%define _with_cups 1
+%define _with_xscrnsaver 1
+%endif
+
+%if "%{profile}" != "wearable" && "%{profile}" != "mobile"
%define _with_egl 1
%endif
%bcond_with xkbcommon
%bcond_with wayland
%bcond_with x
+%bcond_with cups
+%bcond_with xscrnsaver
# Version is the date of latest commit in qtbase, followed by 'g' + few
# characters of the last git commit ID.
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(mtdev)
+%if %{with cups}
BuildRequires: cups-devel
+%endif
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrender)
+%if %{with xscrnsaver}
BuildRequires: pkgconfig(xscrnsaver)
%endif
+%endif
%description
%endif
+%if %{with cups}
%package plugin-printsupport-cups
Summary: CUPS print support plugin
Group: Base/Libraries
%description plugin-printsupport-cups
This package contains the CUPS print support plugin
+%endif
%package plugin-accessible-widgets
Summary: Accessible widgets plugin
%endif
+%if %{with cups}
%files plugin-printsupport-cups
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/printsupport/libcupsprintersupport.so
+%endif
%files plugin-accessible-widgets
%defattr(-,root,root,-)