Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Live
kiwi-profiled-livecd-kde.i586
kiwi-profiled-livecd-x11.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kiwi-profiled-livecd-x11.spec of Package kiwi-profiled-livecd-kde.i586
# # spec file for package kiwi-image-livecd-kde (Version 11.1) # # Copyright (c) 2008 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-profiled-livecd-x11 Url: http://kiwi.berlios.de/ BuildRequires: kiwi-image-livecd-x11 clicfs genisoimage syslinux BuildRequires: checkmedia Version: 11.2 Release: 28 Group: System/Boot Summary: Testrun for live cd License: BSD 3-Clause BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: ia64 ppc64 s390x s390 ppc #!BuildIgnore: build-compare rpmlint-Factory # do not compress the ISO - takes ages %define _binary_payload w.ufdio %description The package contains a huge ISO %package promo Group: System/Boot License: BSD 3-Clause Summary: KDE live CD %description promo The package contains a huge ISO %package iso Group: System/Boot License: BSD 3-Clause Summary: KDE live CD %description iso The package contains a huge ISO %prep cp -a /CD1 . %build cd CD1 name=$(echo %name | sed -e "s,.*-livecd-,,") cliclog=/usr/share/suse/packages/clic readonlyfile=$(ls -1 *read-only*) if test -f "$cliclog"; then unclicfs $readonlyfile mkclicfs -c 5 fsdata.ext3 $readonlyfile -l $cliclog rm fsdata.ext3 fi %install cd CD1 SORTFILE=`mktemp /var/tmp/m_cd-XXXXXX` SORTFILE=`mktemp /var/tmp/m_cd-XXXXXX` SOURCE2=`mktemp -d /var/tmp/m_cd-XXXXXX` ROOT_ON_CD=suse BOOT_BASE_DIR=boot BOOT_IMAGE=$BOOT_BASE_DIR/image BOOT_ISOLINUX=$BOOT_BASE_DIR/loader SOURCE=. #======================================= # check /boot/<arch>/loader layout #--------------------------------------- if [ -d $SOURCE/$BOOT_BASE_DIR/i386 ] ; then BOOT_BASE_DIR=$BOOT_BASE_DIR/i386 BOOT_IMAGE=$BOOT_BASE_DIR/image BOOT_ISOLINUX=$BOOT_BASE_DIR/loader elif [ -d $SOURCE/$BOOT_BASE_DIR/x86_64 ] ; then BOOT_BASE_DIR=$BOOT_BASE_DIR/x86_64 BOOT_IMAGE=$BOOT_BASE_DIR/image BOOT_ISOLINUX=$BOOT_BASE_DIR/loader fi echo "$SOURCE2/$BOOT_BASE_DIR/boot.catalog 3" >$SORTFILE echo "$BOOT_BASE_DIR/boot.catalog 3" >>$SORTFILE echo "$SOURCE/$BOOT_BASE_DIR/boot.catalog 3" >>$SORTFILE find $SOURCE/$BOOT_ISOLINUX -printf "%p 1\n" >>$SORTFILE # last priority wins echo "$SOURCE/$BOOT_ISOLINUX/isolinux.bin 2" >>$SORTFILE echo "sortfile has" cat $SORTFILE echo "end sortfile" volid="openSUSE Live CD KDE" %if "%name" == "kiwi-profiled-livecd-gnome" volid="openSUSE Live CD GNOME" %endif mkdir -p $RPM_BUILD_ROOT/CD1/ mbrid=`cat boot/grub/mbrid` /usr/bin/genisoimage -R -J -pad -joliet-long -p "KIWI - http://kiwi.berlios.de" -publisher "SUSE LINUX Products GmbH" -sort $SORTFILE -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_BASE_DIR/loader/isolinux.bin -c $BOOT_BASE_DIR/boot.catalog -hide $BOOT_BASE_DIR/boot.catalog -hide-joliet $BOOT_BASE_DIR/boot.catalog -V "$volid" -o $RPM_BUILD_ROOT/CD1/%{name}.%{_target_cpu}.iso . # offset other than 1 breaks kiwi's assumption that it can mount part1 and get the disk /usr/bin/isohybrid -id $mbrid -type 0x83 -offset 0 $RPM_BUILD_ROOT/CD1/%{name}.%{_target_cpu}.iso tagmedia --pad 150 --md5 --check $RPM_BUILD_ROOT/CD1/%{name}.%{_target_cpu}.iso checkmedia $RPM_BUILD_ROOT/CD1/%{name}.%{_target_cpu}.iso || true size=`stat -c %s $RPM_BUILD_ROOT/CD1/%{name}.%{_target_cpu}.iso` if test $size -gt 734003200; then echo "TOO LARGE" exit 1 fi cd .. %if "%name" == "kiwi-profiled-livecd-gnome" cp CD1/config.isoclient CD1/config.gnome.isoclient %endif mv CD1/* $RPM_BUILD_ROOT/CD1 %files %defattr(-, root, root) %exclude /CD1/%{name}.%{_target_cpu}.iso %if "%name" == "kiwi-profiled-livecd-gnome" %exclude /CD1/config.gnome.isoclient %endif /CD1 %files iso %defattr(-, root, root) /CD1/%{name}.%{_target_cpu}.iso %if "%name" == "kiwi-profiled-livecd-gnome" %files promo %defattr(-, root, root) %dir /CD1 /CD1/openSUSE-*read-only* /CD1/config.gnome.isoclient %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor