+%bcond_with wayland
+
Name: libmm-camcorder
-Summary: camcorder library
-Version: 0.5.5
-Release: 1
-Group: libs
-License: Samsung
-URL: N/A
+Summary: Camera and recorder library
+Version: 0.10.45
+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(mm-sound)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(mmutil-imgp)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(mmutil-jpeg)
+BuildRequires: pkgconfig(gstreamer-base-1.0)
+BuildRequires: pkgconfig(gstreamer-video-1.0)
+BuildRequires: pkgconfig(gstreamer-app-1.0)
+%if %{with wayland}
+BuildRequires: pkgconfig(gstreamer-wayland-1.0)
+BuildRequires: pkgconfig(wayland-client)
+%endif
BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(mm-log)
-BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
-BuildRequires: pkgconfig(mm-ta)
-BuildRequires: pkgconfig(mm-session)
-BuildRequires: pkgconfig(audio-session-mgr)
-BuildRequires: pkgconfig(gstreamer-floatcast-0.10)
-BuildRequires: pkgconfig(gstreamer-check-0.10)
-BuildRequires: pkgconfig(camsrcjpegenc)
-BuildRequires: gst-plugins-base-devel
+BuildRequires: pkgconfig(libtbm)
+BuildRequires: pkgconfig(storage)
+BuildRequires: pkgconfig(murphy-resource)
+BuildRequires: pkgconfig(murphy-glib)
+BuildRequires: pkgconfig(ttrace)
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: pkgconfig(dpm)
%description
-camcorder library.
+Camera and recorder function supported library.
%package devel
-Summary: camcorder development library
+Summary: Camera and recorder library for development
Group: libdevel
Version: %{version}
Requires: %{name} = %{version}-%{release}
-%description devel
-camcorder development library.
+%description devel
+Camera and recorder function supported library for development.
%prep
-%setup -q
+%setup -q
%build
+%if %{with wayland}
+export CFLAGS+=" -DHAVE_WAYLAND -DGST_USE_UNSTABLE_API"
+%endif
+export CFLAGS+=" -D_LARGEFILE64_SOURCE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
./autogen.sh
-%configure --disable-static
+%configure \
+%if %{with wayland}
+ --enable-wayland \
+%endif
+ --disable-static
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_datadir}/license
+cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
%make_install
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
+%manifest libmm-camcorder.manifest
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/*.so.*
-%{_datadir}/edje/*
-/usr/share/sounds/mm-camcorder/*
+%{_datadir}/sounds/mm-camcorder/*
+%{_datadir}/license/%{name}
%files devel
%defattr(-,root,root,-)