Name: libmm-sound Summary: MMSound Package contains client lib and sound_server binary Version: 0.10.72 Release: 0 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source3: sound-server.conf Source4: focus-server.service Source5: focus-server.path Source6: focus-server.conf Requires: security-config %if "%{?tizen_profile_name}" == "tv" 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(lwipc) %endif %ifarch %{arm} %endif BuildRequires: pkgconfig(libtremolo) %description MMSound Package contains client lib and sound_server binary for sound system %package devel Summary: MMSound development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel MMSound development package for sound system %package sdk-devel Summary: MMSound development package Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description sdk-devel MMSound development package for sound system %package tool Summary: MMSound utility package - contians mm_sound_testsuite, sound_check Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description tool MMSound utility package - contians mm_sound_testsuite, sound_check for sound system %prep %setup -q %build %define tizen_audio_feature_ogg_enable 1 %if "%{?tizen_profile_name}" == "tv" %define tizen_audio_feature_bluetooth_enable 0 %else %define tizen_audio_feature_bluetooth_enable 1 %endif CFLAGS="%{optflags} -fvisibility=hidden -D_TIZEN_PUBLIC_ -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ;export CFLAGS %if "%{?tizen_profile_name}" == "wearable" CFLAGS+=" -DTIZEN_MICRO";export CFLAGS %endif %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" --enable-prelink \ --enable-lwipc \ %endif --prefix=/usr --enable-pulse --enable-focus 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_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_profile_name}" == "tv" install -d %{buildroot}%{_unitdir}/sysinit.target.wants %else install -d %{buildroot}%{_unitdir}/multi-user.target.wants %endif 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 %post /sbin/ldconfig %postun -p /sbin/ldconfig %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 %{_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_profile_name}" == "tv" %{_unitdir}/sysinit.target.wants/focus-server.path %else %{_unitdir}/multi-user.target.wants/focus-server.path %endif %{_unitdir}/focus-server.service %{_unitdir}/focus-server.path /usr/share/sounds/sound-server/* %{_datadir}/license/%{name} %{_datadir}/license/libmm-sound-tool /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 %files devel %defattr(-,root,root,-) %{_libdir}/libmmfkeysound.so %{_libdir}/libmmfbootsound.so %{_libdir}/libmmfsound.so %{_libdir}/libmmfsoundcommon.so %{_includedir}/mmf/mm_sound_private.h %exclude %{_includedir}/mmf/mm_sound_pa_client.h %files sdk-devel %defattr(-,root,root,-) %{_includedir}/mmf/mm_sound.h %{_includedir}/mmf/mm_sound_focus.h %{_includedir}/mmf/mm_sound_device.h %exclude %{_includedir}/mmf/mm_sound_pa_client.h %{_libdir}/pkgconfig/mm-keysound.pc %{_libdir}/pkgconfig/mm-bootsound.pc %{_libdir}/pkgconfig/mm-sound.pc %files tool %manifest libmm-sound-tool.manifest %defattr(-,root,root,-) %{_bindir}/mm_sound_testsuite