BuildRequires: qemu >= 0.10-7
BuildRequires: createrepo
+# This is only needed for RHEL 5 because readline-devel doesn't
+# properly depend on it, but doesn't do any harm on other platforms:
+BuildRequires: ncurses-devel
+
# Build requirements for the appliance:
# (see 'make-initramfs.sh.in' in the source)
BuildRequires: kernel, bash, coreutils, lvm2, ntfs-3g, util-linux-ng
%prep
%setup -q
+mkdir -p daemon/m4
+
%build
%if %{buildnonet}
./configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
+ --mandir=%{_mandir} \
--with-java-home=%{java_home} \
--with-qemu="qemu-kvm qemu-system-%{_build_arch} qemu" \
--enable-debug-command \
%{extra}
+# This ensures that /usr/sbin/chroot is on the path. Not needed
+# except for RHEL 5, it shouldn't do any harm on other platforms.
+export PATH=/usr/sbin:$PATH
+
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
# not the site dir.
make INSTALLDIRS=vendor %{?_smp_mflags}