make -f win32/Makefile.gcc \
INCLUDE_PATH=$RPM_BUILD_ROOT%{_mingw_includedir} \
LIBRARY_PATH=$RPM_BUILD_ROOT%{_mingw_libdir} \
+ BINARY_PATH=$RPM_BUILD_ROOT%{_mingw_bindir} \
install
-# DLL needs to go in the bin directory.
-mv $RPM_BUILD_ROOT%{_mingw_libdir}/libz.dll \
- $RPM_BUILD_ROOT%{_mingw_bindir}
-
# .dll.a file is misnamed for some reason - fix that.
mv $RPM_BUILD_ROOT%{_mingw_libdir}/libzdll.a \
$RPM_BUILD_ROOT%{_mingw_libdir}/libz.dll.a
%{_mingw_includedir}/zconf.h
%{_mingw_includedir}/zlib.h
%{_mingw_libdir}/libz.dll.a
-%{_mingw_bindir}/libz.dll
+%{_mingw_bindir}/zlib1.dll
%{_mingw_mandir}/man3/zlib.3
-$(INSTALL) zconf.h $(INCLUDE_PATH)
-$(INSTALL) $(STATICLIB) $(LIBRARY_PATH)
-$(INSTALL) $(IMPLIB) $(LIBRARY_PATH)
-+ -$(INSTALL) $(SHAREDLIB) $(LIBRARY_PATH)/libz.dll
++ -$(INSTALL) $(SHAREDLIB) $(BINARY_PATH)
uninstall:
-$(RM) $(INCLUDE_PATH)/zlib.h