1 # Available x86 optimizations:
18 %define x86_32_optim generic_32
19 # Available x86_64 bit optimizations:
25 %define x86_64_optim generic_64
27 %define dl_url http://downloads.digium.com/pub/telephony/codec_g729/asterisk-%{asterisk_ver}/
28 %define asterisk_ver 1.6.1
29 %define bench_ver 1.0.7
30 Summary: Digium G.729 Software Codec for Asterisk
31 Name: asterisk-codec_g729
35 Group: Applications/System
36 Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}.tar.gz
37 # NoSource0-md5: 177828ca5ec0b7477883d81dbe74558f
39 Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
40 # NoSource1-md5: 2e3f13ff76ac7925bf16be920cd71fd0
42 Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
43 # NoSource2-md5: 428a69780df2bba0f17da061e13a3df3
45 Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
46 # NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec
48 URL: http://store.digium.com/productview.php?product_code=G729CODEC
49 BuildRequires: asterisk-devel
50 Requires: asterisk >= %{asterisk_ver}
51 ExclusiveArch: %{ix86} %{x8664}
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define moduledir %{_libdir}/asterisk/modules
57 %define _enable_debug_packages 0
60 Digium offers a software implementation of G.729 that is compatible
61 with Asterisk and is properly licensed from the intellectual property
62 rights and patent holders.
64 Please visit the following web address to read more about this product
65 and to purchase license keys:
66 http://store.digium.com/productview.php?product_code=G729CODEC
68 Follow the instructions below to download and install the Digium G.729
69 Software Codec for Asterisk.
73 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim} -b0
74 install -p %{SOURCE2} benchg729
77 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim} -b1
78 install -p %{SOURCE3} benchg729
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
84 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
85 install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/benchg729
94 %attr(755,root,root) %{moduledir}/codec_g729a.so