2 # $Id: bootstrapfs.spec 7668 2008-01-08 11:49:43Z thierry $
4 %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/BootstrapFS/trunk/bootstrapfs.spec $
6 # build is expected to export the following rpm variables
7 # %{distroname} : e.g. Fedora
8 # %{distrorelease} : e.g. 8
9 # %{node_rpms_plus} : as a +++ separated list of rpms from the build dir
11 %define nodetype %{pldistro}%{distroname}%{_arch}
13 %define name noderepo-%{nodetype}
17 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
20 Packager: PlanetLab Central <support@planet-lab.org>
21 Distribution: PlanetLab %{plrelease}
22 URL: %(echo %{url} | cut -d ' ' -f 2)
24 Summary: The initial content of the yum repository for nodes
29 Group: System Environment/Base
30 Source0: %{name}-%{version}.tar.gz
31 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
33 BuildRequires: rsync createrepo
36 %define debug_package %{nil}
39 This rpm contains all the rpms designed for running on a PlanetLab node
40 they come organized into a yum repository
46 echo nothing to do at build time for noderepo
49 rm -rf $RPM_BUILD_ROOT
52 install -d -m 755 $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
53 rpms=$(echo %{node_rpms_plus} | sed -e 's,+++, ,g')
54 for rpm in $rpms; do rsync %{_topdir}/$rpm $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/ ; done
56 install -D -m 644 %{_topdir}/RPMS/yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
57 createrepo -g yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
60 rm -rf $RPM_BUILD_ROOT
63 service plc start packages
66 %defattr(-,root,root,-)
67 /var/www/html/install-rpms/%{nodetype}
70 * Tue Mar 4 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> -