1 %define realname libpng
2 Summary: PNG library - Mingw32 cross version
3 Summary(pl): Biblioteka PNG - wersja skro¶na dla Mingw32
4 Name: crossmingw32-%{realname}
9 Source0: http://dl.sourceforge.net/libpng/%{realname}-%{version}beta2.tar.bz2
10 # Source0-md5: 45c811627b6fe4d37ec191b4548da949
11 Patch0: %{realname}-pngminus.patch
12 Patch1: %{realname}-badchunks.patch
13 Patch2: %{realname}-opt.patch
14 Patch3: %{realname}-revert.patch
15 Patch4: %{realname}-16bit-overflow.patch
16 Patch5: %{realname}-norpath.patch
17 Patch6: %{realname}-libdirfix.patch
18 Patch7: %{realname}-pngerror.patch
19 Patch8: %{name}-shared.patch
20 URL: http://www.libpng.org/pub/png/libpng.html
21 BuildRequires: crossmingw32-gcc
22 BuildRequires: crossmingw32-w32api
23 BuildRequires: crossmingw32-zlib
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define no_install_post_strip 1
28 %define target i386-mingw32
29 %define target_platform i386-pc-mingw32
30 %define arch %{_prefix}/%{target}
31 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
32 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
34 %define __cc %{target}-gcc
35 %define __cxx %{target}-g++
37 %ifarch alpha sparc sparc64 sparcv9
42 The PNG library is a collection of routines used to create and
43 manipulate PNG format graphics files. The PNG format was designed as a
44 replacement for GIF, with many improvements and extensions.
47 Biblioteki PNG s± kolekcj± form u¿ywanych do tworzenia i manipulowania
48 plikami w formacie graficznym PNG. Format ten zosta³ stworzony jako
49 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowo¶ciami.
52 Summary: libpng - DLL library for Windows
53 Summary(pl): libpng - biblioteka DLL dla Windows
54 Group: Applications/Emulators
57 libpng - DLL library for Windows.
59 %description dll -l pl
60 libpng - biblioteka DLL dla Windows.
63 %setup -q -n %{realname}-%{version}beta2
74 ln -sf scripts/makefile.gcmmx ./Makefile
76 ln -sf scripts/makefile.linux ./Makefile
84 LIBPATH=%{_arch}/lib \
86 RANLIB="%{target}-ranlib"
87 OPT_FLAGS="%{rpmcflags}"
90 %{target}-strip -R.comment -R.note *.dll
91 %{target}-strip -g -R.comment -R.note *.a
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
97 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
99 install *.a $RPM_BUILD_ROOT%{arch}/lib
100 install png.h pngconf.h $RPM_BUILD_ROOT%{arch}/include
101 install *.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
104 rm -rf $RPM_BUILD_ROOT
107 %defattr(644,root,root,755)
112 %defattr(644,root,root,755)
113 %{_datadir}/wine/windows/system