Name: mingw32-bzip2
Version: 1.0.5
-Release: 2%{?dist}
+Release: 4%{?dist}
Summary: MinGW port of bzip2 file compression utility
License: BSD
%build
make -f Makefile-libbz2_so \
- CC="%{_mingw32_cc}" \
- AR="%{_mingw32_ar}" \
- RANLIB="%{_mingw32_ranlib}" \
- CFLAGS="%{_mingw32_cflags} -D_FILE_OFFSET_BITS=64" \
- %{?_smp_mflags} all
+ CC="%{_mingw32_cc}" \
+ AR="%{_mingw32_ar}" \
+ RANLIB="%{_mingw32_ranlib}" \
+ CFLAGS="%{_mingw32_cflags} -D_FILE_OFFSET_BITS=64" \
+ %{?_smp_mflags} all
rm -f *.o
make CC="%{_mingw32_cc}" \
- AR="%{_mingw32_ar}" \
- RANLIB="%{_mingw32_ranlib}" \
- CFLAGS="%{_mingw32_cflags} -D_FILE_OFFSET_BITS=64" \
- %{?_smp_mflags} \
+ AR="%{_mingw32_ar}" \
+ RANLIB="%{_mingw32_ranlib}" \
+ CFLAGS="%{_mingw32_cflags} -D_FILE_OFFSET_BITS=64" \
+ %{?_smp_mflags} \
%if %{run_tests}
- all
+ all
%else
- libbz2.a bzip2 bzip2recover
+ libbz2.a bzip2 bzip2recover
%endif
rm -rf $RPM_BUILD_ROOT%{_mingw32_prefix}/man
# The Makefile doesn't install the DLL.
-install bz2.dll.a $RPM_BUILD_ROOT%{_mingw32_libdir}/
+# Rename the library so that libtool can find it.
+install bz2.dll.a $RPM_BUILD_ROOT%{_mingw32_libdir}/libbz2.dll.a
install bz2-1.dll $RPM_BUILD_ROOT%{_mingw32_bindir}/
# Remove the static library.
%defattr(-,root,root)
%{_mingw32_bindir}/bz2-1.dll
-%{_mingw32_libdir}/bz2.dll.a
+%{_mingw32_libdir}/libbz2.dll.a
%{_mingw32_bindir}/bunzip2
%{_mingw32_bindir}/bzcat
%changelog
+* Sat Nov 22 2008 Richard Jones <rjones@redhat.com> - 1.0.5-4
+- Rename the implib as libbz2.dll.a so that libtool can find it.
+
+* Wed Oct 29 2008 Richard Jones <rjones@redhat.com> - 1.0.5-3
+- Fix mixed spaces/tabs in specfile.
+
* Fri Oct 10 2008 Richard Jones <rjones@redhat.com> - 1.0.5-2
- Allow the tests to be disabled selectively.