Changes of Revision 3
[-] | Changed | mjpegtools.spec |
x 1
2 License: BSD License and BSD-like, GNU General Public License (GPL) 3 Group: Productivity/Multimedia/Video/Editors and Convertors 4 URL: http://mjpeg.sourceforge.net/ 5 -Version: 1.8.0 6 -Release: 38 7 +Version: 1.9.0 8 +Release: 40 9 10 -Source0: mjpegtools-1.8.0.tar.bz2 11 +Source0: mjpegtools-1.9.0.tar.bz2 12 13 Patch0: mjpegtools.patch 14 Patch1: mjpegtools-cpuinfo.patch 15 -Patch2: mjpegtools-libquicktime.patch 16 +##Patch2: mjpegtools-libquicktime.patch 17 BuildRoot: %{_tmppath}/%{name}-%{version}-build 18 BuildRequires: aaa_base 19 BuildRequires: SDL-devel 20
21 %setup -q 22 %patch 23 %patch1 24 -%if %suse_version > 1010 25 -%patch2 26 -%endif 27 +##%if %suse_version > 1010 28 +##%patch2 29 +##%endif 30 # overwrite cpuinfo.sh, cpu optimization does not make sense 31 # when building for a distribution 32 echo "" > cpuinfo.sh 33 |
||
[+] | Changed | mjpegtools-cpuinfo.patch ^ |
@@ -1,6 +1,6 @@ ---- cpuinfo.sh -+++ cpuinfo.sh -@@ -85,6 +85,7 @@ +--- cpuinfo.sh.orig 2008-11-30 07:30:23.000000000 +0100 ++++ cpuinfo.sh 2009-06-28 22:42:30.000000000 +0200 +@@ -91,6 +91,7 @@ _sse=no _sse2=no _mtrr=no @@ -8,7 +8,7 @@ for i in $pparam ; do case "$i" in -@@ -95,6 +96,7 @@ +@@ -101,6 +102,7 @@ mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; xmm|sse|kni) _sse=yes _mmx2=yes ;; sse2) _sse2=yes ;; @@ -16,10 +16,10 @@ esac done -@@ -164,7 +166,12 @@ +@@ -177,7 +179,12 @@ proc=i686 fi - ;; + ;; - 15) proc=pentium4 + 15) + if test "$_longmode" = yes ; then | ||
[+] | Added | mjpegtools-cpuinfo.patch.old ^ |
@@ -0,0 +1,32 @@ +--- cpuinfo.sh ++++ cpuinfo.sh +@@ -85,6 +85,7 @@ + _sse=no + _sse2=no + _mtrr=no ++_longmode=no + + for i in $pparam ; do + case "$i" in +@@ -95,6 +96,7 @@ + mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; + xmm|sse|kni) _sse=yes _mmx2=yes ;; + sse2) _sse2=yes ;; ++ lm) _longmode=yes ;; + esac + done + +@@ -164,7 +166,12 @@ + proc=i686 + fi + ;; +- 15) proc=pentium4 ++ 15) ++ if test "$_longmode" = yes ; then ++ proc=k8 ++ else ++ proc=pentium4 ++ fi + ;; + *) proc=pentium4 + ;; | ||
Added | mjpegtools-1.9.0.tar.bz2 ^ |