1 # Available x86 optimizations:
18 %define x86_32_optim generic
19 # Available x86_64 bit optimizations:
25 %define x86_64_optim barcelona
28 %define optim %{x86_32_optim}
31 %define optim %{x86_64_optim}
34 %define dl_url http://downloads.digium.com/pub/telephony/codec_g729/asterisk-%{asterisk_ver}/
35 %define asterisk_ver 1.6.1
36 %define bench_ver 1.0.7
37 Summary: Digium G.729 Software Codec for Asterisk
38 Name: asterisk-codec_g729
42 Group: Applications/System
43 Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz
44 # NoSource0-md5: 177828ca5ec0b7477883d81dbe74558f
46 Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
47 # NoSource1-md5: 491e093b5fc36a837d57cc165daa69e4
49 Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
50 # NoSource2-md5: 428a69780df2bba0f17da061e13a3df3
52 Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
53 # NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec
55 URL: http://store.digium.com/productview.php?product_code=G729CODEC
56 BuildRequires: asterisk-devel
57 Requires: asterisk >= %{asterisk_ver}
58 ExclusiveArch: %{ix86} %{x8664}
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 %define moduledir %{_libdir}/asterisk/modules
64 %define _enable_debug_packages 0
67 Digium offers a software implementation of G.729 that is compatible
68 with Asterisk and is properly licensed from the intellectual property
69 rights and patent holders.
71 Please visit the following web address to read more about this product
72 and to purchase license keys:
73 http://store.digium.com/productview.php?product_code=G729CODEC
75 Follow the instructions below to download and install the Digium G.729
76 Software Codec for Asterisk.
78 This package is built with '%{optim}' flavor.
82 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32 -b0
83 install -p %{SOURCE2} benchg729
86 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1
87 install -p %{SOURCE3} benchg729
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
93 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
94 install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
97 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/benchg729
103 %attr(755,root,root) %{moduledir}/codec_g729a.so