]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blob - asterisk-codec_g729.spec
24c1ddafa0a3d1fb984271e6a04d293fc6eb3d8f
[packages/asterisk-codec_g729.git] / asterisk-codec_g729.spec
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
18 %define         x86_32_optim    generic_32
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
34 License:        Proprietary
35 Group:          Applications/System
36 Source0:        %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}.tar.gz
37 # NoSource0-md5:        177828ca5ec0b7477883d81dbe74558f
38 NoSource:       0
39 Source1:        %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
40 # NoSource1-md5:        2e3f13ff76ac7925bf16be920cd71fd0
41 NoSource:       1
42 Source2:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
43 # NoSource2-md5:        428a69780df2bba0f17da061e13a3df3
44 NoSource:       2
45 Source3:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
46 # NoSource3-md5:        dc9a24b54d3a510e77e86773beb300ec
47 NoSource:       3
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)
53
54 %define         moduledir       %{_libdir}/asterisk/modules
55
56 # no debug symbols
57 %define         _enable_debug_packages  0
58
59 %description
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.
63
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
67
68 Follow the instructions below to download and install the Digium G.729
69 Software Codec for Asterisk.
70
71 %prep
72 %ifarch %{ix86}
73 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim} -b0
74 install -p %{SOURCE2} benchg729
75 %endif
76 %ifarch %{x8664}
77 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim} -b1
78 install -p %{SOURCE3} benchg729
79 %endif
80
81 %install
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}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc LICENSE README
93 %attr(755,root,root) %{_bindir}/benchg729
94 %attr(755,root,root) %{moduledir}/codec_g729a.so
This page took 0.236441 seconds and 3 git commands to generate.