6 %define nodefamily %{pldistro}-%{_arch}
8 %define name bootstrapfs-%{nodefamily}
12 # pldistro already in the rpm name
13 #%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
14 %define release %{taglevel}%{?date:.%{date}}
17 Packager: PlanetLab Central <support@planet-lab.org>
18 Distribution: PlanetLab %{plrelease}
19 URL: %(echo %{url} | cut -d ' ' -f 2)
21 Summary: The PlanetLab Bootstrap Filesystems for %{nodefamily}
26 Group: System Environment/Base
27 Source0: %{name}-%{version}.tar.gz
28 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
29 # other archs must be able to install this
32 Requires: tar, gnupg, sharutils, bzip2
35 %define debug_package %{nil}
39 The PlanetLab Bootstrap Filesystem(s) are downloaded by the
40 BootManager to instantiate a node with a new filesystem.
43 Summary: The (uncompressed) PlanetLab Bootstrap Filesystems for %{nodefamily}
44 Group: System Environment/Base
46 This package provides the same functions as %{name} but with uncompressed tarball for faster tests.
53 ./build.sh %{pldistro}
57 rm -rf $RPM_BUILD_ROOT
62 install -D -m 644 bootstrapfs-%{pldistro}-${arch}.tar.bz2 \
63 $RPM_BUILD_ROOT/var/www/html/boot/bootstrapfs-%{pldistro}-${arch}.tar.bz2
64 install -D -m 644 bootstrapfs-%{pldistro}-${arch}.tar \
65 $RPM_BUILD_ROOT/var/www/html/boot/bootstrapfs-%{pldistro}-${arch}.tar
67 for pkgs in $(ls ../build/config.%{pldistro}/bootstrapfs-*.pkgs) ; do
68 NAME=$(basename $pkgs .pkgs | sed -e s,bootstrapfs-,,)
69 install -D -m 644 %{pldistro}-filesystems/bootstrapfs-${NAME}-${arch}.tar.bz2 \
70 $RPM_BUILD_ROOT/var/www/html/boot/bootstrapfs-${NAME}-${arch}.tar.bz2
71 install -D -m 644 %{pldistro}-filesystems/bootstrapfs-${NAME}-${arch}.tar \
72 $RPM_BUILD_ROOT/var/www/html/boot/bootstrapfs-${NAME}-${arch}.tar
78 rm -rf $RPM_BUILD_ROOT
81 if [ -n "$SUDO_USER" ] ; then
82 # Allow user to delete the build directory
83 chown -h -R $SUDO_USER .
84 # Some temporary cdroot files like /var/empty/sshd and
85 # /usr/bin/sudo get created with non-readable permissions.
86 find . -not -perm +0600 -exec chmod u+rw {} \;
87 # Allow user to delete the built RPM(s)
88 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
94 %defattr(-,root,root,-)
95 /var/www/html/boot/bootstrapfs*.tar.bz2
98 %defattr(-,root,root,-)
99 /var/www/html/boot/bootstrapfs*.tar
102 * Thu Jan 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-6
103 - fix build bug when dealing with extensions
105 * Thu Dec 04 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-5
106 - optional package bootstrapfs-<pldiftr>-<arch>-plain comes with uncompressed images for faster tests
108 * Fri Nov 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-4
109 - cosmetic changes in build: displays duration, and shows up in summary
111 * Mon Sep 01 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-3
112 - Do not overwrite yumgroups.xml upon updates of noderepo
114 * Thu Jul 03 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-2
115 - uses the right yum.conf when building images
117 * Mon May 05 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-1
118 - rpm release tag does not need pldistro as it is already part of the rpm name
120 * Wed Mar 26 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-0.1-2 BootstrapFS-1.0-0
121 - naming scheme changed, tarball name now contains ''nodefamily'' as <pldistro>-<arch>
122 - new package named 'noderepo' allows to ship the full set of node rpms to another (arch) myplc
124 * Fri Jan 18 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-0.1-1 bootstrapfs-0.1-2
125 - search more carefully for alternate pkgs files
126 - handling of sysconfig/crontab and creation of site_admin reviewed
127 - (this tag is set with module-tag.py)
129 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -