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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 746275 - (show annotations) (download)
Wed Oct 15 01:47:05 2014 UTC (9 years, 6 months ago) by umeabot
File size: 1270 byte(s)
Second Mageia 5 Mass Rebuild
1 Name: freeswitch-codec-commercial-g729
2 Version: 194
3 Release: %mkrel 7
4 Summary: Freeswitch g729 commercial module
5 License: BSD
6 Group: System/Libraries
7 URL: http://files.freeswitch.org/g729/
8 Requires: freeswitch
9 Buildrequires: wget
10 Provides: freeswitch-codec-g729
11
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 PID=$(pidof freeswitch_licence_server)
37 if [ $PID ]
38 then
39 kill -9 $PID
40 fi
41
42 %post
43 echo "Now you can activate your license by running %{_bindir}/validator"
44
45 %files
46 %defattr(-,root,root)
47 %{_sbindir}/*
48 %{_bindir}/*
49 %{_libdir}/freeswitch/mod/*

  ViewVC Help
Powered by ViewVC 1.1.30