Summary: Digium's Skype For Asterisk
Name: asterisk-skype
Version: 1.0.6
-Release: 1
+Release: 2
License: Proprietary
Group: Applications/System
Source0: %{dl_url}/x86-32/skypeforasterisk-%{asterisk_ver}_%{version}-x86_32.tar.gz
%define _sysconfdir /etc/asterisk
%define moduledir %{_libdir}/asterisk/modules
+%define spooldir %{_localstatedir}/spool/asterisk/skype
%description
Skype For Asterisk (SFA) is the first and only native channel driver
%prep
%ifarch %{ix86}
-%setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_64 -b0
+%setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_32 -b0
%endif
%ifarch %{x8664}
%setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_64 -b1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir},%{spooldir}/data}
%{__make} install samples \
DESTDIR=$RPM_BUILD_ROOT
%attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chan_skype.conf
%attr(755,root,root) %{moduledir}/chan_skype.so
%attr(755,root,root) %{moduledir}/res_skypeforasterisk.so
+%dir %attr(770,root,asterisk) %{spooldir}
+%dir %attr(770,root,asterisk) %{spooldir}/data