From: Eunhae Choi Date: Mon, 3 Dec 2018 07:18:36 +0000 (+0900) Subject: spec: apply tv profile option X-Git-Tag: submit/tizen/20190308.025958~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5e0c0d5dd01b709c673d4ae32ff57bf854e0a7e;p=platform%2Fupstream%2Fgst-plugins-ugly.git spec: apply tv profile option - sync with tv product code Change-Id: Ie59282b3fdef8f280dc3fade3f2af21012766e4e --- 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