-Name: capi-media-audio-io
-Summary: An Audio Input & Audio Output library in Tizen Native API
-Version: 0.2.0
-Release: 0
-Group: TO_BE/FILLED_IN
-License: TO BE FILLED IN
-Source0: %{name}-%{version}.tar.gz
+Name: capi-media-audio-io
+Summary: An Audio Input & Audio Output library in Tizen Native API
+Version: 0.3.28
+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)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
+BuildRequires: pkgconfig(libpulse)
%description
An Audio Input & Audio Output library in Tizen Native API
%package devel
Summary: An Audio Input & Audio Output library in Tizen Native API (Development)
-Group: TO_BE/FILLED_IN
+Group: Multimedia/Development
Requires: %{name} = %{version}-%{release}
%description devel
%prep
%setup -q
-
+cp %{SOURCE1001} .
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
-
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
%postun -p /sbin/ldconfig
-
%files
+%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