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: 4f23eebd59ddd01a8f91ff8c823dd7d6
11 Patch0: %{realname}-pngminus.patch
12 Patch1: %{realname}-opt.patch
13 Patch2: %{realname}-revert.patch
14 Patch3: %{realname}-norpath.patch
15 Patch4: %{realname}-libdirfix.patch
16 Patch5: %{name}-shared.patch
17 URL: http://www.libpng.org/pub/png/libpng.html
18 BuildRequires: crossmingw32-gcc
19 BuildRequires: crossmingw32-w32api
20 BuildRequires: crossmingw32-zlib
21 Requires: crossmingw32-zlib
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define no_install_post_strip 1
26 %define target i386-mingw32
27 %define target_platform i386-pc-mingw32
28 %define arch %{_prefix}/%{target}
29 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
30 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
32 %define __cc %{target}-gcc
33 %define __cxx %{target}-g++
35 %ifarch alpha sparc sparc64 sparcv9
40 The PNG library is a collection of routines used to create and
41 manipulate PNG format graphics files. The PNG format was designed as a
42 replacement for GIF, with many improvements and extensions.
45 Biblioteki PNG s± kolekcj± form u¿ywanych do tworzenia i manipulowania
46 plikami w formacie graficznym PNG. Format ten zosta³ stworzony jako
47 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowo¶ciami.
50 Summary: libpng - DLL library for Windows
51 Summary(pl): libpng - biblioteka DLL dla Windows
52 Group: Applications/Emulators
55 libpng - DLL library for Windows.
57 %description dll -l pl
58 libpng - biblioteka DLL dla Windows.
61 %setup -q -n %{realname}-%{version}
69 ln -sf scripts/makefile.gcmmx ./Makefile
71 ln -sf scripts/makefile.linux ./Makefile
79 LIBPATH=%{_arch}/lib \
81 RANLIB="%{target}-ranlib"
82 OPT_FLAGS="%{rpmcflags}"
85 %{target}-strip -R.comment -R.note *.dll
86 %{target}-strip -g -R.comment -R.note *.a
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
92 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
94 install *.a $RPM_BUILD_ROOT%{arch}/lib
95 install png.h pngconf.h $RPM_BUILD_ROOT%{arch}/include
96 install *.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
107 %defattr(644,root,root,755)
108 %{_datadir}/wine/windows/system/*.dll