Name: pulseaudio
Summary: Improved Linux sound server
Version: 5.0
-Release: 86
+Release: 87
Group: Multimedia/Audio
License: LGPL-2.1+
URL: http://pulseaudio.org
%endif
%build
-export CFLAGS="%{optflags} -fno-strict-aliasing -D__TIZEN__ -D__TIZEN_BT__ -D__TIZEN_LOG__ -DTIZEN_MICRO -DBLUETOOTH_APTX_SUPPORT"
+export CFLAGS="%{optflags} -fno-strict-aliasing -D__TIZEN__ -D__TIZEN_BT__ -D__TIZEN_LOG__ -DBLUETOOTH_APTX_SUPPORT"
%if 0%{?sec_build_binary_debug_enable}
export CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%endif
+%if "%{?tizen_profile_name}" == "mobile"
+echo "tizen profile mobile"
+export CFLAGS+=" -DTIZEN_PROFILE_MOBILE "
+%endif
+
%if "%{?tizen_profile_name}" == "wearable"
echo "tizen profile werable"
-export CFLAGS+=" -DTIZEN_MICRO -DPM_ASYNC -DADJUST_ANDROID_BITPOOL"
+export CFLAGS+=" -DTIZEN_PROFILE_WEARABLE -DADJUST_ANDROID_BITPOOL"
+%endif
-%else if "%{?tizen_profile_name}" == "tv"
+%if "%{?tizen_profile_name}" == "tv"
echo "tizen profile tv"
-export CFLAGS+=" -DTIZEN_TV "
-
-%else if "%{?tizen_profile_name}" == "mobile"
-echo "tizen profile mobile"
-export CFLAGS+=" -DTIZEN_MOBILE -DPM_ASYNC "
+export CFLAGS+=" -DTIZEN_PROFILE_TV "
%endif
export LD_AS_NEEDED=0
#include <pulsecore/cpu-x86.h>
#include <pulsecore/cpu-orc.h>
-#ifdef USE_LWIPC
+#if defined (TIZEN_PROFILE_TV) && defined (USE_LWIPC)
#include <lwipc.h>
#endif
#include "cmdline.h"
#ifdef __TIZEN__
#define PA_READY "/tmp/.pa_ready"
-#ifdef TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
#ifdef USE_LWIPC
#define PULSEAUDIO_READY "pulseaudio_ready"
#else
#ifdef __TIZEN__
int fd_pa_ready = -1;
-#ifdef TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
int fd_pulseaudio_ready = -1;
#endif
#endif /* __TIZEN__ */
/* broadcast if we're ready */
if ((fd_pa_ready = creat(PA_READY, 0644)) != -1)
close(fd_pa_ready);
-#ifdef TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
#ifdef USE_LWIPC
if (LwipcEventDone(PULSEAUDIO_READY) < 0)
pa_log_error("cannot create PULSEAUDIO_READY(pulseaudio_ready)");