Changed files:
libpng-1.4.patch -> 1.1
xmoto.spec -> 1.69
--- /dev/null
+diff -Naur xmoto-0.5.2-orig/src/image/tim_png.cpp xmoto-0.5.2/src/image/tim_png.cpp
+--- xmoto-0.5.2-orig/src/image/tim_png.cpp 2010-01-22 02:50:26.000000000 -0500
++++ xmoto-0.5.2/src/image/tim_png.cpp 2010-01-22 02:52:04.000000000 -0500
+@@ -166,7 +166,7 @@
+ png_set_palette_to_rgb(PngPtr);
+
+ if(nColorType==PNG_COLOR_TYPE_GRAY && nBitDepth<8)
+- png_set_gray_1_2_4_to_8(PngPtr);
++ png_set_expand_gray_1_2_4_to_8(PngPtr);
+
+ if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS))
+ png_set_tRNS_to_alpha(PngPtr);
Summary(pl.UTF-8): Klon gry across/elma
Name: xmoto
Version: 0.5.2
-Release: 2
+Release: 3
License: GPL v2+
Group: X11/Applications/Games
Source0: http://download.tuxfamily.org/xmoto/xmoto/%{version}/%{name}-%{version}-src.tar.gz
Source1: %{name}.png
Source2: %{name}.desktop
Patch0: %{name}-lua51.patch
+Patch1: libpng-1.4.patch
URL: http://xmoto.sourceforge.net/
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL-devel
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# fix lv translation
%{__sed} -i -e 's/lv_LV/lv/g;s/da_DK/da/g;s/pt_PT/pt/g;s/tr_TR/tr/g' configure.in