Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.10.91
+Version: 0.12.6
Release: 0
Group: System/Libraries
License: Apache-2.0
Source5: focus-server.path
Source6: focus-server.conf
Requires: security-config
-%if "%{?tizen_profile_name}" == "tv"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
+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)
+BuildRequires: pkgconfig(sndfile)
%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
%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
+CFLAGS="%{optflags} -fvisibility=hidden -D_TIZEN_PUBLIC_ -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ;export CFLAGS
-%if "%{?tizen_profile_name}" == "wearable"
- CFLAGS+=" -DTIZEN_MICRO";export CFLAGS
-%endif
-%if "%{?tizen_profile_name}" == "tv"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
CFLAGS+=" -DTIZEN_TV";export CFLAGS
%endif
./autogen.sh
%configure \
-%if 0%{?tizen_audio_feature_ogg_enable}
- --enable-ogg \
- --with-plugindir=%{_libdir}/soundplugins/ \
-%endif
+ --with-plugindir=%{_libdir}/soundplugins \
%if "%{?TIZEN_PRODUCT_TV}" == "1"
--enable-prelink \
--enable-lwipc \
%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"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
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"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
+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 %{SOURCE4} %{buildroot}%{_unitdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/
-%if "%{?tizen_profile_name}" == "tv"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
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_profile_name}" == "tv"
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
+%{_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
%{_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_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