]> git.pld-linux.org Git - packages/asterisk-skype.git/blob - asterisk-skype.spec
8b76f5d68c54be43f1e160506062d27e06c2f66f
[packages/asterisk-skype.git] / asterisk-skype.spec
1 %define         dl_url  http://downloads.digium.com/pub/telephony/skypeforasterisk/asterisk-%{asterisk_ver}/
2 %define         asterisk_ver    1.6.1
3 Summary:        Digium's Skype For Asterisk
4 Name:           asterisk-skype
5 Version:        1.0.6
6 Release:        0.1
7 License:        Proprietary
8 Group:          Applications/System
9 Source0:        %{dl_url}/x86-32/skypeforasterisk-%{asterisk_ver}_%{version}-x86_32.tar.gz
10 # NoSource0-md5:        956264998c994f184fc7310aae63d2d4
11 NoSource:       0
12 Source1:        %{dl_url}/x86-64/skypeforasterisk-%{asterisk_ver}_%{version}-x86_64.tar.gz
13 # NoSource1-md5:        18050344e5ed4edcf03953a863d248e7
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}
19 ExclusiveArch:  %{ix86} %{x8664}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sysconfdir     /etc/asterisk
23 %define         moduledir       %{_libdir}/asterisk/modules
24
25 %description
26 Skype For Asterisk (SFA) is the first and only native channel driver
27 to connect Asterisk to the Skype network. The channel driver supports
28 an unlimited number of simultaneous users and an unlimited number of
29 simultaneous calls per user (subject to license key restriction).
30
31 Please visit the following web address to read more about this product
32 and to purchase license keys: <http://www.digium.com/skype/>.
33
34 %prep
35 %ifarch %{ix86}
36 %setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_64 -b0
37 %endif
38 %ifarch %{x8664}
39 %setup -qT -n skypeforasterisk-%{asterisk_ver}_%{version}-x86_64 -b1
40 %endif
41
42 %{__sed} -i -e '
43 s,%{_prefix}/lib/asterisk,%{_libdir}/asterisk,
44         s,gcc,$(CC),g
45         s,-pipe -O3,$(CFLAGS),g
46 ' Makefile
47
48 %build
49 %{__make} \
50         CC="%{__cc}" \
51         CFLAGS="%{rpmcflags}"
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
56 %{__make} install samples \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README chan_skype.conf.sample
65 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chan_skype.conf
66 %attr(755,root,root) %{moduledir}/chan_skype.so
67 %attr(755,root,root) %{moduledir}/res_skypeforasterisk.so
This page took 0.034276 seconds and 2 git commands to generate.