Rebuild with latest versions of pango/gtk2.
[fedora-mingw.git] / libpng / mingw32-libpng.spec
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}
6
7 Name:           mingw32-libpng
8 Version:        1.2.31
9 Release:        5%{?dist}
10 Summary:        MinGW Windows Libpng library
11
12 License:        zlib
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
17
18 Group:          Development/Libraries
19 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21 BuildArch:      noarch
22
23 BuildRequires:  mingw32-filesystem >= 23
24 BuildRequires:  mingw32-gcc
25 BuildRequires:  mingw32-binutils
26 BuildRequires:  mingw32-zlib
27
28 %description
29 MinGW Windows Libpng library.
30
31
32 %prep
33 %setup -q -n libpng-%{version}
34 %patch1 -p1
35 %patch2 -p1
36
37 %build
38 %{_mingw32_configure}
39 make
40
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 make DESTDIR=$RPM_BUILD_ROOT install
46
47 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libpng.a
48
49 # No need to distribute manpages which appear in the Fedora
50 # native packages already.
51 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56
57 %files
58 %defattr(-,root,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
73
74
75 %changelog
76 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-5
77 - Rename mingw -> mingw32.
78
79 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.2.31-4
80 - Add patches from rawhide RPM
81
82 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-3
83 - Don't duplicate Fedora native manpages.
84
85 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.31-2
86 - Remove static library.
87
88 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.2.31-1
89 - Initial RPM release