Fix build error with TV profile
[platform/upstream/gst-plugins-good.git] / packaging / gst-plugins-good.spec
index c0802d0..520cac0 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:           gst-plugins-good
 Version:        1.6.1
-Release:        14
+Release:        17
 License:        LGPL-2.1+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/
@@ -35,7 +35,9 @@ BuildRequires:  pkgconfig(xv)
 %endif
 
 BuildRequires:  pkgconfig(zlib)
+%if "%{TIZEN_PRODUCT_TV}" != "1"
 BuildRequires:  pkgconfig(libv4l2)
+%endif
 BuildRequires:  pkgconfig(vconf)
 Requires:       gst-plugins-base >= 1.0.0
 Requires:       gstreamer >= 1.0.5
@@ -74,12 +76,17 @@ export CFLAGS+=" -DTIZEN_FEATURE_V4L2SRC_MODIFICATION\
                -DTIZEN_FEATURE_QTDEMUX_MODIFICATION\
                -DTIZEN_FEATURE_FLVDEMUX_MODIFICATION\
                -DTIZEN_FEATURE_GST_UPSTREAM\
-               -DTIZEN_FEATURE_GST_MUX_ENHANCEMENT"
+                -DTIZEN_FEATURE_RTSP_MODIFICATION\
+               -DTIZEN_FEATURE_GST_MUX_ENHANCEMENT\
+               -DTIZEN_FEATURE_SOUP_MODIFICATION\
+               -DTIZEN_FEATURE_BASEPARSE_MODIFICATION"
 %configure\
 %if ! 0%{?ENABLE_AALIB}
        --disable-aalib\
 %endif
+%if "%{TIZEN_PRODUCT_TV}" != "1"
        --with-libv4l2 \
+%endif
        --disable-gtk-doc\
        --with-gtk=3.0\
        --disable-monoscope\
@@ -87,10 +94,7 @@ export CFLAGS+=" -DTIZEN_FEATURE_V4L2SRC_MODIFICATION\
        --disable-taglib\
        --disable-wavpack\
        --enable-experimental\
-%if "%_repository" == "target-circle"
-       --disable-gst_v4l2\
-%endif
-%if "%{?profile}" == "tv"
+%if "%{TIZEN_PRODUCT_TV}" == "1"
        --disable-equalizer\
        --disable-flv\
        --disable-videobox\
@@ -174,13 +178,11 @@ make %{?_smp_mflags} CFLAGS+="-Wno-error" CXXFLAGS+="-Wno-error"
 #%{_libdir}/gstreamer-%{gst_branch}/libgstspectrum.so
 #%{_libdir}/gstreamer-%{gst_branch}/libgstspeex.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstudp.so
-%if "%_repository" != "target-circle"
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideo4linux2.so
-%endif
 
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideocrop.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideofilter.so
-%if "%{?profile}" != "tv"
+%if "%{TIZEN_PRODUCT_TV}" != "1"
 %{_libdir}/gstreamer-%{gst_branch}/libgstflv.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstequalizer.so
 %{_datadir}/gstreamer-%{gst_branch}/presets/GstIirEqualizer10Bands.prs