- Requires pkgconfig.
- Add documentation.
libidn/libidn-1.9.tar.gz
libjpeg/jpegsrc.v6b.tar.gz
libpng/libpng-1.2.31.tar.bz2
+libpng/libpng-1.2.34.tar.bz2
libsigc++20/libsigc++-2.2.2.tar.bz2
libssh2/libssh2-0.18.tar.gz
libvirt/libvirt-0.4.5.tar.gz
--- /dev/null
+Use pkg-config to report libpng version and installation directories.
+
+
+diff -Naur libpng-1.2.31.orig/scripts/libpng-config.in libpng-1.2.31/scripts/libpng-config.in
+--- libpng-1.2.31.orig/scripts/libpng-config.in 2008-05-29 13:37:58.000000000 -0400
++++ libpng-1.2.31/scripts/libpng-config.in 2008-08-23 16:57:20.000000000 -0400
+@@ -8,11 +8,11 @@
+
+ # Modeled after libxml-config.
+
+-version="@PNGLIB_VERSION@"
+-prefix="@prefix@"
+-exec_prefix="@exec_prefix@"
+-libdir="@libdir@"
+-includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
++version=`pkg-config --modversion libpng`
++prefix=`pkg-config --variable prefix libpng`
++exec_prefix=`pkg-config --variable exec_prefix libpng`
++libdir=`pkg-config --variable libdir libpng`
++includedir=`pkg-config --variable includedir libpng`
+ libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
+ all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
+ I_opts="-I${includedir}"
+++ /dev/null
-Patch for CVE-2008-3964
-
-
-diff -ru4NwbB libpng-1.2.31/pngpread.c libpng-1.2.32beta01/pngpread.c
---- libpng-1.2.31/pngpread.c 2008-08-21 05:54:13.254898477 -0500
-+++ libpng-1.2.32beta01/pngpread.c 2008-09-06 07:03:43.043602194 -0500
-@@ -1278,9 +1278,9 @@
-
- tmp = text;
- text = (png_charp)png_malloc(png_ptr, text_size +
- (png_uint_32)(png_ptr->zbuf_size
-- - png_ptr->zstream.avail_out));
-+ - png_ptr->zstream.avail_out + 1));
- png_memcpy(text, tmp, text_size);
- png_free(png_ptr, tmp);
- png_memcpy(text + text_size, png_ptr->zbuf,
- png_ptr->zbuf_size - png_ptr->zstream.avail_out);
%define __find_provides %{_mingw32_findprovides}
Name: mingw32-libpng
-Version: 1.2.31
-Release: 5%{?dist}
+Version: 1.2.34
+Release: 1%{?dist}
Summary: MinGW Windows Libpng library
License: zlib
URL: http://www.libpng.org/pub/png/
Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
-Patch1: libpng-pngconf.patch
-Patch2: libpng-ztxt-bug.patch
+Patch0: libpng-multilib.patch
+Patch1: libpng-pngconf.patch
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: mingw32-filesystem >= 23
+BuildRequires: mingw32-filesystem >= 41
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-zlib
+Requires: pkgconfig
+
%description
MinGW Windows Libpng library.
%prep
%setup -q -n libpng-%{version}
+%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
%{_mingw32_configure}
%files
%defattr(-,root,root)
+%doc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
%{_mingw32_bindir}/libpng-3.dll
%{_mingw32_bindir}/libpng-config
%{_mingw32_bindir}/libpng12-0.dll
%changelog
+* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.34-1
+- Rebase to 1.2.34 and patches from Fedora.
+- Requires pkgconfig.
+- Add documentation.
+
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-5
- Rename mingw -> mingw32.