1 # Available x86 optimizations:
18 %define x86_32_optim generic
19 # Available x86_64 bit optimizations:
26 %define x86_64_optim barcelona
29 %define optim %{x86_32_optim}
32 %define optim %{x86_64_optim}
35 %define dl_url http://downloads.digium.com/pub/telephony/codec_g729/asterisk-%{asterisk_ver}/
36 %define asterisk_ver 1.6.2.0
37 %define bench_ver 1.0.7
38 Summary: Digium G.729 Software Codec for Asterisk
39 Name: asterisk-codec_g729
43 Group: Applications/System
44 Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz
45 # NoSource0-md5: f5bbea87e2ffa97f8b7f1b59684085b4
47 Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
48 # NoSource1-md5: 3bb68858e9db40769826de34b5b17a73
50 Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
51 # NoSource2-md5: 428a69780df2bba0f17da061e13a3df3
53 Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
54 # NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec
56 URL: http://store.digium.com/productview.php?product_code=G729CODEC
57 BuildRequires: asterisk-devel
58 Requires: asterisk >= %{asterisk_ver}
59 ExclusiveArch: %{ix86} %{x8664}
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 %define moduledir %{_libdir}/asterisk/modules
65 %define _enable_debug_packages 0
68 Digium offers a software implementation of G.729 that is compatible
69 with Asterisk and is properly licensed from the intellectual property
70 rights and patent holders.
72 Please visit the following web address to read more about this product
73 and to purchase license keys:
74 http://store.digium.com/productview.php?product_code=G729CODEC
76 Follow the instructions below to download and install the Digium G.729
77 Software Codec for Asterisk.
79 This package is built with '%{optim}' flavor.
83 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32 -b0
84 install -p %{SOURCE2} benchg729
87 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1
88 install -p %{SOURCE3} benchg729
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
94 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
95 install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
98 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/benchg729
104 %attr(755,root,root) %{moduledir}/codec_g729a.so