Hello community, here is the log from the commit of package xfig for openSUSE:Factory checked in at Wed Apr 21 01:54:23 CEST 2010. -------- --- xfig/xfig.changes 2010-04-19 11:30:10.000000000 +0200 +++ /mounts/work_src_done/STABLE/xfig/xfig.changes 2010-04-20 17:54:49.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Apr 20 17:24:01 CEST 2010 - werner@suse.de + +- Add compatibility switch for libpng 1.4 or higher + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- xfig.3.2.5b-libpng14.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfig.spec ++++++ --- /var/tmp/diff_new_pack.bPRFPb/_old 2010-04-21 01:54:11.000000000 +0200 +++ /var/tmp/diff_new_pack.bPRFPb/_new 2010-04-21 01:54:11.000000000 +0200 @@ -31,7 +31,7 @@ Requires: transfig netpbm ghostscript-fonts-std AutoReqProv: on Version: 3.2.5b -Release: 2 +Release: 3 Summary: Facility for Interactive Generation of Figures under the X Window System Url: http://www.xfig.org/ Source: xfig.%{version}.tar.bz2 @@ -47,6 +47,7 @@ Patch6: xfig.3.2.5b-locale.dif Patch7: xfig.3.2.5b-fixes.dif Patch8: xfig.3.2.5b-pspdftex.dif +Patch9: xfig.3.2.5b-libpng14.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_exec_prefix" == "/usr/X11R6" @@ -92,6 +93,7 @@ %patch6 -p0 -b .locale %patch7 -p0 -b .fixes %patch8 -p0 -b .pspdftex +%patch9 -p0 -b .libpng14 cp %{S:1} . %build ++++++ xfig.3.2.5b-libpng14.dif ++++++ --- f_readpng.c +++ f_readpng.c 2010-04-20 15:45:02.627072958 +0000 @@ -136,7 +136,11 @@ read_png(FILE *file, int filetype, F_pic if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) { png_get_hIST(png_ptr, info_ptr, &histogram); +#if (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && (PNG_LIBPNG_VER_MINOR > 4))) || defined(png_set_quantize) + png_set_quantize(png_ptr, palette, num_palette, 256, histogram, 0); +#else png_set_dither(png_ptr, palette, num_palette, 256, histogram, 0); +#endif } } if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de