]> git.pld-linux.org Git - packages/pslib.git/commitdiff
- libpng14 fix auto/th/pslib-0_4_3-2
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 3 Jun 2010 22:12:35 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- update debian source url

Changed files:
    libpng14.patch -> 1.1
    pslib.spec -> 1.15

libpng14.patch [new file with mode: 0644]
pslib.spec

diff --git a/libpng14.patch b/libpng14.patch
new file mode 100644 (file)
index 0000000..e10013c
--- /dev/null
@@ -0,0 +1,14 @@
+--- pslib-0.4.3/src/pslib.c~   2009-03-05 21:47:18.000000000 +0200
++++ pslib-0.4.3/src/pslib.c    2010-06-04 01:04:20.437044498 +0300
+@@ -4603,7 +4603,11 @@
+               /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
+               if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
++#if PNG_LIBPNG_VER < 10400
+                       png_set_gray_1_2_4_to_8(png_ptr);
++#else
++                      png_set_expand_gray_1_2_4_to_8(png_ptr);
++#endif
+               png_read_update_info(png_ptr, info_ptr);
+ #else
index e03eebaa44dcfa429e69725f267f8c4c0d16ec92..cd6e05acbeac508490458041b7c321d7ad9bf8a5 100644 (file)
@@ -2,11 +2,12 @@ Summary:      The pslib C-library to create PostScript on the fly
 Summary(pl.UTF-8):     Biblioteka do generowania w locie plików PostScript
 Name:          pslib
 Version:       0.4.3
-Release:       1
+Release:       2
 License:       LGPL
 Group:         Libraries
-Source0:       ftp://ftp.debian.org/pub/debian/pool/main/p/pslib/%{name}_%{version}.orig.tar.gz
+Source0:       ftp://ftp.debian.org/debian/pool/main/p/pslib/%{name}_%{version}.orig.tar.gz
 # Source0-md5: 595fbb551544522eba2d1a279922d870
+Patch0:                libpng14.patch
 URL:           http://pslib.sourceforge.net/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -66,6 +67,7 @@ Statyczna biblioteka pslib.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.040932 seconds and 4 git commands to generate.