]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blob - asterisk-codec_g729.spec
- update for asterisk 1.6.2.0, works for me so rel 1
[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 # - barcelona
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
34
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
40 Version:        3.1.4
41 Release:        1
42 License:        Proprietary
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
46 NoSource:       0
47 Source1:        %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
48 # NoSource1-md5:        3bb68858e9db40769826de34b5b17a73
49 NoSource:       1
50 Source2:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
51 # NoSource2-md5:        428a69780df2bba0f17da061e13a3df3
52 NoSource:       2
53 Source3:        http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
54 # NoSource3-md5:        dc9a24b54d3a510e77e86773beb300ec
55 NoSource:       3
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)
61
62 %define         moduledir       %{_libdir}/asterisk/modules
63
64 # no debug symbols
65 %define         _enable_debug_packages  0
66
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
79 This package is built with '%{optim}' flavor.
80
81 %prep
82 %ifarch %{ix86}
83 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32 -b0
84 install -p %{SOURCE2} benchg729
85 %endif
86 %ifarch %{x8664}
87 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1
88 install -p %{SOURCE3} benchg729
89 %endif
90
91 %install
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}
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc LICENSE README
103 %attr(755,root,root) %{_bindir}/benchg729
104 %attr(755,root,root) %{moduledir}/codec_g729a.so
This page took 0.067652 seconds and 3 git commands to generate.