]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blame - asterisk-codec_g729.spec
- There is an exception in Asterisk license to allow use of this codec not the other...
[packages/asterisk-codec_g729.git] / asterisk-codec_g729.spec
CommitLineData
f99b3a07
ER
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
60467f8c 18%define x86_32_optim generic_32
f99b3a07
ER
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
30Summary: Digium G.729 Software Codec for Asterisk
31Name: asterisk-codec_g729
32Version: 3.1.4
33Release: 0.1
d311f62b 34License: Proprietary
f99b3a07 35Group: Applications/System
60467f8c 36Source0: %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}.tar.gz
f99b3a07
ER
37# Source0-md5: 177828ca5ec0b7477883d81dbe74558f
38Source1: %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
39# Source1-md5: 2e3f13ff76ac7925bf16be920cd71fd0
60467f8c
ER
40Source2: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
41# Source2-md5: 428a69780df2bba0f17da061e13a3df3
42Source3: http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
43# Source3-md5: dc9a24b54d3a510e77e86773beb300ec
44URL: http://store.digium.com/productview.php?product_code=G729CODEC
f99b3a07
ER
45BuildRequires: asterisk-devel
46Requires: asterisk >= %{asterisk_ver}
47ExclusiveArch: %{ix86} %{x8664}
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%define moduledir %{_libdir}/asterisk/modules
51
60467f8c
ER
52# no debug symbols
53%define _enable_debug_packages 0
54
f99b3a07
ER
55%description
56Digium offers a software implementation of G.729 that is compatible
57with Asterisk and is properly licensed from the intellectual property
58rights and patent holders.
59
60Please visit the following web address to read more about this product
61and to purchase license keys:
62http://store.digium.com/productview.php?product_code=G729CODEC
63
64Follow the instructions below to download and install the Digium G.729
65Software Codec for Asterisk.
66
67%prep
68%ifarch %{ix86}
60467f8c
ER
69%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim} -b0
70install -p %{SOURCE2} benchg729
f99b3a07
ER
71%endif
72%ifarch %{x8664}
60467f8c
ER
73%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim} -b1
74install -p %{SOURCE3} benchg729
f99b3a07 75%endif
f99b3a07
ER
76
77%install
78rm -rf $RPM_BUILD_ROOT
60467f8c 79install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
f99b3a07 80install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
60467f8c 81install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
f99b3a07
ER
82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
86%files
87%defattr(644,root,root,755)
88%doc LICENSE README
60467f8c 89%attr(755,root,root) %{_bindir}/benchg729
f99b3a07 90%attr(755,root,root) %{moduledir}/codec_g729a.so
This page took 0.122275 seconds and 4 git commands to generate.