Name: libmm-camcorder
Summary: Camera and recorder library
-Version: 0.10.9
+Version: 0.10.45
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Requires(post): /usr/bin/vconftool
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gstreamer-wayland-1.0)
BuildRequires: pkgconfig(wayland-client)
%endif
-BuildRequires: pkgconfig(sndfile)
-BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(vconf)
-BuildRequires: gstreamer-devel
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(storage)
-BuildRequires: pkgconfig(cynara-client)
+BuildRequires: pkgconfig(murphy-resource)
+BuildRequires: pkgconfig(murphy-glib)
+BuildRequires: pkgconfig(ttrace)
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: pkgconfig(dpm)
%description
-Camera and recorder library.
+Camera and recorder function supported library.
%package devel
-Summary: Camera and recorder development library
+Summary: Camera and recorder library for development
Group: libdevel
Version: %{version}
Requires: %{name} = %{version}-%{release}
%description devel
-Camera and recorder development library.
+Camera and recorder function supported library for development.
%prep
%build
%if %{with wayland}
-export CFLAGS+=" -DHAVE_WAYLAND"
+export CFLAGS+=" -DHAVE_WAYLAND -DGST_USE_UNSTABLE_API"
%endif
-export CFLAGS+=" -D_LARGEFILE64_SOURCE"
+export CFLAGS+=" -D_LARGEFILE64_SOURCE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
./autogen.sh
%configure \
%if %{with wayland}
make %{?jobs:-j%jobs}
%install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}%{_datadir}/license
+cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
%make_install
%post
/sbin/ldconfig
-vconftool set -t int memory/camera/state 0 -i -u 5000 -s system::vconf_multimedia
-vconftool set -t int memory/camera/pid 0 -i -u 5000 -s system::vconf_multimedia
-vconftool set -t int memory/camera/flash_state 0 -i -u 5000 -s system::vconf_multimedia
-vconftool set -t int memory/recorder/state 0 -i -u 5000 -s system::vconf_multimedia
-vconftool set -t int memory/recorder/pid 0 -i -u 5000 -s system::vconf_multimedia
-vconftool set -t int file/camera/shutter_sound_policy 0 -u 5000 -s system::vconf_inhouse
-
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/*.so.*
-/usr/share/sounds/mm-camcorder/*
+%{_datadir}/sounds/mm-camcorder/*
%{_datadir}/license/%{name}
%files devel
%defattr(-,root,root,-)
%{_includedir}/mmf/mm_camcorder.h
-%if %{with wayland}
-%{_includedir}/mmf/mm_camcorder_mused.h
-%endif
%{_libdir}/pkgconfig/mm-camcorder.pc
%{_libdir}/*.so