--- /dev/null
+--- povray-3.6.1/source/png_pov.cpp.wiget 2010-01-29 21:35:24.000000000 +0100
++++ povray-3.6.1/source/png_pov.cpp 2010-01-29 21:35:33.000000000 +0100
+@@ -782,7 +782,7 @@ PNG_Image::~PNG_Image()
+ {
+ // finished prematurely - trick into thinking done
+ png_ptr->num_rows = png_ptr->row_number;
+- png_write_finish_row(png_ptr);
++ png_write_row(png_ptr, row_ptr);
+ }
+
+ #ifdef POV_COMMENTS // temporarily skip comment writing code
+@@ -1428,7 +1428,7 @@ void Read_Png_Image(IMAGE *Image, char *
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
+@@ -1461,7 +1461,7 @@ void Read_Png_Image(IMAGE *Image, char *
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
Summary(pl.UTF-8): Persistence of Vision Ray Tracer
Name: povray
Version: 3.6.1
-Release: 7
+Release: 8
Epoch: 1
License: distributable
Group: Applications/Graphics
Patch3: %{name}-lib64.patch
Patch4: %{name}-no_svgalib.patch
Patch5: %{name}-m4.patch
+Patch6: %{name}-png.patch
URL: http://www.povray.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: libpng-devel >= 1.4.0
BuildRequires: libstdc++-devel
BuildRequires: libtiff-devel
%{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
##%patch4 -p1
%endif
%patch5 -p1
+%patch6 -p1
%build
%{__aclocal}