spec: apply tv profile option
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 3 Dec 2018 07:18:36 +0000 (16:18 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 3 Dec 2018 07:18:38 +0000 (16:18 +0900)
- sync with tv product code

Change-Id: Ie59282b3fdef8f280dc3fade3f2af21012766e4e

packaging/gst-plugins-ugly.spec

index 08d4f7e..d002dee 100644 (file)
@@ -12,7 +12,9 @@ BuildRequires:  which
 BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
 BuildRequires:  pkgconfig(gstreamer-1.0)
 BuildRequires:  pkgconfig(glib-2.0)
+%if "%{tizen_profile_name}" != "tv"
 BuildRequires:  pkgconfig(opencore-amrnb)
+%endif
 BuildRequires:  pkgconfig(opencore-amrwb)
 
 %description
@@ -33,8 +35,21 @@ BuildRequires:  pkgconfig(opencore-amrwb)
 %build
 export V=1
 NOCONFIGURE=1 ./autogen.sh
-export CFLAGS=" -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2"
+
+export CFLAGS="\
+%if "%{tizen_profile_name}" == "tv"
+       -DTIZEN_FEATURE_TRUSTZONE\
+%endif
+       -fstack-protector-strong\
+       -Wl,-z,relro\
+       -D_FORTIFY_SOURCE=2"
+
 %configure \
+%if "%{tizen_profile_name}" == "tv"
+ --disable-amrnb\
+ --disable-asfdemux\
+ --disable-lame\
+%endif
  --disable-static\
  --disable-nls\
  --with-html-dir=/tmp/dump\
@@ -66,9 +81,11 @@ make %{?jobs:-j%jobs}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %license COPYING
+%if "%{tizen_profile_name}" != "tv"
 %{_libdir}/gstreamer-1.0/libgstasf.so
 %{_libdir}/gstreamer-1.0/libgstamrnb.so
-%{_libdir}/gstreamer-1.0/libgstamrwbdec.so
 %exclude %{_datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs
+%endif
+%{_libdir}/gstreamer-1.0/libgstamrwbdec.so