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}.tar.bz2
10 # Source0-md5: 21030102f99f81c37276403e5956d198
11 Patch0: %{realname}-pngminus.patch
12 Patch1: %{realname}-badchunks.patch
13 Patch2: %{realname}-opt.patch
14 Patch3: %{realname}-revert.patch
15 Patch4: %{realname}-norpath.patch
16 Patch5: %{realname}-libdirfix.patch
17 Patch6: %{name}-shared.patch
18 URL: http://www.libpng.org/pub/png/libpng.html
19 Requires: crossmingw32-runtime
20 BuildRequires: crossmingw32-gcc
21 BuildRequires: crossmingw32-w32api
22 BuildRequires: crossmingw32-zlib
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define no_install_post_strip 1
27 %define target i386-mingw32
28 %define target_platform i386-pc-mingw32
29 %define arch %{_prefix}/%{target}
30 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
31 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
33 %define __cc %{target}-gcc
34 %define __cxx %{target}-g++
36 %ifarch alpha sparc sparc64 sparcv9
41 The PNG library is a collection of routines used to create and
42 manipulate PNG format graphics files. The PNG format was designed as a
43 replacement for GIF, with many improvements and extensions.
46 Biblioteki PNG s± kolekcj± form u¿ywanych do tworzenia i manipulowania
47 plikami w formacie graficznym PNG. Format ten zosta³ stworzony jako
48 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowo¶ciami.
51 Summary: libpng - DLL library for Windows
52 Summary(pl): libpng - biblioteka DLL dla Windows
53 Group: Applications/Emulators
56 libpng - DLL library for Windows.
58 %description dll -l pl
59 libpng - biblioteka DLL dla Windows.
62 %setup -q -n %{realname}-%{version}
71 ln -sf scripts/makefile.gcmmx ./Makefile
73 ln -sf scripts/makefile.linux ./Makefile
81 LIBPATH=%{_arch}/lib \
83 RANLIB="%{target}-ranlib"
84 OPT_FLAGS="%{rpmcflags}"
87 %{target}-strip -R.comment -R.note *.dll
88 %{target}-strip -g -R.comment -R.note *.a
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
94 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
96 install *.a $RPM_BUILD_ROOT%{arch}/lib
97 install png.h pngconf.h $RPM_BUILD_ROOT%{arch}/include
98 install *.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
109 %defattr(644,root,root,755)
110 %{_datadir}/wine/windows/system