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 name noderepo-%{distroname}-%{_arch}
15 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
18 Packager: PlanetLab Central <support@planet-lab.org>
19 Distribution: PlanetLab %{plrelease}
20 URL: %(echo %{url} | cut -d ' ' -f 2)
22 Summary: The initial content of the yum repository for nodes
27 Group: System Environment/Base
28 Source0: %{name}-%{version}.tar.gz
29 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
31 BuildRequires: rsync createrepo
33 %define debug_package %{nil}
36 This rpm contains all the rpms designed for running on a PlanetLab node
37 they come organized into a yum repository
43 echo nothing to do at build time for noderepo
46 rm -rf $RPM_BUILD_ROOT
48 repo=planetlab-%{distroname}-%{_arch}
49 install -d -m 755 $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
50 rpms=$(echo %{node_rpms_plus} | sed -e 's,+++, ,g')
51 for rpm in $rpms; do rsync $RPM_BUILD_ROOT/$rpm $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/ ; done
53 install -D -m 644 $RPM_BUILD_ROOT/RPMS/yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
54 createrepo -g yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
57 rm -rf $RPM_BUILD_ROOT
63 %defattr(-,root,root,-)
64 /var/www/html/install-rpms/planetlab-%{distroname}-%{_arch}
67 * Tue Mar 4 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> -