packages: asterisk-codec_g729/asterisk-codec_g729.spec - package tool for b...

glen glen at pld-linux.org
Tue Dec 29 14:49:29 CET 2009


Author: glen                         Date: Tue Dec 29 13:49:29 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package tool for benchmarking

---- Files affected:
packages/asterisk-codec_g729:
   asterisk-codec_g729.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/asterisk-codec_g729/asterisk-codec_g729.spec
diff -u packages/asterisk-codec_g729/asterisk-codec_g729.spec:1.1 packages/asterisk-codec_g729/asterisk-codec_g729.spec:1.2
--- packages/asterisk-codec_g729/asterisk-codec_g729.spec:1.1	Tue Dec 29 14:35:54 2009
+++ packages/asterisk-codec_g729/asterisk-codec_g729.spec	Tue Dec 29 14:49:24 2009
@@ -16,7 +16,7 @@
 # - pentium4m_32
 # - pentium_m_32
 # - prescott_32
-%define		x86_optim	generic_32
+%define		x86_32_optim	generic_32
 # Available x86_64 bit optimizations:
 # - core2_64
 # - generic_64
@@ -34,11 +34,15 @@
 Release:	0.1
 License:	GPL v2
 Group:		Applications/System
-Source0:	%{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_optim}.tar.gz
+Source0:	%{dl_url}/x86-32/codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim}.tar.gz
 # Source0-md5:	177828ca5ec0b7477883d81dbe74558f
 Source1:	%{dl_url}/x86-64/codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim}.tar.gz
 # Source1-md5:	2e3f13ff76ac7925bf16be920cd71fd0
-URL:		http://downloads.digium.com/pub/telephony/codec_g729/
+Source2:	http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-%{bench_ver}-x86_32
+# Source2-md5:	428a69780df2bba0f17da061e13a3df3
+Source3:	http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-%{bench_ver}-x86_64
+# Source3-md5:	dc9a24b54d3a510e77e86773beb300ec
+URL:		http://store.digium.com/productview.php?product_code=G729CODEC
 BuildRequires:	asterisk-devel
 Requires:	asterisk >= %{asterisk_ver}
 ExclusiveArch:	%{ix86} %{x8664}
@@ -46,6 +50,9 @@
 
 %define		moduledir	%{_libdir}/asterisk/modules
 
+# no debug symbols
+%define		_enable_debug_packages	0
+
 %description
 Digium offers a software implementation of G.729 that is compatible
 with Asterisk and is properly licensed from the intellectual property
@@ -60,19 +67,19 @@
 
 %prep
 %ifarch %{ix86}
-%define	sno		0
-%define	optim	%{x86_optim}
+%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_32_optim} -b0
+install -p %{SOURCE2} benchg729
 %endif
 %ifarch %{x8664}
-%define	sno		1
-%define	optim	%{x86_64_optim}
+%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{x86_64_optim} -b1
+install -p %{SOURCE3} benchg729
 %endif
-%setup -qT -n codec_g729a-%{asterisk_ver}_%{version}-%{optim} -b%{sno}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{moduledir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{moduledir}}
 install -p codec_g729a.so $RPM_BUILD_ROOT%{moduledir}
+install -p benchg729 $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -80,6 +87,7 @@
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README
+%attr(755,root,root) %{_bindir}/benchg729
 %attr(755,root,root) %{moduledir}/codec_g729a.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -88,5 +96,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/12/29 13:49:24  glen
+- package tool for benchmarking
+
 Revision 1.1  2009/12/29 13:35:54  glen
 - new
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/asterisk-codec_g729/asterisk-codec_g729.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list