]> git.pld-linux.org Git - packages/asterisk-codec_g729.git/blob - asterisk-codec_g729.spec
- new
[packages/asterisk-codec_g729.git] / asterisk-codec_g729.spec
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
18 %define         x86_optim       generic_32
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
30 Summary:        Digium G.729 Software Codec for Asterisk
31 Name:           asterisk-codec_g729
32 Version:        3.1.4
33 Release:        0.1
34 License:        GPL v2
35 Group:          Applications/System
36 Source0:        %{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_optim}.tar.gz
37 # Source0-md5:  177828ca5ec0b7477883d81dbe74558f
38 Source1:        %{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
39 # Source1-md5:  2e3f13ff76ac7925bf16be920cd71fd0
40 URL:            http://downloads.digium.com/pub/telephony/codec_g729/
41 BuildRequires:  asterisk-devel
42 Requires:       asterisk >= %{asterisk_ver}
43 ExclusiveArch:  %{ix86} %{x8664}
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         moduledir       %{_libdir}/asterisk/modules
47
48 %description
49 Digium offers a software implementation of G.729 that is compatible
50 with Asterisk and is properly licensed from the intellectual property
51 rights and patent holders.
52
53 Please visit the following web address to read more about this product
54 and to purchase license keys:
55 http://store.digium.com/productview.php?product_code=G729CODEC
56
57 Follow the instructions below to download and install the Digium G.729
58 Software Codec for Asterisk.
59
60 %prep
61 %ifarch %{ix86}
62 %define sno             0
63 %define optim   %{x86_optim}
64 %endif
65 %ifarch %{x8664}
66 %define sno             1
67 %define optim   %{x86_64_optim}
68 %endif
69 %setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{optim} -b%{sno}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{moduledir}
74 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %doc LICENSE README
82 %attr(755,root,root) %{moduledir}/codec_g729a.so
This page took 0.063773 seconds and 3 git commands to generate.