1 # Available x86 optimizations:
18 %define x86_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_optim}.tar.gz
37 # Source0-md5: 177828ca5ec0b7477883d81dbe74558f
38 Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
39 # Source1-md5: 2e3f13ff76ac7925bf16be920cd71fd0
40 URL: http://downloads.digium.com/pub/telephony/codec_g729/
41 BuildRequires: asterisk-devel
42 Requires: asterisk >= %{asterisk_ver}
43 ExclusiveArch: %{ix86} %{x8664}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define moduledir %{_libdir}/asterisk/modules
49 Digium offers a software implementation of G.729 that is compatible
50 with Asterisk and is properly licensed from the intellectual property
51 rights and patent holders.
53 Please visit the following web address to read more about this product
54 and to purchase license keys:
55 http://store.digium.com/productview.php?product_code=G729CODEC
57 Follow the instructions below to download and install the Digium G.729
58 Software Codec for Asterisk.
63 %define optim %{x86_optim}
67 %define optim %{x86_64_optim}
69 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{optim} -b%{sno}
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{moduledir}
74 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
82 %attr(755,root,root) %{moduledir}/codec_g729a.so