/[packages]/cauldron/freeswitch-codec-commercial-g729/current/SPECS/freeswitch-codec-commercial-g729.spec
ViewVC logotype

Annotation of /cauldron/freeswitch-codec-commercial-g729/current/SPECS/freeswitch-codec-commercial-g729.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 458026 - (hide annotations) (download)
Thu Jul 25 15:06:22 2013 UTC (10 years, 8 months ago) by dlucio
File size: 1270 byte(s)
- fix conflicts with g729 passthrough
1 dlucio 452209 Name: freeswitch-codec-commercial-g729
2     Version: 194
3 dlucio 452238 Release: %mkrel 3
4 dlucio 452209 Summary: Freeswitch g729 commercial module
5     License: BSD
6     Group: System/Libraries
7     URL: http://files.freeswitch.org/g729/
8     Requires: freeswitch
9 dlucio 452212 Buildrequires: wget
10 dlucio 458026 Provides: freeswitch-codec-g729
11 dlucio 452209
12     %description
13     Coder/decoder g729 Codec support for FreeSWITCH open source telephony platform
14    
15     %prep
16     wget http://files.freeswitch.org/g729/fsg729-194-installer
17     ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' fsg729-194-installer`
18     tail -n+$ARCHIVE fsg729-194-installer | tar xz
19    
20     %ifarch %ix86
21     tar -zxf fsg729_i386.tar.gz
22     %endif
23     %ifarch x86_64 amd64 ia32e
24     tar -zxf fsg729_x86_64.tar.gz
25     %endif
26    
27     %install
28     install -d %{buildroot}%{_sbindir}
29     install fsg729/freeswitch_licence_server %{buildroot}%{_sbindir}/freeswitch_licence_server
30     install -d %{buildroot}%{_libdir}/freeswitch/mod
31     install fsg729/mod_com_g729.so %{buildroot}%{_libdir}/freeswitch/mod
32     install -d %{buildroot}%{_bindir}
33     install fsg729/validator %{buildroot}%{_bindir}
34    
35     %pre
36 dlucio 452232 PID=$(pidof freeswitch_licence_server)
37     if [ $PID ]
38     then
39     kill -9 $PID
40     fi
41 dlucio 452209
42     %post
43 dlucio 452211 echo "Now you can activate your license by running %{_bindir}/validator"
44 dlucio 452209
45     %files
46     %defattr(-,root,root)
47     %{_sbindir}/*
48     %{_bindir}/*
49     %{_libdir}/freeswitch/mod/*

  ViewVC Help
Powered by ViewVC 1.1.30