]>
Commit | Line | Data |
---|---|---|
f99b3a07 ER |
1 | # Available x86 optimizations: |
2 | # - athlon_32 | |
3 | # - athlon_xp_32 | |
4 | # - barcelona_32 | |
5 | # - c3_2_32 | |
6 | # - c3_32 | |
7 | # - core2_32 | |
8 | # - generic_32 | |
9 | # - i686_32 | |
10 | # - k6_3_32 | |
11 | # - nocona_32 | |
12 | # - opteron_32 | |
13 | # - opteron_sse3_32 | |
14 | # - pentium3m_32 | |
15 | # - pentium4m_32 | |
16 | # - pentium_m_32 | |
17 | # - prescott_32 | |
60467f8c | 18 | %define x86_32_optim generic_32 |
f99b3a07 ER |
19 | # Available x86_64 bit optimizations: |
20 | # - core2_64 | |
21 | # - generic_64 | |
22 | # - nocona_64 | |
23 | # - opteron_64 | |
24 | # - opteron_sse3_64 | |
25 | %define x86_64_optim generic_64 | |
26 | ||
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 | |
32 | Version: 3.1.4 | |
33 | Release: 0.1 | |
d311f62b | 34 | License: Proprietary |
f99b3a07 | 35 | Group: Applications/System |
60467f8c | 36 | Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}.tar.gz |
f99b3a07 ER |
37 | # Source0-md5: 177828ca5ec0b7477883d81dbe74558f |
38 | Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz | |
39 | # Source1-md5: 2e3f13ff76ac7925bf16be920cd71fd0 | |
60467f8c ER |
40 | Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32 |
41 | # Source2-md5: 428a69780df2bba0f17da061e13a3df3 | |
42 | Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64 | |
43 | # Source3-md5: dc9a24b54d3a510e77e86773beb300ec | |
44 | URL: http://store.digium.com/productview.php?product_code=G729CODEC | |
f99b3a07 ER |
45 | BuildRequires: asterisk-devel |
46 | Requires: asterisk >= %{asterisk_ver} | |
47 | ExclusiveArch: %{ix86} %{x8664} | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %define moduledir %{_libdir}/asterisk/modules | |
51 | ||
60467f8c ER |
52 | # no debug symbols |
53 | %define _enable_debug_packages 0 | |
54 | ||
f99b3a07 ER |
55 | %description |
56 | Digium offers a software implementation of G.729 that is compatible | |
57 | with Asterisk and is properly licensed from the intellectual property | |
58 | rights and patent holders. | |
59 | ||
60 | Please visit the following web address to read more about this product | |
61 | and to purchase license keys: | |
62 | http://store.digium.com/productview.php?product_code=G729CODEC | |
63 | ||
64 | Follow the instructions below to download and install the Digium G.729 | |
65 | Software Codec for Asterisk. | |
66 | ||
67 | %prep | |
68 | %ifarch %{ix86} | |
60467f8c ER |
69 | %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim} -b0 |
70 | install -p %{SOURCE2} benchg729 | |
f99b3a07 ER |
71 | %endif |
72 | %ifarch %{x8664} | |
60467f8c ER |
73 | %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim} -b1 |
74 | install -p %{SOURCE3} benchg729 | |
f99b3a07 | 75 | %endif |
f99b3a07 ER |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
60467f8c | 79 | install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}} |
f99b3a07 | 80 | install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir} |
60467f8c | 81 | install -p benchg729 $RPM_BUILD_ROOT%{_bindir} |
f99b3a07 ER |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc LICENSE README | |
60467f8c | 89 | %attr(755,root,root) %{_bindir}/benchg729 |
f99b3a07 | 90 | %attr(755,root,root) %{moduledir}/codec_g729a.so |