%define name bootcd
-%define version 3.3
+%define version 3.4
%define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Vendor: PlanetLab
Packager: PlanetLab Central <support@planet-lab.org>
-Distribution: PlanetLab 3.3
+Distribution: PlanetLab 4.0
URL: http://cvs.planet-lab.org/cvs/bootcd
Summary: Boot CD
%setup -q
%build
-pushd bootcd
+pushd BootCD
# Build the reference image
-./prep.sh -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}