Name: libmm-camcorder
Summary: Camera and recorder library
-Version: 0.10.171
+Version: 0.10.262
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(mmutil-jpeg)
+BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-allocators-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(storage)
%if "%{tizen_profile_name}" == "tv"
BuildRequires: pkgconfig(tv-resource-manager)
+BuildRequires: pkgconfig(tv-resource-information)
BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(resource-center-api)
+%if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator"))
+BuildRequires: pkgconfig(camera-conf-mgr-tv)
+%endif
%else
BuildRequires: pkgconfig(mm-resource-manager)
%endif
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(dpm)
BuildRequires: pkgconfig(dlog)
+%if "%{gtests}" == "1"
+BuildRequires: pkgconfig(gmock)
+%endif
%description
Camera and recorder function supported library.
%build
-export CFLAGS+=" -D_LARGEFILE64_SOURCE -DGST_USE_UNSTABLE_API -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+export CFLAGS+=" -D_LARGEFILE64_SOURCE -DGST_USE_UNSTABLE_API -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
./autogen.sh
%configure \
%if "%{tizen_profile_name}" == "tv"
--enable-rm \
--enable-product-tv \
+%if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator"))
+ --enable-camera-conf-mgr-tv \
+%endif
%else
--enable-mm-resource-manager \
%endif
+%if "%{gtests}" == "1"
+ --enable-gtests \
+%endif
--disable-static
make %{?jobs:-j%jobs}
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%{_datadir}/sounds/mm-camcorder/*
+%if "%{gtests}" == "1"
+%{_bindir}/gtests-libmm-camcorder
+%endif
%files devel
%defattr(-,root,root,-)