forked from pool/python-kiwi
Marcus Schäfer
227c8153ad
- Fixed name of secret variable The ci-update-build-tests action used a wrong variable name which does not exist in the github secrets. This commit fixes it and uses the correct variable name - Bump version: 9.24.21 → 9.24.22 - Revert "Revert "Fixed MicroOS build test"" This reverts commit 8c4464b8ff2af2642439ce92e1e2be497f2b0f4d. snapper default config has moved from /etc to /usr/share now hopefully for the last time - Fixed unit tests The pytest interface setup() method call has changed in a way that an additional parameter is passed to the method which leads to a python error at invocation time if the setup method does not define it. - build-tests: Update CentOS 8 test appliance to CentOS Stream 8 CentOS Linux 8 is now EOL, so switch over to CentOS Stream 8. - Fixed handling of oem reboot settings There are oem settings called oem-reboot, oem-reboot-interactive as well as oem-shutdown and oem-shutdown-interactive. When used the information is passed along to the profile but not evaluated by any initrd code. I don't know where on the way we lost the code that actually works with these settings but this commit makes them effective. This Fixes #2056 OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=213
72 lines
2.7 KiB
Bash
72 lines
2.7 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=9.24.23
|
|
pkgrel=0
|
|
pkgdesc="KIWI - Appliance Builder Next Generation"
|
|
url="https://github.com/SUSE/kiwi/tarball/master"
|
|
license=('GPL3')
|
|
makedepends=(python-setuptools gcc shadow grep)
|
|
provides=(kiwi-ng kiwi)
|
|
source=("${pkgname}.tar.gz")
|
|
changelog="${pkgname}.changes"
|
|
md5sums=('615bcb80225706fbc1b42b05181ca002')
|
|
|
|
|
|
build() {
|
|
cd kiwi-${pkgver}
|
|
python setup.py build
|
|
}
|
|
|
|
package_python-kiwi(){
|
|
depends=(python-docopt python-simplejson python-future python-lxml python-requests python-setuptools python-six python-pyxattr 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}
|
|
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
|
|
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/
|
|
}
|