1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: MinGW Windows Libpng library
13 URL: http://www.libpng.org/pub/png/
14 Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
15 Patch1: libpng-pngconf.patch
16 Patch2: libpng-ztxt-bug.patch
18 Group: Development/Libraries
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23 BuildRequires: mingw32-filesystem >= 23
24 BuildRequires: mingw32-gcc
25 BuildRequires: mingw32-binutils
26 BuildRequires: mingw32-zlib
29 MinGW Windows Libpng library.
33 %setup -q -n libpng-%{version}
43 rm -rf $RPM_BUILD_ROOT
45 make DESTDIR=$RPM_BUILD_ROOT install
47 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libpng.a
49 # No need to distribute manpages which appear in the Fedora
50 # native packages already.
51 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
54 rm -rf $RPM_BUILD_ROOT
59 %{_mingw32_bindir}/libpng-3.dll
60 %{_mingw32_bindir}/libpng-config
61 %{_mingw32_bindir}/libpng12-0.dll
62 %{_mingw32_bindir}/libpng12-config
63 %{_mingw32_includedir}/libpng12
64 %{_mingw32_includedir}/png.h
65 %{_mingw32_includedir}/pngconf.h
66 %{_mingw32_libdir}/libpng.dll.a
67 %{_mingw32_libdir}/libpng.la
68 %{_mingw32_libdir}/libpng12.a
69 %{_mingw32_libdir}/libpng12.dll.a
70 %{_mingw32_libdir}/libpng12.la
71 %{_mingw32_libdir}/pkgconfig/libpng.pc
72 %{_mingw32_libdir}/pkgconfig/libpng12.pc
76 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-5
77 - Rename mingw -> mingw32.
79 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.2.31-4
80 - Add patches from rawhide RPM
82 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-3
83 - Don't duplicate Fedora native manpages.
85 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-2
86 - Remove static library.
88 * Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.2.31-1