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
%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\
%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