Summary: Minimal LiveCD boot image RPM for Mock-ing around Name: min Version: 0.0.3 Release: 0%{?dist}%{?extra_release} Source0: %{name}.ks License: GPLv2+ Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot URL: http://ovirt.org/ BuildRequires: livecd-tools BuildRequires: min-builder # XXX missing livecd-tools deps BuildRequires: libselinux-python, rhpl # XXX missing rhpl deps BuildRequires: dbus-python %define app_root %{_datadir}/%{name} # disable debuginfo, makes no sense for boot image and it is created empty anyway %define debug_package %{nil} %description The minimal ISO boot image for testing. At the moment, this RPM just packages prebuilt ISO. %prep %setup -cT cp %{SOURCE0} . %build ##cd %{name}-%{version} # min-builder %post adds mockbuild to sudoers # and pulls all packages from %{name}.ks into YUM cache sudo runuser - -c "cd $(pwd) && livecd-creator -c %{name}.ks -f %{name} \ --global-config --skip-minimize \ --cache=/var/cache/yum" # --cacheonly fails, missing in mock yum_cache: # REPOID/comps*xml REPOID/headers/*.hdr # but even w/o --cacheonly at least packages/*.rpm from yum_cache are used %install %{__rm} -rf %{buildroot} mkdir %{buildroot} %{__install} -d -m0755 %{buildroot}%{app_root} %{__install} -p -m0644 %{name}.iso %{buildroot}%{app_root} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{app_root}/%{name}.iso %changelog * Mon Oct 27 2008 Alan Pevec 0.0.3-0 - use livecd-creator --global-config --cacheonly * Tue Oct 07 2008 Alan Pevec 0.0.2-0 - enable selinux in image * Mon Oct 06 2008 Alan Pevec 0.0.1-0 - Initial build.