Fix invalid .def file and use correct RPM macros
Use the correct RPM macros Fix FTBFS against the latest binutils caused by the use of an invalid .def file
This commit is contained in:
parent
15be48b8fe
commit
cc83bfe583
@ -18,6 +18,9 @@ Source0: http://www.zlib.net/zlib-%{version}.tar.gz
|
||||
Patch3: mingw32-zlib-1.2.5-autotools.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=591317
|
||||
Patch4: zlib-1.2.5-gentoo.patch
|
||||
# The .def file contains an empty LIBRARY line which isn't valid
|
||||
Patch5: zlib-1.2.5-use-correct-def-file.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
@ -55,6 +58,7 @@ MinGW Minizip manipulates files from a .zip archive.
|
||||
|
||||
%prep
|
||||
%setup -q -n zlib-%{version}
|
||||
%patch5 -p1 -b .def
|
||||
cd ..
|
||||
cp -a zlib-%{version} x
|
||||
mv x zlib-%{version}
|
||||
@ -76,8 +80,8 @@ make -f win32/Makefile.gcc \
|
||||
CFLAGS="%{_mingw32_cflags}" \
|
||||
CC=%{_mingw32_cc} \
|
||||
AR=%{_mingw32_ar} \
|
||||
RC=i686-pc-mingw32-windres \
|
||||
DLLWRAP=i686-pc-mingw32-dllwrap \
|
||||
RC=%{_mingw32_windres} \
|
||||
DLLWRAP=%{_mingw32_dllwrap} \
|
||||
STRIP=%{_mingw32_strip} \
|
||||
all
|
||||
popd
|
||||
@ -138,6 +142,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%changelog
|
||||
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.5-7
|
||||
- Rebuild against the mingw-w64 toolchain
|
||||
- Use the correct RPM macros
|
||||
- Fix FTBFS against the latest binutils caused by the use of an invalid .def file
|
||||
|
||||
* Fri Feb 17 2012 David Tardon <dtardon@redhat.com> - 1.2.5-6
|
||||
- fix dlname in libz.la
|
||||
|
8
zlib-1.2.5-use-correct-def-file.patch
Normal file
8
zlib-1.2.5-use-correct-def-file.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- zlib-1.2.5/win32/zlib.def.orig 2012-02-26 16:19:28.608868501 +0100
|
||||
+++ zlib-1.2.5/win32/zlib.def 2012-02-26 16:19:34.156864592 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-LIBRARY
|
||||
+LIBRARY zlib1.dll
|
||||
; zlib data compression library
|
||||
|
||||
EXPORTS
|
Loading…
Reference in New Issue
Block a user