packages: xmoto/xmoto.spec, xmoto/libpng-1.4.patch (NEW) - rel 3; libpng fix

arekm arekm at pld-linux.org
Thu Jan 28 19:42:47 CET 2010


Author: arekm                        Date: Thu Jan 28 18:42:47 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 3; libpng fix

---- Files affected:
packages/xmoto:
   xmoto.spec (1.68 -> 1.69) , libpng-1.4.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xmoto/xmoto.spec
diff -u packages/xmoto/xmoto.spec:1.68 packages/xmoto/xmoto.spec:1.69
--- packages/xmoto/xmoto.spec:1.68	Thu Jan 28 19:19:03 2010
+++ packages/xmoto/xmoto.spec	Thu Jan 28 19:42:42 2010
@@ -6,7 +6,7 @@
 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
@@ -14,6 +14,7 @@
 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
@@ -55,6 +56,7 @@
 %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
@@ -126,6 +128,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.69  2010/01/28 18:42:42  arekm
+- rel 3; libpng fix
+
 Revision 1.68  2010/01/28 18:19:03  amateja
 - release 2
 

================================================================
Index: packages/xmoto/libpng-1.4.patch
diff -u /dev/null packages/xmoto/libpng-1.4.patch:1.1
--- /dev/null	Thu Jan 28 19:42:48 2010
+++ packages/xmoto/libpng-1.4.patch	Thu Jan 28 19:42:42 2010
@@ -0,0 +1,12 @@
+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);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xmoto/xmoto.spec?r1=1.68&r2=1.69&f=u



More information about the pld-cvs-commit mailing list