Marcus Schäfer
463ac359df
- Update system files setup for containers The attribute provide_system_files creates a meta file in the root tree named 'systemfiles'. The contents of this file were produced by just a dump of the package database so far. For a more generic use of this data some adaptions were needed. First we allow to skip packages matching a pattern from being part of the system files. Next we do not put ghost and doc files into account. And last we handle library files in a different file named 'systemfiles.libs' where we do not add symlink targets if the target path is also part of the package. The consumer of this information is flake-pilot which syncs that library system files from the host via --copy-links. This allows a more generic use with regards to versioned libraries e.g. libc - Drop /dev/pts from bind mount locations This has created havoc in the Fedora build environments by fully unmounting /dev/pts and breaking the builders for subsquent tasks. This is a partial revert of commit daf1323c5ded7e4e7783205f5e30457b40eb322f. - Don't take ghost files into account When creating the system files information do not take ghost files and artifact files into account - xorriso: respect efiparttable and gpt_hybrid_mbr This should make the xorriso-based ISO build path respect the 'efiparttable' and 'gpt_hybrid_mbr' settings when building a UEFI-compatible image, making it write a GPT disk label by default OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=276
78 lines
3.1 KiB
Bash
78 lines
3.1 KiB
Bash
# Maintainer: Marcus Schaefer <ms@suse.com>
|
|
# Maintainer: David Cassany <dcassany@suse.com>
|
|
|
|
pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay')
|
|
arch=(x86_64)
|
|
pkgver=10.2.4
|
|
pkgrel=0
|
|
pkgdesc="KIWI - Appliance Builder Next Generation"
|
|
url="https://github.com/SUSE/kiwi/tarball/master"
|
|
license=('GPL3')
|
|
makedepends=(make gcc python-build python-docopt python-installer python-lxml python-poetry-core python-requests python-setuptools python-simplejson python-sphinx python-sphinx_rtd_theme python-wheel python-yaml shadow grep)
|
|
provides=(kiwi-ng kiwi)
|
|
source=("${pkgname}.tar.gz")
|
|
changelog="${pkgname}.changes"
|
|
md5sums=('acaa57bf8a8afb9586b8513cf5bbd753')
|
|
|
|
|
|
build() {
|
|
export LANG=C.UTF-8
|
|
export LC_ALL=C.UTF-8
|
|
cd kiwi-${pkgver}
|
|
# Temporarily switch things back to docopt
|
|
# FIXME: Drop this hack as soon as we can...
|
|
sed -e 's/docopt-ng.*/docopt = ">=0.6.2"/' -i pyproject.toml
|
|
make -C doc man
|
|
python3 -m build --no-isolation --wheel
|
|
}
|
|
|
|
package_python-kiwi(){
|
|
depends=(python-docopt python-simplejson python-lxml python-requests python-setuptools python-yaml grub qemu squashfs-tools gptfdisk pacman e2fsprogs xfsprogs btrfs-progs libisoburn lvm2 mtools parted multipath-tools rsync tar shadow screen kiwi-man-pages)
|
|
optdepends=('gnupg: keyring creation for APT package manager')
|
|
cd kiwi-${pkgver}
|
|
python3 -m installer --destdir "${pkgdir}/" dist/*.whl
|
|
ln -sr "${pkgdir}/usr/bin/kiwi-ng" "${pkgdir}/usr/bin/kiwi"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_kiwi-man-pages(){
|
|
cd kiwi-${pkgver}
|
|
make buildroot="${pkgdir}/" docdir="/usr/share/doc/${pkgname}" install_package_docs
|
|
}
|
|
|
|
package_dracut-kiwi-lib(){
|
|
depends=(cryptsetup btrfs-progs gptfdisk coreutils e2fsprogs grep lvm2 mdadm parted util-linux xfsprogs dialog curl xz device-mapper dracut pv bc)
|
|
cd kiwi-${pkgver}
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/99kiwi-lib
|
|
cp -a dracut/modules.d/99kiwi-lib ${pkgdir}/usr/lib/dracut/modules.d/
|
|
}
|
|
|
|
package_dracut-kiwi-oem-repart(){
|
|
depends=(dracut-kiwi-lib=${pkgver})
|
|
cd kiwi-${pkgver}
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-repart
|
|
cp -a dracut/modules.d/90kiwi-repart ${pkgdir}/usr/lib/dracut/modules.d/
|
|
}
|
|
|
|
package_dracut-kiwi-oem-dump(){
|
|
depends=(dracut-kiwi-lib=${pkgver} multipath-tools kexec-tools)
|
|
cd kiwi-${pkgver}
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-dump
|
|
cp -a dracut/modules.d/90kiwi-dump ${pkgdir}/usr/lib/dracut/modules.d/
|
|
cp -a dracut/modules.d/99kiwi-dump-reboot ${pkgdir}/usr/lib/dracut/modules.d/
|
|
}
|
|
|
|
package_dracut-kiwi-live(){
|
|
depends=(dracut dialog xfsprogs e2fsprogs util-linux device-mapper libisoburn parted)
|
|
cd kiwi-${pkgver}
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-live
|
|
cp -a dracut/modules.d/90kiwi-live ${pkgdir}/usr/lib/dracut/modules.d/
|
|
}
|
|
|
|
package_dracut-kiwi-overlay(){
|
|
depends=(dracut util-linux)
|
|
cd kiwi-${pkgver}
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-overlay
|
|
cp -a dracut/modules.d/90kiwi-overlay ${pkgdir}/usr/lib/dracut/modules.d/
|
|
}
|