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