Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.12.13
+Version: 0.12.54
Release: 0
Group: System/Libraries
License: Apache-2.0
%if "%{tizen_profile_name}" == "tv"
BuildRequires: pkgconfig(lwipc)
%endif
-%ifarch %{arm}
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
%endif
%description
--enable-prelink \
--enable-lwipc \
%endif
- --prefix=/usr --enable-pulse --enable-focus
+%if 0%{?gtests:1}
+ --enable-unittests \
+%endif
+ --prefix=/usr --enable-pulse
make %{?_smp_mflags}
%if "%{tizen_profile_name}" == "tv"
mkdir -p %{buildroot}%{_sysconfdir}/notstrip
install -m0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/notstrip/libmm-sound.notstrip
-install -d %{buildroot}%{_unitdir}/sysinit.target.wants
-%else
-install -d %{buildroot}%{_unitdir}/multi-user.target.wants
%endif
+install -d %{buildroot}%{_unitdir}/paths.target.wants
install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/
install -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/
-%if "%{tizen_profile_name}" == "tv"
-ln -sf ../focus-server.path %{buildroot}%{_unitdir}/sysinit.target.wants/focus-server.path
-%else
-ln -sf ../focus-server.path %{buildroot}%{_unitdir}/multi-user.target.wants/focus-server.path
-%endif
+ln -sf ../focus-server.path %{buildroot}%{_unitdir}/paths.target.wants/focus-server.path
%post
/sbin/ldconfig
%endif
%if "%{tizen_profile_name}" == "tv"
%{_sysconfdir}/notstrip/libmm-sound.notstrip
-%{_unitdir}/sysinit.target.wants/focus-server.path
-%else
-%{_unitdir}/multi-user.target.wants/focus-server.path
%endif
+%{_unitdir}/paths.target.wants/focus-server.path
%{_unitdir}/focus-server.service
%{_unitdir}/focus-server.path
/usr/share/sounds/sound-server/*
/etc/dbus-1/system.d/focus-server.conf
%{_datadir}/dbus-1/system-services/org.tizen.SoundServer.service
%{_unitdir}/sound-server.service
+%if 0%{?gtests:1}
+%{_bindir}/gtest-libmm-sound
+%endif
%files devel
%defattr(-,root,root,-)
%{_libdir}/libmmfsound.so
%{_libdir}/libmmfsoundcommon.so
%{_includedir}/mmf/mm_sound_private.h
+%exclude %{_includedir}/mmf/mm_sound_focus_socket.h
+%exclude %{_includedir}/mmf/mm_sound_focus_private.h
%exclude %{_includedir}/mmf/mm_sound_pa_client.h
%files sdk-devel
%{_includedir}/mmf/mm_sound_focus.h
%{_includedir}/mmf/mm_sound_device.h
%exclude %{_includedir}/mmf/mm_sound_focus_socket.h
+%exclude %{_includedir}/mmf/mm_sound_focus_private.h
%exclude %{_includedir}/mmf/mm_sound_pa_client.h
%{_libdir}/pkgconfig/mm-keysound.pc
%{_libdir}/pkgconfig/mm-bootsound.pc