Update to libpng 1.5.12

This commit is contained in:
Tom Lane 2012-08-04 12:22:43 -04:00
parent 14a3a1956b
commit 814373a82e
4 changed files with 20 additions and 5 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/libpng-1.5.10.tar.bz2
/libpng-1.5.12.tar.bz2

View File

@ -1,8 +1,8 @@
Summary: A library of functions for manipulating PNG image format files
Name: libpng
Epoch: 2
Version: 1.5.10
Release: 3%{?dist}
Version: 1.5.12
Release: 1%{?dist}
License: zlib
Group: System Environment/Libraries
URL: http://www.libpng.org/pub/png/
@ -11,6 +11,8 @@ URL: http://www.libpng.org/pub/png/
# so look there if you fail to retrieve the version you want
Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
Source1: pngusr.dfa
Patch0: libpng-multilib.patch
BuildRequires: zlib-devel, pkgconfig
@ -52,11 +54,14 @@ necessary for some boot packages.
%prep
%setup -q
# Provide pngusr.dfa for build.
cp -p %{SOURCE1} .
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
make %{?_smp_mflags} DFA_XTRA=pngusr.dfa
%install
make DESTDIR=$RPM_BUILD_ROOT install
@ -84,6 +89,10 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
%{_libdir}/libpng*.a
%changelog
* Sat Aug 4 2012 Tom Lane <tgl@redhat.com> 2:1.5.12-1
- Update to libpng 1.5.12 for minor bug fixes
- Activate chunk size limits by default, with a very generous default limit
* Wed Aug 1 2012 Tom Lane <tgl@redhat.com> 2:1.5.10-3
- Remove compat subpackage (it's now a separate package "libpng12")
- Minor specfile cleanup per suggestions from Tom Callaway

6
pngusr.dfa Normal file
View File

@ -0,0 +1,6 @@
# Enable use of "safe" default limits on image size and chunk size.
option SAFE_LIMITS on
# However, the default defaults seem a tad too restrictive for general
# purpose use, so back them off a little.
setting USER_CHUNK_CACHE_MAX default 1000
setting USER_CHUNK_MALLOC_MAX default 1000000000

View File

@ -1 +1 @@
f4395eaf426bdd870446c246df307aae libpng-1.5.10.tar.bz2
d87f9c34ccab8242c00e41925839f6c9 libpng-1.5.12.tar.bz2