]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blame_incremental - 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
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
38Summary: Digium G.729 Software Codec for Asterisk
39Name: asterisk-codec_g729
40Version: 3.1.4
41Release: 1
42License: Proprietary
43Group: Applications/System
44Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}_32.tar.gz
45# NoSource0-md5: f5bbea87e2ffa97f8b7f1b59684085b4
46NoSource: 0
47Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64.tar.gz
48# NoSource1-md5: 3bb68858e9db40769826de34b5b17a73
49NoSource: 1
50Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
51# NoSource2-md5: 428a69780df2bba0f17da061e13a3df3
52NoSource: 2
53Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
54# NoSource3-md5: dc9a24b54d3a510e77e86773beb300ec
55NoSource: 3
56URL: http://store.digium.com/productview.php?product_code=G729CODEC
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
64# no debug symbols
65%define _enable_debug_packages 0
66
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
79This 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
84install -p %{SOURCE2} benchg729
85%endif
86%ifarch %{x8664}
87%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}_64 -b1
88install -p %{SOURCE3} benchg729
89%endif
90
91%install
92rm -rf $RPM_BUILD_ROOT
93install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
94install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
95install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
96
97%clean
98rm -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.141493 seconds and 4 git commands to generate.