Name: mingw32-flexdll
Version: 0.11
-Release: 2%{?dist}
+Release: 9%{?dist}
Summary: FlexDLL Windows DLL plugin API which is like dlopen
License: zlib
# Patches for MinGW:
Patch1000: mingw32-flexdll-0.11-mingw-cross.patch
+Patch1001: mingw32-flexdll-0.11-no-cygpath.patch
+Patch1002: mingw32-flexdll-0.11-no-directory.patch
+Patch1003: mingw32-flexdll-0.11-real-objdump.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%setup -q -n flexdll
%patch1000 -p1
+%patch1001 -p1
+%patch1002 -p1
+%patch1003 -p1
for f in CHANGES LICENSE README; do
chmod -x $f
$RPM_BUILD_ROOT%{_libdir}/flexdll
# Provide a wrapper script which sets FLEXDIR to point to the
-# libdir directory.
+# libdir directory. Some programs call 'flexlink' and some call
+# 'flexlink.exe' so provide both.
sed 's,@libdir@,%{_libdir},g' \
< %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/flexlink.exe
chmod 0755 $RPM_BUILD_ROOT%{_bindir}/flexlink.exe
+(cd $RPM_BUILD_ROOT%{_bindir} && ln flexlink.exe flexlink)
%clean
%files
%defattr(-,root,root)
%doc LICENSE README CHANGES
+%{_bindir}/flexlink
%{_bindir}/flexlink.exe
%{_libdir}/flexdll
%changelog
-* Fri Nov 14 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-2
+* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0.11-9
+- Rebuild for mingw32-gcc 4.4
+
+* Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-8
+- Apply real-objdump patch.
+
+* Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-7
+- Apply no-directory patch.
+
+* Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-6
+- Permanently disable cygpath (avoids 'NUL' file being created).
+
+* Fri Nov 14 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-4
- Initial RPM release.