Author: musuruan
Update of /cvs/free/rpms/desmume/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv32322
Modified Files:
desmume.spec
Added Files:
desmume-0.9.5-bigendian.patch
Log Message:
* Sun Dec 06 2009 Andrea Musuruane <musuruan(a)gmail.com> 0.9.5-2
- Added a patch from upstream to compile on big endian systems (SF #2909694)
desmume-0.9.5-bigendian.patch:
--- NEW FILE desmume-0.9.5-bigendian.patch ---
diff -durN desmume-0.9.5.orig/src/saves.cpp desmume-0.9.5/src/saves.cpp
--- desmume-0.9.5.orig/src/saves.cpp 2009-11-18 21:39:36.000000000 +0100
+++ desmume-0.9.5/src/saves.cpp 2009-12-06 21:00:45.797313876 +0100
@@ -852,13 +852,14 @@
keyset.insert(sf->desc);
#endif
+
#ifdef LOCAL_LE
// no need to ever loop one at a time if not flipping byte order
os->fwrite((char *)sf->v,size*count);
#else
- if(sz == 1) {
+ if(size == 1) {
//special case: write a huge byte array
- os->fwrite((char *)sf->v,1,count);
+ os->fwrite((char *)sf->v,count);
} else {
for(int i=0;i<count;i++) {
FlipByteOrder((u8*)sf->v + i*size, size);
Index: desmume.spec
===================================================================
RCS file: /cvs/free/rpms/desmume/F-11/desmume.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- desmume.spec 6 Dec 2009 17:13:12 -0000 1.10
+++ desmume.spec 6 Dec 2009 20:04:42 -0000 1.11
@@ -1,6 +1,6 @@
Name: desmume
Version: 0.9.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A Nintendo DS emulator
Group: Applications/Emulators
@@ -8,6 +8,8 @@
URL:
http://desmume.org/
Source0:
http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
Patch0: %{name}-0.9-dontlookinbuilddir.patch
+# Upstream
+Patch1: %{name}-0.9.5-bigendian.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtkglext-devel
@@ -46,6 +48,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# Fix end-of-line encoding
sed -i 's/\r//' AUTHORS
@@ -174,6 +177,9 @@
%changelog
+* Sun Dec 06 2009 Andrea Musuruane <musuruan(a)gmail.com> 0.9.5-2
+- Added a patch from upstream to compile on big endian systems (SF #2909694)
+
* Sun Dec 06 2009 Andrea Musuruane <musuruan(a)gmail.com> 0.9.5-1
- Updated to upstream version 0.9.5
- Updated icon cache scriptlets