Accepting request 38368 from Publishing
Copy from Publishing/transfig based on submit request 38368 from user WernerFink OBS-URL: https://build.opensuse.org/request/show/38368 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=16
This commit is contained in:
parent
396974a929
commit
bef50f01ef
14
transfig.3.2.5a-libpng14.dif
Normal file
14
transfig.3.2.5a-libpng14.dif
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- fig2dev/dev/readpng.c
|
||||||
|
+++ fig2dev/dev/readpng.c 2010-04-20 15:22:10.142924814 +0000
|
||||||
|
@@ -127,7 +127,11 @@ read_png(file,filetype,pic,llx,lly)
|
||||||
|
|
||||||
|
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) {
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 20 17:24:01 CEST 2010 - werner@suse.de
|
||||||
|
|
||||||
|
- Add compatibility switch for libpng 1.4 or higher
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 19 11:22:31 CEST 2010 - sndirsch@suse.de
|
Mon Apr 19 11:22:31 CEST 2010 - sndirsch@suse.de
|
||||||
|
|
||||||
|
@ -31,12 +31,13 @@ Provides: transfig.3.2.3d
|
|||||||
Requires: netpbm ghostscript-library ghostscript-fonts-std
|
Requires: netpbm ghostscript-library ghostscript-fonts-std
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 3.2.5a
|
Version: 3.2.5a
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Graphic Converter
|
Summary: Graphic Converter
|
||||||
Source: transfig.%{version}.tar.bz2
|
Source: transfig.%{version}.tar.bz2
|
||||||
Patch0: transfig.3.2.5a.dif
|
Patch0: transfig.3.2.5a.dif
|
||||||
Patch1: transfig.3.2.5a-cups.dif
|
Patch1: transfig.3.2.5a-cups.dif
|
||||||
Patch2: transfig.3.2.5-binderman.dif
|
Patch2: transfig.3.2.5-binderman.dif
|
||||||
|
Patch3: transfig.3.2.5a-libpng14.dif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
||||||
%if "%_exec_prefix" == "/usr/X11R6"
|
%if "%_exec_prefix" == "/usr/X11R6"
|
||||||
|
Loading…
Reference in New Issue
Block a user