]> git.pld-linux.org Git - packages/xmoto.git/commitdiff
- rel 3; libpng fix auto/th/xmoto-0_5_2-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 28 Jan 2010 18:42:42 +0000 (18:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libpng-1.4.patch -> 1.1
    xmoto.spec -> 1.69

libpng-1.4.patch [new file with mode: 0644]
xmoto.spec

diff --git a/libpng-1.4.patch b/libpng-1.4.patch
new file mode 100644 (file)
index 0000000..560ab39
--- /dev/null
@@ -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);
index 060fcc3d81c19a01e7fcfb52ae40d63c1964f121..aa7e324fc76e1ad08439454ac5b2eb607425ab64 100644 (file)
@@ -5,7 +5,7 @@ Summary:        Clone of across/elma games
 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
@@ -13,6 +13,7 @@ Source0:      http://download.tuxfamily.org/xmoto/xmoto/%{version}/%{name}-%{version}
 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
@@ -54,6 +55,7 @@ wynikami, swoimi i innych, w wyścigu z czasem.
 %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
This page took 0.0593050000000001 seconds and 4 git commands to generate.