-Name: capi-media-audio-io
-Summary: An Audio Input & Audio Output library in Tizen Native API
-Version: 0.3.7
-Release: 0
-Group: Multimedia/API
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-Source1001: capi-media-audio-io.manifest
+Name: capi-media-audio-io
+Summary: An Audio Input & Audio Output library in Tizen Native API
+Version: 0.5.2
+Release: 0
+Group: Multimedia/API
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+Source1001: capi-media-audio-io.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(mm-session)
BuildRequires: pkgconfig(mm-sound)
-BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(libpulse)
-Requires(post): libprivilege-control
+BuildRequires: pkgconfig(dpm)
+BuildRequires: pkgconfig(capi-system-info)
%description
An Audio Input & Audio Output library in Tizen Native API
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+ -DTIZEN_FEATURE_DISABLE_SESSION_BACKWARD_COMP=On \
+ -DTIZEN_FEATURE_PRODUCT_TV=On
+%endif
make %{?jobs:-j%jobs}
%install
%make_install
-mkdir -p %{buildroot}/usr/share/privilege-control
%post
/sbin/ldconfig
-/usr/bin/api_feature_loader --verbose --dir=/usr/share/privilege-control
%postun -p /sbin/ldconfig
%manifest %{name}.manifest
%license LICENSE
%{_libdir}/libcapi-media-audio-io.so.*
-%manifest capi-media-audio-io.manifest
%files devel
%manifest %{name}.manifest
%{_includedir}/media/audio_io.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcapi-media-audio-io.so
-#%{_prefix}/bin/audio_io_test
+%{_prefix}/bin/audio_io_test