]>
Commit | Line | Data |
---|---|---|
f99b3a07 | 1 | # Available x86 optimizations: |
b1f14ad0 ER |
2 | # - generic |
3 | # - athlon | |
4 | # - athlon_xp | |
5 | # - barcelona | |
6 | # - c3_2 | |
7 | # - c3 | |
8 | # - core2 | |
9 | # - i686 | |
10 | # - k6_3 | |
11 | # - nocona | |
12 | # - opteron | |
13 | # - opteron_sse3 | |
14 | # - pentium3m | |
15 | # - pentium4m | |
16 | # - pentium_m | |
17 | # - prescott | |
18 | %define x86_32_optim generic | |
f99b3a07 | 19 | # Available x86_64 bit optimizations: |
b1f14ad0 | 20 | # - generic |
eaac71ce | 21 | # - barcelona |
b1f14ad0 ER |
22 | # - core2 |
23 | # - nocona | |
24 | # - opteron | |
25 | # - opteron_sse3 | |
26 | %define x86_64_optim barcelona | |
27 | ||
28 | %ifarch %{ix86} | |
29 | %define optim %{x86_32_optim} | |
30 | %endif | |
31 | %ifarch %{x8664} | |
32 | %define optim %{x86_64_optim} | |
33 | %endif | |
f99b3a07 ER |
34 | |
35 | %define dl_url http://downloads.digium.com/pub/telephony/codec_g729/asterisk-%{asterisk_ver}/ | |
ca63d286 | 36 | %define asterisk_ver 1.6.2.0 |
f99b3a07 ER |
37 | %define bench_ver 1.0.7 |
38 | Summary: Digium G.729 Software Codec for Asterisk | |
39 | Name: asterisk-codec_g729 | |
40 | Version: 3.1.4 | |
ca63d286 | 41 | Release: 1 |
d311f62b | 42 | License: Proprietary |
f99b3a07 | 43 | Group: Applications/System |
b1f14ad0 | 44 | Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz |
ca63d286 | 45 | # NoSource0-md5: f5bbea87e2ffa97f8b7f1b59684085b4 |
ace1a0f3 | 46 | NoSource: 0 |
b1f14ad0 | 47 | Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz |
ca63d286 | 48 | # NoSource1-md5: 3bb68858e9db40769826de34b5b17a73 |
ace1a0f3 | 49 | NoSource: 1 |
60467f8c | 50 | Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32 |
ace1a0f3 ER |
51 | # NoSource2-md5: 428a69780df2bba0f17da061e13a3df3 |
52 | NoSource: 2 | |
60467f8c | 53 | Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64 |
ace1a0f3 ER |
54 | # NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec |
55 | NoSource: 3 | |
60467f8c | 56 | URL: http://store.digium.com/productview.php?product_code=G729CODEC |
f99b3a07 ER |
57 | BuildRequires: asterisk-devel |
58 | Requires: asterisk >= %{asterisk_ver} | |
59 | ExclusiveArch: %{ix86} %{x8664} | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %define moduledir %{_libdir}/asterisk/modules | |
63 | ||
60467f8c ER |
64 | # no debug symbols |
65 | %define _enable_debug_packages 0 | |
66 | ||
f99b3a07 ER |
67 | %description |
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. | |
71 | ||
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 | |
75 | ||
76 | Follow the instructions below to download and install the Digium G.729 | |
77 | Software Codec for Asterisk. | |
78 | ||
b1f14ad0 ER |
79 | This package is built with '%{optim}' flavor. |
80 | ||
f99b3a07 ER |
81 | %prep |
82 | %ifarch %{ix86} | |
b1f14ad0 | 83 | %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32 -b0 |
60467f8c | 84 | install -p %{SOURCE2} benchg729 |
f99b3a07 ER |
85 | %endif |
86 | %ifarch %{x8664} | |
b1f14ad0 | 87 | %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1 |
60467f8c | 88 | install -p %{SOURCE3} benchg729 |
f99b3a07 | 89 | %endif |
f99b3a07 ER |
90 | |
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
60467f8c | 93 | install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}} |
f99b3a07 | 94 | install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir} |
60467f8c | 95 | install -p benchg729 $RPM_BUILD_ROOT%{_bindir} |
f99b3a07 ER |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc LICENSE README | |
60467f8c | 103 | %attr(755,root,root) %{_bindir}/benchg729 |
f99b3a07 | 104 | %attr(755,root,root) %{moduledir}/codec_g729a.so |