%setup -q
%build
-pushd bootcd
+pushd BootCD
# Build the reference image
-./prep.sh -a $(uname -i) -r $([ -f "/etc/fedora-release" ] && awk ' { if ($3=="Core") print $4; else print $3 } ' /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}