]>
Commit | Line | Data |
---|---|---|
986b03fd | 1 | %define dl_url http://downloads.digium.com/pub/telephony/skypeforasterisk/asterisk-%{asterisk_ver}/ |
c4e02f98 | 2 | %define asterisk_ver 1.6.2.0 |
986b03fd ER |
3 | Summary: Digium's Skype For Asterisk |
4 | Name: asterisk-skype | |
c4e02f98 ER |
5 | Version: 1.0.9.2 |
6 | Release: 1 | |
986b03fd ER |
7 | License: Proprietary |
8 | Group: Applications/System | |
9 | Source0: %{dl_url}/x86-32/skypeforasterisk-%{asterisk_ver}_%{version}-x86_32.tar.gz | |
c4e02f98 | 10 | # NoSource0-md5: d65978a7d7a21762b15ac8d792b54324 |
986b03fd ER |
11 | NoSource: 0 |
12 | Source1: %{dl_url}/x86-64/skypeforasterisk-%{asterisk_ver}_%{version}-x86_64.tar.gz | |
c4e02f98 | 13 | # NoSource1-md5: 5de92df856eab0ccab02a8581f32ece3 |
986b03fd ER |
14 | NoSource: 1 |
15 | URL: http://www.digium.com/skype/ | |
16 | BuildRequires: asterisk-devel >= %{asterisk_ver} | |
17 | BuildRequires: sed >= 4.0 | |
18 | Requires: asterisk >= %{asterisk_ver} | |
f4e559ad | 19 | Requires: group(asterisk) |
986b03fd ER |
20 | ExclusiveArch: %{ix86} %{x8664} |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _sysconfdir /etc/asterisk | |
24 | %define moduledir %{_libdir}/asterisk/modules | |
a22e2614 | 25 | %define spooldir %{_localstatedir}/spool/asterisk/skype |
986b03fd ER |
26 | |
27 | %description | |
28 | Skype For Asterisk (SFA) is the first and only native channel driver | |
29 | to connect Asterisk to the Skype network. The channel driver supports | |
30 | an unlimited number of simultaneous users and an unlimited number of | |
31 | simultaneous calls per user (subject to license key restriction). | |
32 | ||
33 | Please visit the following web address to read more about this product | |
34 | and to purchase license keys: <http://www.digium.com/skype/>. | |
35 | ||
36 | %prep | |
37 | %ifarch %{ix86} | |
a22e2614 | 38 | %setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_32 -b0 |
986b03fd ER |
39 | %endif |
40 | %ifarch %{x8664} | |
41 | %setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_64 -b1 | |
42 | %endif | |
43 | ||
44 | %{__sed} -i -e ' | |
45 | s,%{_prefix}/lib/asterisk,%{_libdir}/asterisk, | |
46 | s,gcc,$(CC),g | |
47 | s,-pipe -O3,$(CFLAGS),g | |
48 | ' Makefile | |
49 | ||
50 | %build | |
51 | %{__make} \ | |
52 | CC="%{__cc}" \ | |
53 | CFLAGS="%{rpmcflags}" | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
a22e2614 | 57 | install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir},%{spooldir}/data} |
986b03fd ER |
58 | %{__make} install samples \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc README chan_skype.conf.sample | |
f4e559ad | 67 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chan_skype.conf |
986b03fd ER |
68 | %attr(755,root,root) %{moduledir}/chan_skype.so |
69 | %attr(755,root,root) %{moduledir}/res_skypeforasterisk.so | |
a22e2614 ER |
70 | %dir %attr(770,root,asterisk) %{spooldir} |
71 | %dir %attr(770,root,asterisk) %{spooldir}/data |