Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Requires: dosfstools, mkisofs, gzip
+Requires: dosfstools, mkisofs, gzip, mtools
AutoReqProv: no
%define debug_package %{nil}
%setup -q
%build
-pushd bootcd
+pushd BootCD
# Build the reference image
-./prep.sh -a $(uname -i) -r $([ -f "/etc/fedora-release" ] && awk ' { print $4 } ' /etc/fedora-release || echo 4)
+./prep.sh %{pldistro}
# Build the default configuration (PlanetLab)
./build.sh
%install
rm -rf $RPM_BUILD_ROOT
-pushd bootcd
+pushd BootCD
# Install the reference image and build scripts
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}