Name: libmm-camcorder Summary: Camera and recorder library Version: 1.3.2 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(mm-common) 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(gstreamer-app-1.0) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(storage) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(resource-center-api) %if "%{tizen_profile_name}" == "tv" BuildRequires: pkgconfig(tv-resource-manager) BuildRequires: pkgconfig(tv-resource-information) BuildRequires: pkgconfig(capi-boost-tv) %if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator")) BuildRequires: pkgconfig(camera-conf-mgr-tv) %endif %else BuildRequires: pkgconfig(resource-manager) BuildRequires: pkgconfig(resource-information) %endif BuildRequires: pkgconfig(ttrace) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(dpm) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(hal-api-camera) %if "%{gtests}" == "1" BuildRequires: pkgconfig(gmock) %endif %description Camera and recorder function supported library. %package devel Summary: Camera and recorder library for development Group: libdevel Version: %{version} Requires: %{name} = %{version}-%{release} %description devel Camera and recorder function supported library for development. %prep %setup -q %build %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 \ --enable-boost \ %if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator")) --enable-camera-conf-mgr-tv \ %endif %else --enable-rm-common \ %endif %if "%{gtests}" == "1" --enable-gtests \ %endif --disable-static make %{?jobs:-j%jobs} %install %make_install %post /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest libmm-camcorder.manifest %license LICENSE.APLv2 %defattr(-,root,root,-) %{_libdir}/*.so.* %{_datadir}/sounds/mm-camcorder/* %if "%{gtests}" == "1" %{_bindir}/gtests-libmm-camcorder %endif %files devel %defattr(-,root,root,-) %{_includedir}/mmf/mm_camcorder.h %{_libdir}/pkgconfig/mm-camcorder.pc %{_libdir}/*.so