SPECS: xine-lib.spec - another way of sparc build, - removed sparc...

tommat tommat at pld-linux.org
Sun Mar 16 19:35:54 CET 2008


Author: tommat                       Date: Sun Mar 16 18:35:54 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- another way of sparc build,
- removed sparc patch, mtune has no effect on instruction set.
- introduced --without-vis bcond for sparc

---- Files affected:
SPECS:
   xine-lib.spec (1.218 -> 1.219) 

---- Diffs:

================================================================
Index: SPECS/xine-lib.spec
diff -u SPECS/xine-lib.spec:1.218 SPECS/xine-lib.spec:1.219
--- SPECS/xine-lib.spec:1.218	Thu Feb  7 09:55:00 2008
+++ SPECS/xine-lib.spec	Sun Mar 16 19:35:48 2008
@@ -21,6 +21,9 @@
 %bcond_without	wavpack		# don't build wavpack decode plugin
 %bcond_with	xvid		# build xvid decode plugin [disabled in sources at the moment]
 %bcond_with	vdr		# build with vdr support
+%bcond_without	vis		# build without vis sparc extensions - with vis breaks compatibility
+				# with v7 processors and enables vis optimization for sparc64 arch.
+				# without vis is currently broken it fails on ffmpeg
 #
 %ifnarch %{ix86}
 %undefine	with_dxr3
@@ -39,11 +42,10 @@
 Source0:	http://dl.sourceforge.net/xine/%{name}-%{version}.tar.bz2
 # Source0-md5:	55e7d2b1f4a9052db847244572a4ecb5
 Patch0:		%{name}-nolibs.patch
-Patch1:		%{name}-sparc.patch
-Patch2:		%{name}-win32-path.patch
-Patch3:		%{name}-am.patch
-Patch4:		%{name}-sh.patch
-Patch5:		%{name}-vdr.patch
+Patch1:		%{name}-win32-path.patch
+Patch2:		%{name}-am.patch
+Patch3:		%{name}-sh.patch
+Patch4:		%{name}-vdr.patch
 URL:		http://xine.sourceforge.net/
 %{?with_directfb:BuildRequires:	DirectFB-devel >= 0.9.22}
 %{?with_fusionsound:BuildRequires:	FusionSound-devel >= 0.9.23}
@@ -765,8 +767,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
-%{?with_vdr:%patch5 -p1}
+%{?with_vdr:%patch4 -p1}
 
 # kill hack, it fails with recent automake
 echo 'AC_DEFUN([AM_PROG_AS_MOD],[AM_PROG_AS])' > m4/as.m4
@@ -798,8 +799,17 @@
 	--with-real-codecs-path=%{_libdir}/codecs \
 	--with-w32-path=/usr/lib/codecs \
 	%{?with_wavpack:--with-wavpack} \
+%if %{with vis}
+%ifarch sparc
+	CFLAGS="%{rpmcflags} -mv8plus" \
+%endif
+%ifarch sparc64
+	CFLAGS="%{rpmcflags} -mvis" \
+%endif
+%else
+	--disable-vis \
+%endif
 	--disable-optimizations # we use own RPM_OPT_FLAGS optimalizations
-
 %{__make}
 
 %install
@@ -1137,6 +1147,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.219  2008-03-16 18:35:48  tommat
+- another way of sparc build,
+- removed sparc patch, mtune has no effect on instruction set.
+- introduced --without-vis bcond for sparc
+
 Revision 1.218  2008-02-07 08:55:00  ankry
 - unix -> Unix, gpl -> GPL, etc.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xine-lib.spec?r1=1.218&r2=1.219&f=u



More information about the pld-cvs-commit mailing list