Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.10.105
+Version: 0.12.41
Release: 0
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source2: sound-server.service
Source3: sound-server.conf
Source4: focus-server.service
Source5: focus-server.path
Source6: focus-server.conf
Requires: security-config
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%if "%{tizen_profile_name}" == "tv"
+Source7: libmm-sound.notstrip
Source8: focus-server-tv.service
%endif
Source9: org.tizen.SoundServer.service
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(mm-common)
-BuildRequires: pkgconfig(mm-log)
-BuildRequires: pkgconfig(mm-session)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(libpulse)
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+BuildRequires: pkgconfig(sndfile)
+%if "%{tizen_profile_name}" == "tv"
BuildRequires: pkgconfig(lwipc)
%endif
-%ifarch %{arm}
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
%endif
-BuildRequires: pkgconfig(libtremolo)
%description
MMSound Package contains client lib and sound_server binary for sound system
%setup -q
%build
-%define tizen_audio_feature_ogg_enable 1
-CFLAGS="%{optflags} -fvisibility=hidden -D_TIZEN_PUBLIC_ -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ;export CFLAGS
+CFLAGS="%{optflags} -fvisibility=hidden -D_TIZEN_PUBLIC_ -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ;export CFLAGS
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%if "%{tizen_profile_name}" == "tv"
CFLAGS+=" -DTIZEN_TV";export CFLAGS
%endif
./autogen.sh
%configure \
-%if 0%{?tizen_audio_feature_ogg_enable}
- --enable-ogg \
- --with-plugindir=%{_libdir}/soundplugins/ \
-%endif
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+ --with-plugindir=%{_libdir}/soundplugins \
+%if "%{tizen_profile_name}" == "tv"
--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}
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/libmm-sound-tool
mkdir -p %{buildroot}/etc/dbus-1/system.d/
cp %{SOURCE3} %{buildroot}/etc/dbus-1/system.d/sound-server.conf
cp %{SOURCE6} %{buildroot}/etc/dbus-1/system.d/focus-server.conf
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%if "%{tizen_profile_name}" == "tv"
cp %{SOURCE8} %{SOURCE4}
%endif
mkdir -p %{buildroot}/usr/share/dbus-1/system-services/
cp %{SOURCE9} %{buildroot}/usr/share/dbus-1/system-services/org.tizen.SoundServer.service
%make_install
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%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 -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/
install -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%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
%files
%manifest libmm-sound.manifest
%defattr(-,root,root,-)
-%caps(cap_chown,cap_fowner,cap_lease=eip) %{_bindir}/focus_server
-%caps(cap_chown,cap_fowner,cap_lease=eip) %{_bindir}/sound_server
+%{_bindir}/focus_server
+%{_bindir}/sound_server
%{_libdir}/libmmfsound.so.*
%{_libdir}/libmmfsoundcommon.so.*
%{_libdir}/libmmfkeysound.so.*
%{_libdir}/libmmfbootsound.so.*
-%{_libdir}/libsoundplugintone.so*
-%{_libdir}/libsoundpluginwave.so*
-%if 0%{?tizen_audio_feature_ogg_enable}
-%{_libdir}/libsoundplugintremoloogg.so*
-%endif
%{_libdir}/soundplugins/libsoundplugintone.so
%{_libdir}/soundplugins/libsoundpluginwave.so
%if 0%{?tizen_audio_feature_ogg_enable}
%{_libdir}/soundplugins/libsoundplugintremoloogg.so
%endif
-%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%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
%{_unitdir}/focus-server.service
%{_unitdir}/focus-server.path
/usr/share/sounds/sound-server/*
-%{_datadir}/license/%{name}
-%{_datadir}/license/libmm-sound-tool
+%license LICENSE.APLv2
/etc/dbus-1/system.d/sound-server.conf
/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.h
%{_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
%manifest libmm-sound-tool.manifest
%defattr(-,root,root,-)
%{_bindir}/mm_sound_testsuite
+%license LICENSE.APLv2