Patch for ming32-zlib.spec to enable static package
Wojciech Pilorz
wpilorz at gmail.com
Mon Mar 9 23:32:18 UTC 2009
Hi,
Please look at the attached patch file.
This patch is based on mingw32-zlib.spec from EPEL RPM file:
http://download.fedora.redhat.com/pub/epel/5/SRPMS/mingw32-zlib-1.2.3-11.el5.src.rpm
I have build, installed and slightly tested mingw32-zlib-static on
CentOS5 machine with WINE installed;
$ cd contrib/minizip
$ i686-pc-mingw32-gcc -O2 -o minizip_st.exe minizip.c zip.c ioapi.c
iowin32.c /usr/i686-pc-mingw32/sys-root/mingw/lib/libz.a
$ i686-pc-mingw32-gcc -O2 -o miniunzip_st.exe miniunz.c unzip.c
ioapi.c iowin32.c /usr/i686-pc-mingw32/sys-root/mingw/lib/libz.a
$ cat ChangeLogUnzip crypt.h > readme.txt
$ ./minizip_st.exe test readme.txt
MiniZip 1.01b, demo of zLib + Zip package written by Gilles Vollant
more info at http://www.winimage.com/zLibDll/unzip.html
creating test.zip
[wp at wphome minizip_test]$ ./miniunzip_st.exe -l test.zip
MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant
more info at http://www.winimage.com/zLibDll/unzip.html
test.zip opened
Length Method Size Ratio Date Time CRC-32 Name
------ ------ ---- ----- ---- ---- ------ ----
6767 Defl:N 2718 40% 03-10-09 00:16 825b7335 readme.txt
$ mv readme.txt readme.old
$ ./miniunzip_st.exe test.zip
MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant
more info at http://www.winimage.com/zLibDll/unzip.html
test.zip opened
extracting: readme.txt
$ sha1sum -b readme.txt readme.old
508f38f3779c225513995c7373ff2013b9ce648d *readme.txt
508f38f3779c225513995c7373ff2013b9ce648d *readme.old
$ unzip -t test.zip
Archive: test.zip
testing: readme.txt OK
No errors detected in compressed data of test.zip.
Please consider applying the patch for mingw32-zlib spec file.
Thank you for ming32 fedora cross-compiler!
Best regards,
Wojtek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw32-zlib.spec_static.diff
Type: text/x-patch
Size: 1334 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/mingw/attachments/20090310/bb6eaa83/attachment.bin
More information about the mingw
mailing list