-diff -ruN zlib-1.2.1./Makefile.in zlib-1.2.1/Makefile.in
---- zlib-1.2.1./Makefile.in 2003-12-25 03:08:31.000000000 +0100
-+++ zlib-1.2.1/Makefile.in 2003-12-25 03:10:13.070092968 +0100
-@@ -71,6 +71,9 @@
- $(AR) $@ $(OBJS) $(OBJA)
+--- zlib-1.2.4./Makefile.in 2003-12-25 03:08:31.000000000 +0100
++++ zlib-1.2.4/Makefile.in 2003-12-25 03:10:13.070092968 +0100
+@@ -108,6 +108,9 @@
+ $(AR) $@ $(OBJS)
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
-+z.dll: $(OBJS) $(OBJA)
-+ $(CC) -shared $(OBJS) $(OBJA) -Wl,--enable-auto-image-base -o z.dll -Wl,--out-implib,libz.dll.a
++z.dll: $(OBJS)
++ $(CC) -shared $(OBJS) -Wl,--enable-auto-image-base -o z.dll -Wl,--out-implib,libz.dll.a
+
match.o: match.S
$(CPP) match.S > _match.s
Summary: Library for compression and decompression - Ming32 cross version
Summary(pl.UTF-8): Biblioteka z podprogramami do kompresji i dekompresji - wersja skrośna dla Ming32
Name: crossmingw32-%{realname}
-Version: 1.2.3
-Release: 4
+Version: 1.2.4
+Release: 1
License: BSD
Group: Development/Libraries
-Source0: http://www.zlib.net/%{realname}-%{version}.tar.gz
-# Source0-md5: debc62758716a169df9f62e6ab2bc634
-Patch0: %{realname}-asmopt.patch
-Patch1: %{name}-shared.patch
+Source0: http://www.zlib.net/current/%{realname}-%{version}.tar.gz
+# Source0-md5: 47f6ed51b3c83a8534f9228531effa18
+#Patch0: %{realname}-asmopt.patch
+Patch0: %{name}-shared.patch
URL: http://www.zlib.org/
BuildRequires: crossmingw32-gcc
BuildRequires: sed >= 4.0
%define _sysprefix /usr
%define _prefix %{_sysprefix}/%{target}
%define _libdir %{_prefix}/lib
+%define _pkgconfigdir %{_prefix}/lib/pkgconfig
%define _dlldir /usr/share/wine/windows/system
%define __cc %{target}-gcc
%define __cxx %{target}-g++
%prep
%setup -q -n %{realname}-%{version}
-%patch1 -p1
+%patch0 -p1
%if %{with asmopt}
-%patch0 -p1
%ifarch i686 athlon
cp contrib/asm686/match.S .
%endif
%build
CC="%{__cc}" \
CXX="%{__cxx}" \
-AR="%{target}-ar rc" \
+AR="%{target}-ar" \
RANLIB="%{target}-ranlib" \
CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
./configure \
+ --static \
--prefix=%{_prefix}
-%{__make}
-%{__make} z.dll
+%{__make} static z.dll \
+ %{?with_asmopt:OBJA=match.o}
# used by libtool to detect dependencies
cat << "EOF" >> libz.la
%defattr(644,root,root,755)
%{_libdir}/libz.dll.a
%{_libdir}/libz.la
-%{_includedir}/*.h
+%{_includedir}/zconf.h
+%{_includedir}/zlib.h
+%{_includedir}/zutil.h
+%{_pkgconfigdir}/zlib.pc
%files static
%defattr(644,root,root,755)
+++ /dev/null
---- zlib-1.2.1/Makefile.in.orig 2003-11-09 03:29:23.000000000 +0100
-+++ zlib-1.2.1/Makefile.in 2003-11-25 23:58:48.202584104 +0100
-@@ -49,7 +49,7 @@
- OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
- zutil.o inflate.o infback.o inftrees.o inffast.o
-
--OBJA =
-+OBJA = match.o
- # to use the asm code: make OBJA=match.o
-
- TEST_OBJS = example.o minigzip.o
-@@ -77,8 +77,8 @@
- mv _match.o match.o
- rm -f _match.s
-
--$(SHAREDLIBV): $(OBJS)
-- $(LDSHARED) -o $@ $(OBJS)
-+$(SHAREDLIBV): $(OBJS) $(OBJA)
-+ $(LDSHARED) -o $@ $(OBJS) $(OBJA)
- rm -f $(SHAREDLIB) $(SHAREDLIBM)
- ln -s $@ $(SHAREDLIB)
- ln -s $@ $(SHAREDLIBM)