Summary: PNG library - Mingw32 cross version
Summary(pl): Biblioteka PNG - wersja skro¶na dla Mingw32
Name: crossmingw32-%{realname}
-Version: 1.2.6
-Release: 1.beta2
+Version: 1.2.7
+Release: 2
License: distributable
Group: Libraries
-Source0: http://dl.sourceforge.net/libpng/%{realname}-%{version}beta2.tar.bz2
-# Source0-md5: 45c811627b6fe4d37ec191b4548da949
+Source0: http://dl.sourceforge.net/libpng/%{realname}-%{version}.tar.bz2
+# Source0-md5: 21030102f99f81c37276403e5956d198
Patch0: %{realname}-pngminus.patch
Patch1: %{realname}-badchunks.patch
Patch2: %{realname}-opt.patch
Patch3: %{realname}-revert.patch
-Patch4: %{realname}-16bit-overflow.patch
-Patch5: %{realname}-norpath.patch
-Patch6: %{realname}-libdirfix.patch
-Patch7: %{name}-shared.patch
+Patch4: %{realname}-norpath.patch
+Patch5: %{realname}-libdirfix.patch
+Patch6: %{name}-shared.patch
URL: http://www.libpng.org/pub/png/libpng.html
BuildRequires: crossmingw32-gcc
BuildRequires: crossmingw32-w32api
%define __cc %{target}-gcc
%define __cxx %{target}-g++
+%ifarch alpha sparc sparc64 sparcv9
+%define optflags -O2
+%endif
+
%description
The PNG library is a collection of routines used to create and
manipulate PNG format graphics files. The PNG format was designed as a
libpng - biblioteka DLL dla Windows.
%prep
-%setup -q -n %{realname}-%{version}beta2
+%setup -q -n %{realname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
-%patch6 -p1
%ifarch %{ix86}
ln -sf scripts/makefile.gcmmx ./Makefile
ln -sf scripts/makefile.linux ./Makefile
%endif
-%patch7 -p1
+%patch6 -p1
%build
%{__make} \