Blob Blame History Raw
Name:           mkosi
Version:        12
Release:        %autorelease
Summary:        Create bespoke OS images

License:        LGPLv2+

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%global recoreq %{?el7:Requires}%{!?el7:Recommends}

%{recoreq}:     dnf
%{recoreq}:     gnupg
%{recoreq}:     xz
%{recoreq}:     tar
%{recoreq}:     e2fsprogs
%{recoreq}:     squashfs-tools
%{recoreq}:     veritysetup
%if 0%{?el7} == 0
Recommends:     debootstrap
Recommends:     arch-install-scripts
Recommends:     edk2-ovmf
Recommends:     btrfs-progs
Recommends:     dosfstools
Recommends:     cpio
Recommends:     zstd
Recommends:     python3dist(argcomplete)
Recommends:     python3dist(cryptography)

A fancy wrapper around "dnf --installroot", "debootstrap" and
"pacstrap", that may generate disk images with a number of bells and

Generated images are tailed to the purose. This means GPT disk labels
are used by default, though MBR disk labels are supported, and only
systemd based images may be generated.

%autosetup -p1



%license LICENSE

%pytest tests/ -v

# just a smoke test for syntax or import errors
%buildroot/usr/bin/mkosi --help >/dev/null