1 |
Name: freeswitch-codec-commercial-g729 |
2 |
Version: 194 |
3 |
Release: %mkrel 1 |
4 |
Summary: Freeswitch g729 commercial module |
5 |
License: BSD |
6 |
Group: System/Libraries |
7 |
URL: http://files.freeswitch.org/g729/ |
8 |
Requires: freeswitch |
9 |
|
10 |
%description |
11 |
Coder/decoder g729 Codec support for FreeSWITCH open source telephony platform |
12 |
|
13 |
%prep |
14 |
wget http://files.freeswitch.org/g729/fsg729-194-installer |
15 |
ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' fsg729-194-installer` |
16 |
tail -n+$ARCHIVE fsg729-194-installer | tar xz |
17 |
|
18 |
%ifarch %ix86 |
19 |
tar -zxf fsg729_i386.tar.gz |
20 |
%endif |
21 |
%ifarch x86_64 amd64 ia32e |
22 |
tar -zxf fsg729_x86_64.tar.gz |
23 |
%endif |
24 |
|
25 |
%install |
26 |
install -d %{buildroot}%{_sbindir} |
27 |
install fsg729/freeswitch_licence_server %{buildroot}%{_sbindir}/freeswitch_licence_server |
28 |
install -d %{buildroot}%{_libdir}/freeswitch/mod |
29 |
install fsg729/mod_com_g729.so %{buildroot}%{_libdir}/freeswitch/mod |
30 |
install -d %{buildroot}%{_bindir} |
31 |
install fsg729/validator %{buildroot}%{_bindir} |
32 |
|
33 |
%pre |
34 |
kill -9 `ps aux | grep freeswitch_licence_server | awk '{print $2}'`> /dev/null 2>&1 |
35 |
|
36 |
%post |
37 |
echo "Now you can activate your license by running %{_bindir}/validator" |
38 |
|
39 |
%files |
40 |
%defattr(-,root,root) |
41 |
%{_sbindir}/* |
42 |
%{_bindir}/* |
43 |
%{_libdir}/freeswitch/mod/* |