Quick hack to make sure we build 32-bit binaries with the -m32 flag.
This makes rpmbuild --target i386 do the right thing. A Makefile
overhaul is really in order, though.
Autoreq: 0
%ifarch x86_64
Requires: mtools, libc.so.6()(64bit)
+%define mflag
%else
Requires: mtools, libc.so.6
+%define mflag -m32
%endif
# NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically
%build
make clean
-make installer
+make CC='gcc %{mflag}' installer
make -C sample tidy
%install