From e5e0c0d5dd01b709c673d4ae32ff57bf854e0a7e Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 3 Dec 2018 16:18:36 +0900 Subject: [PATCH] spec: apply tv profile option - sync with tv product code Change-Id: Ie59282b3fdef8f280dc3fade3f2af21012766e4e --- packaging/gst-plugins-ugly.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/packaging/gst-plugins-ugly.spec b/packaging/gst-plugins-ugly.spec index 08d4f7ec..d002dee5 100644 --- a/packaging/gst-plugins-ugly.spec +++ b/packaging/gst-plugins-ugly.spec @@ -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 -- 2.34.1