]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blame - 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
CommitLineData
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
38Summary: Digium G.729 Software Codec for Asterisk
39Name: asterisk-codec_g729
40Version: 3.1.4
ca63d286 41Release: 1
d311f62b 42License: Proprietary
f99b3a07 43Group: Applications/System
b1f14ad0 44Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz
ca63d286 45# NoSource0-md5: f5bbea87e2ffa97f8b7f1b59684085b4
ace1a0f3 46NoSource: 0
b1f14ad0 47Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
ca63d286 48# NoSource1-md5: 3bb68858e9db40769826de34b5b17a73
ace1a0f3 49NoSource: 1
60467f8c 50Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
ace1a0f3
ER
51# NoSource2-md5: 428a69780df2bba0f17da061e13a3df3
52NoSource: 2
60467f8c 53Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
ace1a0f3
ER
54# NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec
55NoSource: 3
60467f8c 56URL: http://store.digium.com/productview.php?product_code=G729CODEC
f99b3a07
ER
57BuildRequires: asterisk-devel
58Requires: asterisk >= %{asterisk_ver}
59ExclusiveArch: %{ix86} %{x8664}
60BuildRoot: %{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
68Digium offers a software implementation of G.729 that is compatible
69with Asterisk and is properly licensed from the intellectual property
70rights and patent holders.
71
72Please visit the following web address to read more about this product
73and to purchase license keys:
74http://store.digium.com/productview.php?product_code=G729CODEC
75
76Follow the instructions below to download and install the Digium G.729
77Software Codec for Asterisk.
78
b1f14ad0
ER
79This 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 84install -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 88install -p %{SOURCE3} benchg729
f99b3a07 89%endif
f99b3a07
ER
90
91%install
92rm -rf $RPM_BUILD_ROOT
60467f8c 93install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
f99b3a07 94install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
60467f8c 95install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
f99b3a07
ER
96
97%clean
98rm -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
This page took 0.163381 seconds and 4 git commands to generate.