]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blob - asterisk-codec_g729.spec
510843b0b6b383cad7612ef95f5f582b2b28df68
[packages/asterisk-codec_g729.git] / asterisk-codec_g729.spec
1 # Available x86 optimizations:
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
19 # Available x86_64 bit optimizations:
20 # - generic
21 # - core2
22 # - nocona
23 # - opteron
24 # - opteron_sse3
25 %define         x86_64_optim    barcelona
26
27 %ifarch %{ix86}
28 %define         optim %{x86_32_optim}
29 %endif
30 %ifarch %{x8664}
31 %define         optim %{x86_64_optim}
32 %endif
33
34 %define         dl_url  http://downloads.digium.com/pub/telephony/codec_g729/asterisk-%{asterisk_ver}/
35 %define         asterisk_ver    1.6.1
36 %define         bench_ver               1.0.7
37 Summary:        Digium G.729 Software Codec for Asterisk
38 Name:           asterisk-codec_g729
39 Version:        3.1.4
40 Release:        0.3
41 License:        Proprietary
42 Group:          Applications/System
43 Source0:        %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz
44 # NoSource0-md5:        177828ca5ec0b7477883d81dbe74558f
45 NoSource:       0
46 Source1:        %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
47 # NoSource1-md5:        491e093b5fc36a837d57cc165daa69e4
48 NoSource:       1
49 Source2:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
50 # NoSource2-md5:        428a69780df2bba0f17da061e13a3df3
51 NoSource:       2
52 Source3:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
53 # NoSource3-md5:        dc9a24b54d3a510e77e86773beb300ec
54 NoSource:       3
55 URL:            http://store.digium.com/productview.php?product_code=G729CODEC
56 BuildRequires:  asterisk-devel
57 Requires:       asterisk >= %{asterisk_ver}
58 ExclusiveArch:  %{ix86} %{x8664}
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61 %define         moduledir       %{_libdir}/asterisk/modules
62
63 # no debug symbols
64 %define         _enable_debug_packages  0
65
66 %description
67 Digium offers a software implementation of G.729 that is compatible
68 with Asterisk and is properly licensed from the intellectual property
69 rights and patent holders.
70
71 Please visit the following web address to read more about this product
72 and to purchase license keys:
73 http://store.digium.com/productview.php?product_code=G729CODEC
74
75 Follow the instructions below to download and install the Digium G.729
76 Software Codec for Asterisk.
77
78 This package is built with '%{optim}' flavor.
79
80 %prep
81 %ifarch %{ix86}
82 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32 -b0
83 install -p %{SOURCE2} benchg729
84 %endif
85 %ifarch %{x8664}
86 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1
87 install -p %{SOURCE3} benchg729
88 %endif
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
93 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
94 install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files
100 %defattr(644,root,root,755)
101 %doc LICENSE README
102 %attr(755,root,root) %{_bindir}/benchg729
103 %attr(755,root,root) %{moduledir}/codec_g729a.so
This page took 0.433127 seconds and 3 git commands to generate.