# build is expected to export the following rpm variables # %{distroname} : e.g. Fedora # %{distrorelease} : e.g. 8 # %{slice_rpms_plus} : as a +++ separated list of rpms from the build dir %define nodefamily %{pldistro}-%{distroname}-%{_arch} %define obsolete_nodefamily %{pldistro}-%{_arch} %define name slicerepo-%{nodefamily} %define version 2.1 %define taglevel 2 # pldistro already in the rpm name #%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} %define release %{taglevel}%{?date:.%{date}} # we don't really need the standard postinstall process from rpm that # strips files and byte-compiles python files. all files in this # package are comming from other rpm files and they've already went # through this post install processing. - baris %define __os_install_post %{nil} Vendor: OneLab Packager: PlanetLab Europe Distribution: PlanetLab %{plrelease} URL: %{SCMURL} Summary: The yum repository for slices, to be installed on the myplc-side Name: %{name} Version: %{version} Release: %{release} License: BSD Group: System Environment/Base Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root # other archs must be able to install this BuildArch: noarch BuildRequires: rsync Requires: myplc %define debug_package %{nil} %description This rpm contains all the rpms that might ship on a sliver image they come organized into a yum repository %prep %setup -q %build echo nothing to do at build time for slicerepo %install rm -rf $RPM_BUILD_ROOT repo=slice-%{nodefamily} install -d -m 755 $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo rpms=$(echo %{slice_rpms_plus} | sed -e 's,+++, ,g') for rpm in $rpms; do rsync %{_topdir}/$rpm $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/ ; done ### yumgroups install -D -m 644 %{_topdir}/RPMS/yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo/yumgroups.xml # do not do this yet, as plc.d/packages will do it anyway #createrepo -g yumgroups.xml $RPM_BUILD_ROOT/var/www/html/install-rpms/$repo %clean rm -rf $RPM_BUILD_ROOT %post service plc start packages %files %defattr(-,root,root,-) /var/www/html/install-rpms/slice-%{nodefamily} # don't overwrite yumgroups.xml if exists %config(noreplace) /var/www/html/install-rpms/slice-%{nodefamily}/yumgroups.xml %changelog * Fri Sep 28 2012 Thierry Parmentelat - nodeimage-2.1-2 - exclude slice repos when running plc.d/packages start * Fri Apr 13 2012 Thierry Parmentelat - nodeimage-2.1-1 - renamed as nodeimage - works on both mainline and lxc * Thu Feb 16 2012 Thierry Parmentelat - bootstrapfs-2.0-14 - changes needed for build with yumexcludes defined in a separate pkgs file * Wed Aug 31 2011 Thierry Parmentelat - bootstrapfs-2.0-13 - plc.d/packages: rewrote comments about some corner cases where it fails - plc.d/packages: marginally more robust * Fri Jun 10 2011 Thierry Parmentelat - bootstrapfs-2.0-12 - minor tweak in plc.d/packages * Mon Jun 06 2011 Baris Metin - bootstrapfs-2.0-11 - sl6 templates * Thu Feb 17 2011 Thierry Parmentelat - bootstrapfs-2.0-10 - bugfix for multi-flavour deployments * Fri Feb 04 2011 Thierry Parmentelat - bootstrapfs-2.0-9 - for multi-flavours : 'packages' step in plc.d now handles vserver links and related hacks in yumgroups * Thu Jan 27 2011 Thierry Parmentelat - bootstrapfs-2.0-8 - no semantic change - attempt to speed up build * Sun Jan 23 2011 Thierry Parmentelat - bootstrapfs-2.0-7 - yum repo template for f14 nodes - tweaks the way /etc/plc.d/packages works * Mon Jul 05 2010 Baris Metin - BootstrapFS-2.0-6 - add sha1sum - module name changes * Tue Apr 27 2010 Talip Baris Metin - BootstrapFS-2.0-5 - support different flavours of vservers on nodes * Mon Apr 12 2010 Thierry Parmentelat - BootstrapFS-2.0-4 - fix unmatched $ in URL svn keywords * Fri Apr 02 2010 Thierry Parmentelat - BootstrapFS-2.0-3 - choice between various pldistros is not made at build time, but at run time - relies on GetNodeFlavour to expose the node's fcdistro - requires PLCAPI-5.0-5 - in addition, the baseurl for the myplc repo is http:// and not https:// anymore - the https method does not work on fedora 12, and GPG is used below anyway * Fri Mar 12 2010 Thierry Parmentelat - BootstrapFS-2.0-2 - new slicerepo package for exposing stuff to slivers