Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
kiwi
kiwi.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kiwi.spec of Package kiwi
# # spec file for package kiwi (Version 3.01) # # Copyright (c) 2009 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/ # # needsrootforbuild Url: http://kiwi.berlios.de Name: kiwi BuildRequires: perl-Config-IniFiles perl-XML-LibXML perl-libwww-perl BuildRequires: hal-devel module-init-tools screen zlib-devel BuildRequires: gcc-c++ libxslt swig %if %{suse_version} > 1020 BuildRequires: fdupes %endif %ifarch %ix86 x86_64 BuildRequires: syslinux %endif %if %{suse_version} > 1010 BuildRequires: libqt4 libqt4-devel %else BuildRequires: freetype2-devel libpng-devel qt qt-devel %endif %if %{suse_version} > 1030 BuildRequires: libexpat-devel libsatsolver-devel rpm-devel %endif %if %{suse_version} <= 1010 Requires: qt %endif Requires: perl = %{perl_version} Requires: perl-XML-LibXML perl-libwww-perl screen coreutils Requires: perl-XML-LibXML-Common perl-XML-SAX perl-Config-IniFiles Requires: kiwi-tools libxslt checkmedia %if %{suse_version} > 1030 Requires: satsolver-tools %endif Summary: OpenSuSE - KIWI Image System Provides: kiwi2 <= 2.14 Obsoletes: kiwi2 <= 2.14 Version: 3.01 Release: 13.<RELEASE2> Group: System/Management License: GPL v2 or later Source: %{name}.tar.bz2 Source1: %{name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build Recommends: smart zypper %description The OpenSuSE KIWI Image System provides a complete operating system image solution for Linux supported hardware platforms as well as for virtualization systems like Xen. Authors: -------- Marcus Schaefer <ms@novell.com> %ifarch %ix86 x86_64 %package -n kiwi-pxeboot License: GPL v2 or later Requires: syslinux Summary: OpenSuSE - KIWI Image System PXE boot structure Obsoletes: kiwi2-pxeboot <= 2.14 Provides: kiwi2-pxeboot <= 2.14 Group: System/Management %description -n kiwi-pxeboot PXE basic directory structure and pre-build boot images Authors: -------- Marcus Schaefer <ms@novell.com> %endif %package -n kiwi-tools License: GPL v2 or later Summary: OpenSuSE - KIWI tools collection Obsoletes: kiwi2-tools <= 2.14 Provides: kiwi2-tools <= 2.14 Group: System/Management %description -n kiwi-tools This package contains the OpenSuSE - KIWI tools set usable in and outside of operating system images Authors: -------- Marcus Schaefer <ms@novell.com> %ifarch %ix86 x86_64 %package -n kiwi-pxeboot-prebuild License: GPL v2 only Requires: syslinux Summary: OpenSuSE - KIWI TFTP prebuild boot images Obsoletes: kiwi2-pxeboot-prebuild <= 2.14 Provides: kiwi2-pxeboot-prebuild <= 2.14 Group: System/Management %description -n kiwi-pxeboot-prebuild This package contains the OpenSuSE - KIWI TFTP prebuild boot images Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 %package -n kiwi-desc-isoboot License: GPL v2 or later Requires: kiwi = %{version} Requires: syslinux cdrkit-cdrtools-compat Summary: OpenSuSE - KIWI Image System ISO boot Obsoletes: kiwi2-desc-isoboot <= 2.14 Provides: kiwi2-desc-isoboot <= 2.14 Group: System/Management %description -n kiwi-desc-isoboot kiwi boot (initrd) image for activating system images on ISO media Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 %package -n kiwi-desc-usbboot License: GPL v2 or later Requires: kiwi = %{version} Summary: OpenSuSE - KIWI Image System USB boot Obsoletes: kiwi2-desc-usbboot <= 2.14 Provides: kiwi2-desc-usbboot <= 2.14 Group: System/Management %description -n kiwi-desc-usbboot kiwi boot (initrd) image for activating system images on USB stick Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 %package -n kiwi-desc-vmxboot License: GPL v2 or later Requires: kiwi = %{version} Requires: qemu multipath-tools Summary: OpenSuSE - KIWI Image System Virtual Machine boot Obsoletes: kiwi2-desc-vmxboot <= 2.14 Provides: kiwi2-desc-vmxboot <= 2.14 Group: System/Management %description -n kiwi-desc-vmxboot kiwi boot (initrd) image for activating system images on virtual disk Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 ppc ppc64 %package -n kiwi-desc-netboot License: GPL v2 or later Requires: kiwi = %{version} Summary: OpenSuSE - KIWI Image System PXE network boot Obsoletes: kiwi2-desc-netboot <= 2.14 Provides: kiwi2-desc-netboot <= 2.14 Group: System/Management %description -n kiwi-desc-netboot kiwi boot (initrd) image for activating system images via TFTP Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 %package -n kiwi-desc-xenboot License: GPL v2 or later Requires: kiwi = %{version} Summary: OpenSuSE - KIWI Image System Xen Virtual Machine boot Obsoletes: kiwi2-desc-xenboot <= 2.14 Provides: kiwi2-desc-xenboot <= 2.14 Group: System/Management %description -n kiwi-desc-xenboot kiwi boot (initrd) image for activating a Xen image by xm Authors: -------- Marcus Schaefer <ms@novell.com> %endif %ifarch %ix86 x86_64 %package -n kiwi-desc-oemboot License: GPL v2 only Requires: kiwi = %{version} Requires: qemu multipath-tools cdrkit-cdrtools-compat Summary: OpenSuSE - KIWI image descriptions Obsoletes: kiwi2-desc-oemboot <= 2.14 Provides: kiwi2-desc-oemboot <= 2.14 Group: System/Management %description -n kiwi-desc-oemboot This package contains the OpenSuSE - KIWI image descriptions. Each image description exists in a single directory and contains an oemboot image description %endif %package -n kiwi-doc License: LGPL v2.0 or later Summary: OpenSuSE - KIWI Image System Documentation Group: Documentation/Howto %description -n kiwi-doc This package contains the documentation and manual pages for the KIWI Image System Authors: -------- Thomas Schraitle Marcus Schaefer %package -n kiwi-instsource License: GPL v2 or later Requires: kiwi = %{version} Requires: inst-source-utils createrepo Summary: KIWI - Installation Source creation Group: System/Management %description -n kiwi-instsource This package contains modules used for installation source creation. With those it is possible to create a valid installation repository from blank RPM file trees. The created tree can be used directly for the image creation process afterwards. This package allows using the Authors: -------- Jan-Christoph Bornschlegel <jcborn@novell.com> %prep %setup -n kiwi %build # empty because of rpmlint warning rpm-buildroot-usage %install # build export K_USER=-1 # set to -1 to prevent building boot images, set to 0 to enable export K_ARCH=`uname -m | grep -q ^i && echo ix86 || uname -m` test -e /.buildenv || export K_USER=-1 # no buildenv, no boot image build test -e /.buildenv && . /.buildenv make buildroot=$RPM_BUILD_ROOT CFLAGS="$RPM_OPT_FLAGS" %ifarch %ix86 x86_64 if [ "$UID" = "$K_USER" ];then # prepare and create prebuilt PXE boot images... (cd tools/dbuslock && make install) mkdir -p $RPM_BUILD_ROOT/srv/tftpboot/pxelinux.cfg mkdir -p $RPM_BUILD_ROOT/srv/tftpboot/boot mkdir -p /usr/share/kiwi/modules mkdir -p /usr/share/kiwi/repo mkdir -p /usr/share/kiwi/image/netboot rm -f /usr/share/kiwi/modules/* for i in `find modules/ -type f`;do cp $i /usr/share/kiwi/modules;done cp -a system/suse-repo /usr/share/kiwi/repo cd modules pxedefault=$RPM_BUILD_ROOT/srv/tftpboot/pxelinux.cfg/default echo "# /.../" > $pxedefault echo "# KIWI boot image setup" >> $pxedefault echo "# select boot label according to your system image" >> $pxedefault echo "# ..." >> $pxedefault echo "DEFAULT Local-Boot" >> $pxedefault images=" netboot/suse-SLES10 " for i in $images;do rootName=`echo $i | tr / -` rootName=`echo $rootName \(latest service pack\)` echo "#DEFAULT $rootName" >> $pxedefault done echo >> $pxedefault echo "LABEL Local-Boot" >> $pxedefault echo " localboot 0" >> $pxedefault for i in $images;do rootName=`echo $i | tr / -` ../kiwi.pl --root $RPM_BUILD_ROOT/root-$rootName --prepare ../system/boot/$K_ARCH/$i --logfile terminal ../kiwi.pl --create $RPM_BUILD_ROOT/root-$rootName \ -d $RPM_BUILD_ROOT/srv/tftpboot/boot --logfile terminal rm -rf $RPM_BUILD_ROOT/root-$rootName* echo >> $pxedefault echo "LABEL $rootName" >> $pxedefault ( pushd $RPM_BUILD_ROOT/srv/tftpboot/boot xenkernel="" xenloader="" initrd="" kernel="" for n in *$rootName*;do echo $n | grep -q xen$ && xenkernel=$n || true echo $n | grep -q xen.gz$ && xenloader=$n || true echo $n | grep -q [0-9].gz$ && initrd=$n || true echo $n | grep -q kernel && kernel=$n || true done popd ../kiwi.pl --setup-splash \ $RPM_BUILD_ROOT/srv/tftpboot/boot/$initrd && \ rm -f $RPM_BUILD_ROOT/srv/tftpboot/boot/$initrd && \ initrd=`echo $initrd | sed -e "s@.gz@.splash.gz@"` pushd $RPM_BUILD_ROOT/srv/tftpboot/boot cd $RPM_BUILD_ROOT/srv/tftpboot/boot if [ -n "$xenkernel" ];then echo " kernel mboot.c32" >> $pxedefault echo " append boot/$xenloader --- boot/$xenkernel vga=0x314 ramdisk_size=512000 ramdisk_blocksize=4096 splash=silent showopts --- boot/$initrd" >> $pxedefault echo " IPAPPEND 2" >> $pxedefault else echo " kernel boot/$kernel" >> $pxedefault echo " append initrd=boot/$initrd vga=0x314 ramdisk_size=512000 ramdisk_blocksize=4096 splash=silent showopts" >> $pxedefault echo " IPAPPEND 2" >> $pxedefault fi popd ) done rm -f $RPM_BUILD_ROOT/srv/tftpboot/boot/*.md5 rm -f $RPM_BUILD_ROOT/srv/tftpboot/boot/*.kernel chmod 644 $pxedefault else echo "cannot build prebuild images without root privileges" true fi %endif #install cd $RPM_BUILD_DIR/kiwi #mkdir -p $RPM_BUILD_ROOT/etc/permissions.d #echo "/srv/tftpboot/upload/ root:root 0755" \ # > $RPM_BUILD_ROOT/etc/permissions.d/kiwi make buildroot=$RPM_BUILD_ROOT \ doc_prefix=$RPM_BUILD_ROOT/%{_defaultdocdir} \ man_prefix=$RPM_BUILD_ROOT/%{_mandir} \ install touch kiwi.loader %ifarch %ix86 x86_64 if [ ! "$UID" = "$K_USER" ];then install -m 644 pxeboot/pxelinux.0.config \ $RPM_BUILD_ROOT/srv/tftpboot/pxelinux.cfg/default fi %else # no PXE boot setup for non x86 archs rm -rf $RPM_BUILD_ROOT/srv/tftpboot rm -rf $RPM_BUILD_ROOT/etc/permissions.d/kiwi %endif test -f $RPM_BUILD_ROOT/srv/tftpboot/pxelinux.0 && \ echo /srv/tftpboot/pxelinux.0 > kiwi.loader test -f $RPM_BUILD_ROOT/srv/tftpboot/mboot.c32 && \ echo /srv/tftpboot/mboot.c32 >> kiwi.loader install -m 644 tools/README \ $RPM_BUILD_ROOT/usr/share/doc/packages/kiwi/README.tools rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/kiwi/kiwi-man %perl_process_packlist rm -f $RPM_BUILD_ROOT/%{perl_vendorarch}/KIWI/example.pl ./.links %if %{suse_version} > 1020 %fdupes $RPM_BUILD_ROOT/srv/tftpboot %fdupes $RPM_BUILD_ROOT/usr/share/kiwi/image %fdupes $RPM_BUILD_ROOT/usr/share/doc/packages/kiwi/examples %fdupes $RPM_BUILD_ROOT/usr/share/doc/packages/kiwi/schema %endif cat kiwi.loader %clean rm -rf $RPM_BUILD_ROOT #================================================= # KIWI files... #------------------------------------------------- %files %defattr(-, root, root) %dir %{_datadir}/kiwi %dir %{_datadir}/kiwi/image %{_datadir}/kiwi/.revision %{_datadir}/kiwi/modules %{_datadir}/kiwi/repo %exclude %{_datadir}/kiwi/modules/KIWICollect.pm %exclude %{_datadir}/kiwi/modules/KIWIRepoMetaHandler.pm %exclude %{_datadir}/kiwi/modules/KIWIUtil.pm %{_datadir}/kiwi/tests %{_datadir}/kiwi/xsl %{_sbindir}/kiwi %{perl_vendorarch}/KIWI %{perl_vendorarch}/auto/KIWI /var/adm/perl-modules/kiwi #================================================= # KIWI doc... #------------------------------------------------- %files -n kiwi-doc %defattr(-, root, root) %dir %{_defaultdocdir}/kiwi %doc %{_mandir}/man1/kiwi.1.gz %doc %{_mandir}/man1/KIWI::images.sh.1.gz %doc %{_mandir}/man1/KIWI::config.sh.1.gz %doc %{_defaultdocdir}/kiwi/COPYING %doc %{_defaultdocdir}/kiwi/examples %doc %{_defaultdocdir}/kiwi/kiwi.pdf %doc %{_defaultdocdir}/kiwi/ChangeLog %doc %{_defaultdocdir}/kiwi/schema #================================================= # KIWI instsource... #------------------------------------------------- %files -n kiwi-instsource %defattr(-, root, root) %{_datadir}/kiwi/modules/KIWICollect.pm %{_datadir}/kiwi/modules/KIWIUtil.pm %{_datadir}/kiwi/modules/KIWIRepoMetaHandler.pm /usr/bin/suse-isolinux #================================================= # KIWI-pxeboot files... # ------------------------------------------------ %ifarch %ix86 x86_64 %files -n kiwi-pxeboot -f kiwi.loader %defattr(-, root, root) %doc /srv/tftpboot/README #%config /etc/permissions.d/kiwi %dir /srv/tftpboot %dir /srv/tftpboot/KIWI %dir /srv/tftpboot/pxelinux.cfg %dir /srv/tftpboot/image %dir /srv/tftpboot/upload %dir /srv/tftpboot/boot /srv/tftpboot/pxelinux.cfg/default %endif #================================================= # KIWI-pxeboot-prebuild files... # ------------------------------------------------ %ifarch %ix86 x86_64 %files -n kiwi-pxeboot-prebuild %defattr(-, root, root) %doc /srv/tftpboot/README.prebuild /srv/tftpboot/boot %endif #================================================= # KIWI-tools files... # ------------------------------------------------ %files -n kiwi-tools %defattr(-, root, root) %doc %{_defaultdocdir}/kiwi/README.tools %exclude /usr/bin/suse-isolinux /usr/bin/* #================================================= # KIWI-desc-*... # ------------------------------------------------ %ifarch %ix86 x86_64 %files -n kiwi-desc-isoboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/isoboot %doc %{_datadir}/kiwi/image/isoboot/README %{_datadir}/kiwi/image/isoboot/suse* %endif %ifarch %ix86 x86_64 %files -n kiwi-desc-vmxboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/vmxboot %doc %{_datadir}/kiwi/image/vmxboot/README %{_datadir}/kiwi/image/vmxboot/suse* %endif %ifarch %ix86 x86_64 %files -n kiwi-desc-usbboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/usbboot %doc %{_datadir}/kiwi/image/usbboot/README %{_datadir}/kiwi/image/usbboot/suse* %endif %ifarch %ix86 x86_64 ppc ppc64 %files -n kiwi-desc-netboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/netboot %doc %{_datadir}/kiwi/image/netboot/README %{_datadir}/kiwi/image/netboot/suse* %endif %ifarch %ix86 x86_64 %files -n kiwi-desc-xenboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/xenboot %doc %{_datadir}/kiwi/image/xenboot/README %{_datadir}/kiwi/image/xenboot/suse* %endif %ifarch %ix86 x86_64 %files -n kiwi-desc-oemboot %defattr(-, root, root) %dir %{_datadir}/kiwi/image/oemboot %doc %{_datadir}/kiwi/image/oemboot/README %{_datadir}/kiwi/image/oemboot/suse* %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