]> git.pld-linux.org Git - packages/asterisk-chan_dongle.git/blob - asterisk-chan_dongle.spec
e43ceffe8ed5adf5780ea7feb009e4de5bf0d4ad
[packages/asterisk-chan_dongle.git] / asterisk-chan_dongle.spec
1 %define snap    20150612
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:        https://github.com/bg111/asterisk-chan-dongle/archive/master.zip
9 # Source0-md5:  8527ea21c083821fb0bd69c834d17737
10 Patch0:         chan_dongle-pin.patch
11 URL:            http://wiki.e1550.mobi/
12 BuildRequires:  asterisk-devel >= 1.8
13 BuildRequires:  asterisk-devel < 1.9
14 Requires:       usb-modeswitch
15 Requires:       usb-modeswitch-data
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 chan_dongle is an Asterisk channel driver for Huawei UMTS/3G USB
20 modems (dongles). At this moment, the supported features are:
21
22 - Voice calls, dialling by modem name, group, round robin, provider
23   name, IMEI or IMSI.
24 - Call waiting
25 - Call holding
26 - Conference (multiparty) call
27 - Send SMS from CLI, asterisk manager and dialplan
28 - Receive SMS (latin charset and multiline included)
29 - Send USSD
30 - Receive USSD (latin charset and multiline included)
31 - Send DTMF (excluding A,B,C,D letters not supported by Huawei)
32 - Receive DTMF
33
34 %prep
35 %setup -q -n asterisk-chan-dongle-master
36 %patch0 -p1
37
38 %build
39 install /usr/share/automake/{config.*,install-sh,missing} .
40 %{__aclocal}
41 %{__autoconf}
42 %configure
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 install -D etc/dongle.conf $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/dongle.conf
49 install -D chan_dongle.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/chan_dongle.so
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc BUGS README.txt TODO.txt etc/extensions.conf
57 %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dongle.so
58 %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dongle.conf
This page took 0.026123 seconds and 3 git commands to generate.