File promo-dvd-parts.spec of Package promo-dvd-parts
#
# spec file for package promo
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kiwi-promo-dvd-parts
Url: http://kiwi.berlios.de/
BuildRequires: kiwi-image-livecd-gnome-promo-part
BuildRequires: kiwi-image-livecd-kde-promo-part
BuildRequires: installation-images
BuildRequires: libcdio-utils
Summary: Meta package for Promo DVD
License: BSD-3-Clause
Group: System/Boot
Version: 13.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: isolinux.cfg.patch
Source1: grub.cfg.patch
ExcludeArch: ia64 ppc64 s390x s390 ppc
# do not compress the meta data - takes ages
%define _binary_payload w.ufdio
%description
The package contains a huge ISO
%prep
%setup -T -c
%build
%install
dir=%{buildroot}/CD1
# copy all installation-images files
cp -a /SuSE %{buildroot}
%ifarch x86_64
# don't let the installer's grub config get in our way
rm -r "%{buildroot}/SuSE/openSUSE/CD1/EFI"
%endif
cp -a /CD1/boot $dir
# merge gnome live
cp -a /CD1/gnome/* $dir
mv $dir/config.isoclient $dir/config.gnome.isoclient
# merge kde live
cp -a /CD1/kde/* $dir
mv $dir/config.isoclient $dir/config.kde.isoclient
#
# patch boot loaders to list lives as well
cp /CD1/boot/*/loader/isolinux.cfg .
patch isolinux.cfg %{SOURCE0}
mv isolinux.cfg $dir/boot/%_arch/loader/isolinux.cfg
%ifarch x86_64
rm $dir/boot/grub2-efi/grub.cfg
cp /SuSE/openSUSE/CD1/EFI/BOOT/grub.cfg .
patch grub.cfg %{SOURCE1}
mv grub.cfg $dir/EFI/BOOT/grub.cfg
# those are hidden fat images used for hybrid booting in uefi mode.
# right now it contains files from either GNOME or KDE. Remove it to
# force kiwi to regenerate it later
rm $dir/boot/x86_64/efi
rm $dir/../SuSE/openSUSE/CD1/boot/x86_64/efi
%endif
ln $dir/boot/%_arch/loader/initrd $dir/boot/%_arch/loader/initrd.liv
ln $dir/boot/%_arch/loader/linux $dir/boot/%_arch/loader/linux.liv
# take installation images
rm $dir/boot/%_arch/loader/gfxboot.cfg
%files
/CD1
/SuSE
%changelog