+#
+# $Id: bootmanager.spec 856 2007-09-21 13:54:58Z thierry $
+#
%define name bootmanager
-%define version 3.1.15
-%define release 3%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define version 3.1
+%define subversion 16
+
+%define release %{subversion}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Vendor: PlanetLab
Packager: PlanetLab Central <support@planet-lab.org>
URL: http://cvs.planet-lab.org/cvs/bootmanager
Summary: The PlanetLab Boot Manager
-Name: bootmanager
+Name: %{name}
Version: %{version}
Release: %{release}
License: BSD
%setup -q
%build
-pushd bootmanager
-
+pushd BootManager
./build.sh
-pushd support-files
-./buildnode.sh -r $([ -f "/etc/fedora-release" ] && awk ' { print $4 } ' /etc/fedora-release || echo "4")
-popd
-
popd
%install
rm -rf $RPM_BUILD_ROOT
-pushd bootmanager
+pushd BootManager
# Install source so that it can be rebuilt
find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/
install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh
-for file in \
- uudecode.gz \
- PlanetLab-Bootstrap.tar.bz2 ; do
- install -D -m 644 support-files/$file $RPM_BUILD_ROOT/var/www/html/boot/$file
-done
+
+# This is only required for 2.x bootcds.
+install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz
popd
%changelog
* Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -
- Initial build.
-