Spec file simplified
authorTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:06 +0000 (15:42 +0100)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:06 +0000 (15:42 +0100)
Removed references to Tizen 2.1 version. Now with Tizen 2.3 we can use egl for
every profile unconditionally.

Change-Id: Iac1384b6955b2cc8c4459d6a93378b5719100418
Bug-Tizen: TIVI-2416
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
packaging/qt5.spec

index 8e9370861d1e9354b377e78c7fd7cfd37357d132..3ffcf42733233d4be2e1c64aa97786de4a2739fe 100644 (file)
 # installed-but-unpackaged static libs.
 # This flag tells rpmbuild to behave.
 
-%if "%{tizen}" == "2.1"
+%if "%{tizen_version_major}" < "3"
 %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" && "%{tizen_version_major}" < "3"
-%define _with_tizenscim 1
-%endif
-
-%if "%{profile}" != "wearable"
+%if "%{profile}" != "wearable" && "%{tizen_version_major}" < "3"
 %define _with_cups 1
-%define _with_xscrnsaver 1
-%endif
-
-%if "%{profile}" != "wearable" && "%{profile}" != "mobile" && "%{tizen_version_major}" > "2"
-%define _with_egl 1
 %endif
 
-%bcond_with egl
 %bcond_with tizenscim
 %bcond_with xkbcommon
 %bcond_with wayland
@@ -119,9 +100,7 @@ BuildRequires:  pkgconfig(fontconfig)
 BuildRequires:  pkgconfig(xkbcommon)
 BuildRequires:  pkgconfig(xkeyboard-config)
 %endif
-%if %{with egl}
 BuildRequires:  pkgconfig(egl)
-%endif
 %if %{with tizenscim}
 BuildRequires:  pkgconfig(scim)
 %endif
@@ -432,9 +411,7 @@ Summary:    Development files for QtOpenGL
 Group:      Base/Libraries
 Requires:   %{name}-qtopengl = %{version}-%{release}
 Requires:   pkgconfig(gles20)
-%if %{with egl}
 Requires:   pkgconfig(egl)
-%endif
 
 
 %description qtopengl-devel
@@ -620,7 +597,7 @@ MAKEFLAGS=%{?_smp_mflags} \
     -device-option TIZEN_EMULATOR=1 \
 %endif
 %if %{with tizenscim}
-    -device-option DEFINES+=TIZEN_SCIM=1
+    -device-option DEFINES+=TIZEN_SCIM=1 \
 %endif
 %endif
 %if %{with wayland}