]>
Commit | Line | Data |
---|---|---|
94a3338c AM |
1 | %define snap 20120426 |
2 | Summary: Asterisk huawei 3g dongle channel driver | |
3 | Name: asterisk-chan_dongle | |
4 | Version: 1.1 | |
5 | Release: 0.%{snap}.1 | |
6 | License: GPL v2 | |
7 | Group: Applications | |
8 | # Source0: http://asterisk-chan-dongle.googlecode.com/files/chan_dongle-%{version}.tgz | |
9 | # svn checkout http://asterisk-chan-dongle.googlecode.com/svn/trunk/ chan_dongle | |
10 | Source0: chan_dongle-%{snap}.tar.bz2 | |
ac8eb1fb | 11 | # Source0-md5: de30dbb362a76d4783e9457c722465e8 |
39c717df | 12 | Patch0: chan_dongle-pin.patch |
94a3338c AM |
13 | URL: http://wiki.e1550.mobi/ |
14 | BuildRequires: asterisk-devel >= 1.8 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | chan_dongle is an Asterisk channel driver for Huawei UMTS/3G USB | |
19 | modems (dongles). At this moment, the supported features are: | |
20 | ||
21 | - Voice calls, dialling by modem name, group, round robin, provider | |
22 | name, IMEI or IMSI. | |
23 | - Call waiting | |
24 | - Call holding | |
25 | - Conference (multiparty) call | |
26 | - Send SMS from CLI, asterisk manager and dialplan | |
27 | - Receive SMS (latin charset and multiline included) | |
28 | - Send USSD | |
29 | - Receive USSD (latin charset and multiline included) | |
30 | - Send DTMF (excluding A,B,C,D letters not supported by Huawei) | |
31 | - Receive DTMF | |
32 | ||
33 | %prep | |
34 | %setup -q -n chan_dongle | |
39c717df | 35 | %patch0 -p1 |
94a3338c AM |
36 | |
37 | %build | |
38 | install /usr/share/automake/{config.*,install-sh,missing} . | |
39 | %{__aclocal} | |
40 | %{__autoconf} | |
41 | %configure | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | install -D etc/dongle.conf $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/dongle.conf | |
48 | install -D chan_dongle.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/chan_dongle.so | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc BUGS README.txt TODO.txt etc/extensions.conf | |
56 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dongle.so | |
57 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dongle.conf |