SPECS: mplayer.spec - added system-amr patch, use system amr{nb, wb...

qboosh qboosh at pld-linux.org
Sun Jul 2 22:56:09 CEST 2006


Author: qboosh                       Date: Sun Jul  2 20:56:09 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added system-amr patch, use system amr{nb,wb} libs

---- Files affected:
SPECS:
   mplayer.spec (1.337 -> 1.338) 

---- Diffs:

================================================================
Index: SPECS/mplayer.spec
diff -u SPECS/mplayer.spec:1.337 SPECS/mplayer.spec:1.338
--- SPECS/mplayer.spec:1.337	Sun Jul  2 16:15:54 2006
+++ SPECS/mplayer.spec	Sun Jul  2 22:56:04 2006
@@ -52,7 +52,7 @@
 %bcond_without	sdl		# disable SDL
 %bcond_without	doc		# don't build docs (slow)
 %bcond_with	shared		# experimental libmplayer.so support
-%bcond_without	amr		# don't build 3GPP Adaptive Multi Rate (AMR) speech codec
+%bcond_without	amr		# disable 3GPP Adaptive Multi Rate (AMR) speech codec support
 
 %ifnarch %{ix86}
 %undefine	with_win32
@@ -109,18 +109,13 @@
 # Source6-md5:	1ecd31d17b51f16332b1fcc7da36b312
 Source7:	%{name}.png
 Source8:	%{name}.desktop
-# AMR WB FLOAT
-Source10:	http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26204-530.zip
-# Source10-md5:	988060bdb18b5d64b8bd82c3507d2420
-# AMR NB FLOAT
-Source11:	http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-540.zip
-# Source11-md5:	4dcbeb2bc28bf86e7131fe4cae3e0dec
 Patch0:		%{name}-no_libnsl.patch
 Patch1:		%{name}-cp1250-fontdesc.patch
 Patch2:		%{name}-codec.patch
 Patch3:		%{name}-home_etc.patch
 Patch4:		%{name}-350.patch
 Patch5:		%{name}-configure.patch
+Patch6:		%{name}-system-amr.patch
 Patch8:		%{name}-altivec.patch
 Patch10:	%{name}-pcmsplit.patch
 Patch11:	%{name}-bio2jack.patch
@@ -137,6 +132,10 @@
 %{?with_sdl:BuildRequires:	SDL-devel >= 1.1.7}
 %{?with_aalib:BuildRequires:	aalib-devel}
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
+%if %{with amr}
+BuildRequires:	amrnb-devel
+BuildRequires:	amrwb-devel	>= 5.3.0
+%endif
 %{?with_arts:BuildRequires:	artsc-devel}
 %{?with_cdparanoia:BuildRequires:	cdparanoia-III-devel}
 %{?with_divx4linux:BuildRequires:	divx4linux-devel >= 1:5.01.20020418}
@@ -188,7 +187,6 @@
 BuildRequires:	xorg-lib-libXxf86vm-devel
 %{?with_xvid:BuildRequires:	xvid-devel >= 1:0.9.0}
 BuildRequires:	zlib-devel
-%{?with_amr:BuildRequires:	unzip}
 Requires:	%{name}-common = %{epoch}:%{version}-%{release}
 Requires(post,postun):	/sbin/ldconfig
 Requires:	OpenGL
@@ -310,22 +308,6 @@
 %setup -q -n %{sname}-%{version}%{pre} -a 3 -a 6
 %endif
 
-%if %{with amr}
-cd libavcodec
-mkdir amrwb_float
-mkdir amr
-mkdir amr_float
-# put 26204-xxx.zip into libavcodec/amrwb_float
-cd amrwb_float
-unzip -j %{SOURCE10}
-unzip -j 26204-530_ANSI-C_source_code.zip
-# put 26104-xxx.zip into libavcodec/amr_float
-cd ../amr_float
-unzip -j %{SOURCE11}
-unzip -j 26104-540_ANSI_C_source_code.zip
-cd ../..
-%endif
-
 cp -f etc/codecs.conf etc/codecs.win32.conf
 %patch0 -p1
 %patch1 -p0
@@ -333,6 +315,7 @@
 ##%patch3 -p1	-- old home_etc behavior
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 %patch8 -p1
 #%%patch10 -p1
 #%patch11 -p1	# maybe TODO, JACK audio output rewritten without bio2jack
@@ -382,6 +365,7 @@
 %ifarch ppc
 %{!?with_altivec:--disable-altivec} \
 %endif
+%{!?with_amr:--disable-amr_nb --disable-amr_wb} \
 %{?with_directfb:--enable-directfb} \
 %{!?with_directfb:--disable-directfb} \
 %{!?with_divx4linux:--disable-divx4linux} \
@@ -595,6 +579,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.338  2006/07/02 20:56:04  qboosh
+- added system-amr patch, use system amr{nb,wb} libs
+
 Revision 1.337  2006/07/02 14:15:54  qboosh
 - updated no_libnsl patch is back
 - removed obsolete x86_64-detection patch
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mplayer.spec?r1=1.337&r2=1.338&f=u



More information about the pld-cvs-commit mailing list