Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.138
+Version: 0.6.247
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
-BuildRequires: pkgconfig(mmutil-imgp)
+BuildRequires: pkgconfig(mmutil-common)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(capi-media-tool)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(libtbm)
-%if 0%{?gtests:1}
+%if "%{gtests}" == "1"
BuildRequires: pkgconfig(gmock)
%endif
%build
export CFLAGS+=" -Wall -DTIZEN_DEBUG -D_FILE_OFFSET_BITS=64 -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
+export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
+
%if %{with x}
export CFLAGS+=" -DHAVE_X11"
%endif
LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
+
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+
./autogen.sh
# always enable sdk build. This option should go away
#CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --enable-sdk --prefix=%{_prefix} --disable-static
%configure \
-%if 0%{?gtests:1}
+%if "%{gtests}" == "1"
--enable-tests \
%endif
---disable-static \
---enable-wayland
+--disable-static
#%__make -j1
make %{?jobs:-j%jobs}
%license LICENSE.Apache-2.0
%defattr(-,root,root,-)
%{_libdir}/*.so.*
-%if 0%{?gtests:1}
-%{_bindir}/gtest_libmm_player
+%if "%{gtests}" == "1"
+%{_bindir}/gtest-libmm-player
%endif
%files devel