forked from pool/python-kiwi
6f4609c799
- Delete obsolete repository types Deleted red-carpet, slack-site, up2date-mirrors, urpmi and yast2 from the allowed values list of the repository type attribute. This Fixes #1029 - Fixed build_in_buildservice stale references Fixed style issues reported on sphinx build. Also deleted pointers to non existing references - Delete suseRemovePackagesMarkedForDeletion Any package removal is controlled by kiwi itself. There is no need to provide a shell helper method that is rpm specific. This Fixes #1054 - Update doc/source/building/build_in_buildservice.rst Co-Authored-By: dcermak <45594031+dcermak@users.noreply.github.com> - Rework documentation about building on OBS - Added integration test guest image for OpenStack - Update suse integration tests per Factory changes The way plymouth themes are provided has changed on suse. The package plymouth-branding-openSUSE is no longer providing the theme named openSUSE. In fact the plan is to switch to the upstream bgrt theme which is provided in another package. This commit adapts to the changes in the distribution OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=140
633 lines
18 KiB
RPMSpec
633 lines
18 KiB
RPMSpec
#
|
|
# spec file for package kiwi
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX 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:
|
|
#
|
|
# https://github.com/SUSE/kiwi/issues
|
|
#
|
|
|
|
# If they aren't provided by a system installed macro, define them
|
|
%{!?_defaultdocdir: %global _defaultdocdir %{_datadir}/doc}
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
%{!?__python3: %global __python3 /usr/bin/python3}
|
|
|
|
# Expanded form required for debbuild's simpler engine
|
|
%if %{undefined python2_sitelib}
|
|
%global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
%endif
|
|
|
|
%if %{undefined python3_sitelib}
|
|
%global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
%endif
|
|
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
%global is_deb 1
|
|
%global pygroup python
|
|
%global sysgroup admin
|
|
%global develsuffix dev
|
|
%global update_alternatives %{_bindir}/update-alternatives
|
|
%else
|
|
%global pygroup Development/Languages/Python
|
|
%global sysgroup System/Management
|
|
%global develsuffix devel
|
|
%global update_alternatives %{_sbindir}/update-alternatives
|
|
%endif
|
|
|
|
Name: python-kiwi
|
|
Version: 9.17.38
|
|
Provides: kiwi-schema = 6.6
|
|
Release: 0
|
|
Url: https://github.com/SUSE/kiwi
|
|
Summary: KIWI - Appliance Builder Next Generation
|
|
License: GPL-3.0-or-later
|
|
%if %{_vendor} == "debbuild"
|
|
# Needed to set Maintainer in output debs
|
|
Packager: Marcus Schaefer <ms@suse.de>
|
|
%endif
|
|
Group: %{pygroup}
|
|
Source: %{name}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?fedora} || 0%{?suse_version}
|
|
BuildRequires: gcc
|
|
BuildRequires: python3-devel
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: fdupes
|
|
%endif
|
|
BuildRequires: python-%{develsuffix}
|
|
BuildRequires: python-setuptools
|
|
%if 0%{?suse_version}
|
|
BuildRequires: shadow
|
|
BuildRequires: update-alternatives
|
|
%endif
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
BuildRequires: passwd
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
BuildRequires: chkconfig
|
|
%endif
|
|
|
|
%description
|
|
The KIWI Image System provides an operating system image builder
|
|
for Linux supported hardware platforms as well as for virtualization
|
|
and cloud systems like Xen, KVM, VMware, EC2 and more.
|
|
|
|
# python2-kiwi
|
|
%package -n python2-kiwi
|
|
Summary: KIWI - Appliance Builder Next Generation
|
|
Group: %{pygroup}
|
|
Provides: python-kiwi = %{version}-%{release}
|
|
%if 0%{?fedora} || 0%{?suse_version}
|
|
Recommends: jing
|
|
%endif
|
|
%if 0%{?debian} || 0%{?ubuntu} || 0%{?fedora} || 0%{?rhel}
|
|
Requires: python-yaml
|
|
%else
|
|
Requires: python-PyYAML
|
|
%endif
|
|
Requires: python-docopt
|
|
Requires: python-future
|
|
Requires: python-lxml
|
|
Requires: python-requests
|
|
Requires: python-setuptools
|
|
Requires: python-six
|
|
Requires: python-xattr
|
|
# tools used by kiwi
|
|
%if 0%{?suse_version}
|
|
Requires: update-alternatives
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
%ifarch x86_64
|
|
Requires: grub2-x86_64-efi
|
|
%endif
|
|
%ifarch %{ix86} x86_64
|
|
Recommends: gfxboot
|
|
%endif
|
|
Requires: qemu-tools
|
|
Requires: squashfs
|
|
Requires: gptfdisk
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Requires: chkconfig
|
|
Requires(post): chkconfig
|
|
Requires(postun): chkconfig
|
|
Requires: qemu-img
|
|
Requires: squashfs-tools
|
|
Requires: gdisk
|
|
Requires: dnf
|
|
Provides: kiwi-packagemanager:dnf
|
|
Provides: kiwi-packagemanager:yum
|
|
%endif
|
|
%if 0%{?suse_version}
|
|
# If it's available, let's pull it in
|
|
Recommends: dnf
|
|
%endif
|
|
%if 0%{?fedora} >= 26 || 0%{?suse_version}
|
|
Requires: zypper
|
|
Provides: kiwi-packagemanager:zypper
|
|
%endif
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
Requires: debootstrap
|
|
Requires: qemu-utils
|
|
Requires: squashfs-tools
|
|
Requires: gdisk
|
|
%endif
|
|
Requires: dosfstools
|
|
Requires: e2fsprogs
|
|
Requires: xorriso
|
|
Requires: grub2
|
|
Requires: kiwi-man-pages
|
|
Requires: kiwi-tools
|
|
Requires: lvm2
|
|
Requires: mtools
|
|
Requires: parted
|
|
Requires: kpartx
|
|
Requires: rsync
|
|
Requires: tar >= 1.2.7
|
|
%if %{_vendor} != "debbuild"
|
|
# Not supported with debbuild yet
|
|
%ifarch %arm aarch64
|
|
Requires: u-boot-tools
|
|
%endif
|
|
%ifarch s390 s390x
|
|
Requires: s390-tools
|
|
%endif
|
|
%endif
|
|
|
|
%description -n python2-kiwi
|
|
Python 2 library of the KIWI Image System. Provides an operating system
|
|
image builder for Linux supported hardware platforms as well as for
|
|
virtualization and cloud systems like Xen, KVM, VMware, EC2 and more.
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
# python3-kiwi
|
|
%package -n python3-kiwi
|
|
Summary: KIWI - Appliance Builder Next Generation
|
|
Group: Development/Languages/Python
|
|
Recommends: jing
|
|
%if 0%{?ubuntu} || 0%{?debian}
|
|
Requires: python3-yaml
|
|
%else
|
|
Requires: python3-PyYAML
|
|
%endif
|
|
Requires: python3-docopt
|
|
Requires: python3-future
|
|
Requires: python3-lxml
|
|
Requires: python3-requests
|
|
Requires: python3-setuptools
|
|
Requires: python3-six
|
|
Requires: python3-xattr
|
|
# tools used by kiwi
|
|
%if 0%{?suse_version}
|
|
Requires: update-alternatives
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
%ifarch x86_64
|
|
Requires: grub2-x86_64-efi
|
|
%endif
|
|
%ifarch %{ix86} x86_64
|
|
Recommends: gfxboot
|
|
%endif
|
|
Requires: qemu-tools
|
|
Requires: squashfs
|
|
Requires: gptfdisk
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Requires: chkconfig
|
|
Requires(post): chkconfig
|
|
Requires(postun): chkconfig
|
|
Requires: qemu-img
|
|
Requires: squashfs-tools
|
|
Requires: gdisk
|
|
Requires: dnf
|
|
Provides: kiwi-packagemanager:dnf
|
|
Provides: kiwi-packagemanager:yum
|
|
%endif
|
|
%if 0%{?suse_version}
|
|
# If it's available, let's pull it in
|
|
Recommends: dnf
|
|
%endif
|
|
%if 0%{?fedora} >= 26 || 0%{?suse_version}
|
|
Requires: zypper
|
|
Provides: kiwi-packagemanager:zypper
|
|
%endif
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
Requires: debootstrap
|
|
Requires: qemu-utils
|
|
Requires: squashfs-tools
|
|
Requires: gdisk
|
|
%endif
|
|
Requires: dosfstools
|
|
Requires: e2fsprogs
|
|
Requires: xorriso
|
|
Requires: grub2
|
|
Requires: kiwi-man-pages
|
|
Requires: kiwi-tools
|
|
Requires: lvm2
|
|
Requires: mtools
|
|
Requires: parted
|
|
Requires: kpartx
|
|
Requires: rsync
|
|
Requires: tar >= 1.2.7
|
|
%ifarch %arm aarch64
|
|
Requires: u-boot-tools
|
|
%endif
|
|
%ifarch s390 s390x
|
|
Requires: s390-tools
|
|
%endif
|
|
|
|
%description -n python3-kiwi
|
|
Python 3 library of the KIWI Image System. Provides an operating system
|
|
image builder for Linux supported hardware platforms as well as for
|
|
virtualization and cloud systems like Xen, KVM, VMware, EC2 and more.
|
|
|
|
%endif
|
|
|
|
%package -n kiwi-tools
|
|
Summary: KIWI - Collection of Boot Helper Tools
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n kiwi-tools
|
|
This package contains a small set of helper tools used for the
|
|
kiwi created initial ramdisk which is used to control the very
|
|
first boot of an appliance. The tools are not meant to be used
|
|
outside of the scope of kiwi appliance building.
|
|
|
|
%if %{_vendor} != "debbuild"
|
|
%ifarch %{ix86} x86_64
|
|
%package -n kiwi-pxeboot
|
|
Summary: KIWI - PXE boot structure
|
|
Requires: syslinux
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Requires(pre): shadow-utils
|
|
%else
|
|
Requires(pre): shadow
|
|
%endif
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n kiwi-pxeboot
|
|
This package contains the basic PXE directory structure which is
|
|
needed to serve kiwi built images via PXE.
|
|
%endif
|
|
%endif
|
|
|
|
%package -n dracut-kiwi-lib
|
|
Summary: KIWI - Dracut kiwi Library
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} || 0%{?debian}
|
|
# Ubuntu 16.04 OBS environments refuse to set up due to
|
|
# initramfs-tools / dracut conflict and initramfs-tools is required
|
|
# to set up the build environment...
|
|
BuildRequires: dracut
|
|
%endif
|
|
Requires: bc
|
|
Requires: cryptsetup
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
Requires: btrfs-progs
|
|
Requires: gdisk
|
|
Requires: dracut-network
|
|
%else
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
Requires: btrfs-tools
|
|
Requires: gdisk
|
|
%else
|
|
Requires: btrfsprogs
|
|
Requires: gptfdisk
|
|
%endif
|
|
%endif
|
|
Requires: coreutils
|
|
Requires: e2fsprogs
|
|
Requires: grep
|
|
Requires: lvm2
|
|
Requires: mdadm
|
|
Requires: parted
|
|
Requires: util-linux
|
|
Requires: xfsprogs
|
|
Requires: dialog
|
|
Requires: pv
|
|
Requires: curl
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
Requires: xz-utils
|
|
Requires: dmsetup
|
|
%else
|
|
Requires: xz
|
|
Requires: device-mapper
|
|
%endif
|
|
%ifarch s390 s390x
|
|
Requires: s390-tools
|
|
%endif
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n dracut-kiwi-lib
|
|
This package contains a collection of methods to provide a library
|
|
for tasks done in other kiwi dracut modules
|
|
|
|
%package -n dracut-kiwi-oem-repart
|
|
Summary: KIWI - Dracut module for oem(repart) image type
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} || 0%{?debian}
|
|
# Ubuntu 16.04 OBS environments refuse to set up due to
|
|
# initramfs-tools / dracut conflict and initramfs-tools is required
|
|
# to set up the build environment...
|
|
BuildRequires: dracut
|
|
%endif
|
|
Requires: dracut-kiwi-lib
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n dracut-kiwi-oem-repart
|
|
This package contains the kiwi-repart dracut module which is
|
|
used to repartition the oem disk image to the current disk
|
|
geometry according to the setup in the kiwi image configuration
|
|
|
|
%package -n dracut-kiwi-oem-dump
|
|
Summary: KIWI - Dracut module for oem(install) image type
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} || 0%{?debian}
|
|
# Ubuntu 16.04 OBS environments refuse to set up due to
|
|
# initramfs-tools / dracut conflict and initramfs-tools is required
|
|
# to set up the build environment...
|
|
BuildRequires: dracut
|
|
%endif
|
|
Requires: dracut-kiwi-lib
|
|
Requires: kexec-tools
|
|
%if 0%{?suse_version} || 0%{?debian} || 0%{?ubuntu}
|
|
Requires: multipath-tools
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Requires: device-mapper-multipath
|
|
%endif
|
|
Requires: gawk
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n dracut-kiwi-oem-dump
|
|
This package contains the kiwi-dump dracut module which is
|
|
used to install an oem image onto a target disk. It implements
|
|
a simple installer which allows for user selected target disk
|
|
or unattended installation to target. The source of the image
|
|
to install could be either from media(CD/DVD/USB) or from
|
|
remote
|
|
|
|
%package -n dracut-kiwi-live
|
|
Summary: KIWI - Dracut module for iso(live) image type
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} || 0%{?debian}
|
|
# Ubuntu 16.04 OBS environments refuse to set up due to
|
|
# initramfs-tools / dracut conflict and initramfs-tools is required
|
|
# to set up the build environment...
|
|
BuildRequires: dracut
|
|
%endif
|
|
Requires: dialog
|
|
Requires: xfsprogs
|
|
Requires: e2fsprogs
|
|
Requires: util-linux
|
|
%if 0%{?debian} || 0%{?ubuntu}
|
|
Requires: dmsetup
|
|
Requires: dracut-network
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Requires: device-mapper
|
|
Requires: dracut-network
|
|
%endif
|
|
%if 0%{?suse_version}
|
|
Requires: device-mapper
|
|
%endif
|
|
Requires: dracut
|
|
Requires: xorriso
|
|
Requires: parted
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n dracut-kiwi-live
|
|
This package contains the kiwi-live dracut module which is used
|
|
for booting iso(live) images built with KIWI
|
|
|
|
%package -n dracut-kiwi-overlay
|
|
Summary: KIWI - Dracut module for vmx(+overlay) image type
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} || 0%{?debian}
|
|
# Ubuntu 16.04 OBS environments refuse to set up due to
|
|
# initramfs-tools / dracut conflict and initramfs-tools is required
|
|
# to set up the build environment...
|
|
BuildRequires: dracut
|
|
%endif
|
|
Requires: util-linux
|
|
Requires: dracut
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n dracut-kiwi-overlay
|
|
This package contains the kiwi-overlay dracut module which is used
|
|
for booting vmx images built with KIWI and configured to use an
|
|
overlay root filesystem
|
|
|
|
%package -n kiwi-man-pages
|
|
Summary: KIWI - manual pages
|
|
License: GPL-3.0-or-later
|
|
Group: %{sysgroup}
|
|
|
|
%description -n kiwi-man-pages
|
|
Provides manual pages to describe the kiwi commands
|
|
|
|
%prep
|
|
%setup -q -n kiwi-%{version}
|
|
|
|
# Drop shebang for kiwi/xml_parse.py, as we don't intend to use it
|
|
# as an independent script
|
|
sed -e "s|#!/usr/bin/env python||" -i kiwi/xml_parse.py
|
|
|
|
%build
|
|
# Build Python 2 version
|
|
python2 setup.py build --cflags="${RPM_OPT_FLAGS}"
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
# Build Python 3 version
|
|
python3 setup.py build --cflags="${RPM_OPT_FLAGS}"
|
|
%endif
|
|
|
|
%install
|
|
# Install Python 2 version
|
|
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?is_deb:--install-layout=deb}
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
# Install Python 3 version
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?is_deb:--install-layout=deb}
|
|
%endif
|
|
|
|
# Install dracut modules
|
|
make buildroot=%{buildroot}/ install_dracut
|
|
|
|
# Install documentation in PDF format
|
|
make buildroot=%{buildroot}/ docdir=%{_defaultdocdir}/ install_package_docs
|
|
|
|
%if %{_vendor} != "debbuild"
|
|
# init alternatives setup
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
# alternatives setup for kiwi -> kiwi-ng-py_ver binary
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/kiwi
|
|
ln -s %{_sysconfdir}/alternatives/kiwi \
|
|
%{buildroot}%_bindir/kiwi
|
|
|
|
# alternatives setup for kiwi-ng -> kiwi-ng-py_ver binary
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/kiwi-ng
|
|
ln -s %{_sysconfdir}/alternatives/kiwi-ng \
|
|
%{buildroot}%_bindir/kiwi-ng
|
|
|
|
# alternatives setup for kiwicompat -> kiwicompat-py_ver binary
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/kiwicompat
|
|
ln -s %{_sysconfdir}/alternatives/kiwicompat \
|
|
%{buildroot}%_bindir/kiwicompat
|
|
|
|
# kiwi pxeboot directory structure to be packed in kiwi-pxeboot
|
|
%ifarch %{ix86} x86_64
|
|
for i in KIWI pxelinux.cfg image upload boot; do \
|
|
mkdir -p %{buildroot}/srv/tftpboot/$i ;\
|
|
done
|
|
%endif
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version}
|
|
%fdupes %{buildroot}/srv/tftpboot
|
|
%endif
|
|
|
|
%post -n python2-kiwi
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwi kiwi %_bindir/kiwi-ng-2 10
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwi-ng kiwi-ng %_bindir/kiwi-ng-2 10
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwicompat kiwicompat %_bindir/kiwicompat-2 10
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
%post -n python3-kiwi
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwi kiwi %_bindir/kiwi-ng-3 10
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwi-ng kiwi-ng %_bindir/kiwi-ng-3 10
|
|
%{update_alternatives} \
|
|
--install %_bindir/kiwicompat kiwicompat %_bindir/kiwicompat-3 10
|
|
%endif
|
|
|
|
%preun -n python2-kiwi
|
|
%{update_alternatives} \
|
|
--remove kiwi %_bindir/kiwi
|
|
%{update_alternatives} \
|
|
--remove kiwi %_bindir/kiwi-ng
|
|
%{update_alternatives} \
|
|
--remove kiwicompat %_bindir/kiwicompat
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
%preun -n python3-kiwi
|
|
%{update_alternatives} \
|
|
--remove kiwi %_bindir/kiwi
|
|
%{update_alternatives} \
|
|
--remove kiwi %_bindir/kiwi-ng
|
|
%{update_alternatives} \
|
|
--remove kiwicompat %_bindir/kiwicompat
|
|
%endif
|
|
|
|
%if %{_vendor} != "debbuild"
|
|
%ifarch %{ix86} x86_64
|
|
%pre -n kiwi-pxeboot
|
|
#============================================================
|
|
# create user and group tftp if they does not exist
|
|
if ! /usr/bin/getent group tftp >/dev/null; then
|
|
%{_sbindir}/groupadd -r tftp
|
|
fi
|
|
if ! /usr/bin/getent passwd tftp >/dev/null; then
|
|
%{_sbindir}/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \
|
|
-r -s /bin/false tftp
|
|
fi
|
|
%endif
|
|
%endif
|
|
|
|
%files -n python2-kiwi
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/kiwi-ng-2*
|
|
%{_bindir}/kiwicompat-2*
|
|
%ghost %{_bindir}/kiwi
|
|
%ghost %{_bindir}/kiwi-ng
|
|
%ghost %{_bindir}/kiwicompat
|
|
%ghost %_sysconfdir/alternatives/kiwi
|
|
%ghost %_sysconfdir/alternatives/kiwi-ng
|
|
%ghost %_sysconfdir/alternatives/kiwicompat
|
|
%{python2_sitelib}/*
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?ubuntu} >= 1804 || 0%{?debian} >= 9
|
|
%files -n python3-kiwi
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/kiwi-ng-3*
|
|
%{_bindir}/kiwicompat-3*
|
|
%ghost %{_bindir}/kiwi
|
|
%ghost %{_bindir}/kiwi-ng
|
|
%ghost %{_bindir}/kiwicompat
|
|
%ghost %_sysconfdir/alternatives/kiwi
|
|
%ghost %_sysconfdir/alternatives/kiwi-ng
|
|
%ghost %_sysconfdir/alternatives/kiwicompat
|
|
%{python3_sitelib}/*
|
|
%endif
|
|
|
|
%files -n kiwi-man-pages
|
|
%defattr(-, root, root)
|
|
%dir %{_defaultdocdir}/python-kiwi
|
|
%{_defaultdocdir}/python-kiwi/kiwi.pdf
|
|
%{_defaultdocdir}/python-kiwi/LICENSE
|
|
%{_defaultdocdir}/python-kiwi/README
|
|
%config %_sysconfdir/bash_completion.d/kiwi-ng.sh
|
|
%doc %{_mandir}/man8/*
|
|
|
|
%files -n kiwi-tools
|
|
%defattr(-, root, root)
|
|
%{_bindir}/dcounter
|
|
%{_bindir}/isconsole
|
|
%{_bindir}/kversion
|
|
%{_bindir}/utimer
|
|
|
|
%files -n dracut-kiwi-lib
|
|
%defattr(-, root, root)
|
|
%{_usr}/lib/dracut/modules.d/99kiwi-lib
|
|
|
|
%files -n dracut-kiwi-oem-repart
|
|
%defattr(-, root, root)
|
|
%{_usr}/lib/dracut/modules.d/90kiwi-repart
|
|
|
|
%files -n dracut-kiwi-oem-dump
|
|
%defattr(-, root, root)
|
|
%{_usr}/lib/dracut/modules.d/90kiwi-dump
|
|
|
|
%files -n dracut-kiwi-live
|
|
%defattr(-, root, root)
|
|
%{_usr}/lib/dracut/modules.d/90kiwi-live
|
|
|
|
%files -n dracut-kiwi-overlay
|
|
%defattr(-, root, root)
|
|
%{_usr}/lib/dracut/modules.d/90kiwi-overlay
|
|
|
|
%if %{_vendor} != "debbuild"
|
|
%ifarch %{ix86} x86_64
|
|
%files -n kiwi-pxeboot
|
|
%defattr(-, root, root)
|
|
%dir %attr(0755,tftp,tftp) /srv/tftpboot
|
|
%dir /srv/tftpboot/KIWI
|
|
%dir /srv/tftpboot/pxelinux.cfg
|
|
%dir /srv/tftpboot/image
|
|
%dir /srv/tftpboot/upload
|
|
%dir /srv/tftpboot/boot
|
|
%endif
|
|
%endif
|
|
|
|
%changelog
|