6 # build is expected to export the following rpm variables
7 # %{distroname} : e.g. Fedora
8 # %{distrorelease} : e.g. 8
9 # %{slice_rpms_plus} : as a +++ separated list of rpms from the build dir
11 %define nodefamily %{pldistro}-%{distroname}-%{_arch}
12 %define obsolete_nodefamily %{pldistro}-%{_arch}
14 %define name slicerepo-%{nodefamily}
18 # pldistro already in the rpm name
19 #%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
20 %define release %{taglevel}%{?date:.%{date}}
23 Packager: PlanetLab Europe <build@onelab.eu>
24 Distribution: PlanetLab %{plrelease}
25 URL: %(echo %{url} | cut -d ' ' -f 2)
27 Summary: The yum repository for slices, to be installed on the myplc-side
32 Group: System Environment/Base
33 Source0: %{name}-%{version}.tar.gz
34 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
35 # other archs must be able to install this
41 %define debug_package %{nil}
44 This rpm contains all the rpms that might ship on a sliver image
45 they come organized into a yum repository
51 echo nothing to do at build time for slicerepo
54 rm -rf $RPM_BUILD_ROOT
56 repo=slice-%{nodefamily}
57 install -d -m 755 $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
58 rpms=$(echo %{slice_rpms_plus} | sed -e 's,+++, ,g')
59 for rpm in $rpms; do rsync %{_topdir}/$rpm $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/ ; done
61 install -D -m 644 %{_topdir}/RPMS/yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/yumgroups.xml
62 # do not do this yet, as plc.d/packages will do it anyway
63 #createrepo -g yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo
66 rm -rf $RPM_BUILD_ROOT
69 service plc start packages
72 %defattr(-,root,root,-)
73 /var/www/html/install-rpms/slice-%{nodefamily}
74 # don't overwrite yumgroups.xml if exists
75 %config(noreplace) /var/www/html/install-rpms/slice-%{nodefamily}/yumgroups.xml
78 * Mon Apr 12 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-4
79 - fix unmatched $ in URL svn keywords
81 * Fri Apr 02 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-3
82 - choice between various pldistros is not made at build time, but at run time
83 - relies on GetNodeFlavour to expose the node's fcdistro - requires PLCAPI-5.0-5
84 - in addition, the baseurl for the myplc repo is http:// and not https:// anymore
85 - the https method does not work on fedora 12, and GPG is used below anyway
87 * Fri Mar 12 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-2
88 - new slicerepo package for exposing stuff to slivers