2017-09-04 15:53:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package mkosi
|
|
|
|
#
|
2021-10-20 20:14:53 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-09-04 15:53:51 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-04 21:28:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-04 15:53:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mkosi
|
- update to version 11:
- Support for Rocky Linux, Alma Linux, and Gentoo has been added!
- A new `ManifestFormat=` option can be used to generate "manifest" files that
describe what packages were installed. With `json`, a JSON file that shows
the names and versions of all installed packages will be created. With
`changelog`, a longer human-readable file that shows package descriptions and
changelogs will be generated. This latter format should be considered
experimental and likely to change in later versions.
- A new `RemovePackages=` option can be used to uninstall packages after the
build and finalize scripts have been done. This is useful for the case where
packages are required by the build scripts, or pulled in as dependencies
for scriptlets of other packages, but are not necessary in the final image.
- A new `BaseImage=` option can be used to build "system extensions" a.k.a.
"sysexts" — partial images which are mounted on top of an existing system
to provide additional files under `/usr/`. See the
[systemd-sysext man page](https://www.freedesktop.org/software/systemd/man/systemd-sysext.html)
for more information.
- A new `CleanPackageMetadata=` option can be used to force or disable the
removal of package manager files. When this option is not used, they are
removed when the package manager is not installed in the final image.
- A new `UseHostRepositories=` option instructs mkosi to use repository
configuration from the host system, instead of the internal list.
- A new `SshAgent=` option configures the path to the ssh agent.
- A new `SshPort=` option overrides the port used for ssh.
- The `Verity=` setting supports a new value `signed`. When set, verity data
will be signed and the result inserted as an additional partition in the
image. See https://systemd.io/DISCOVERABLE_PARTITIONS for details about
signed disk images. This information is used by `systemd-nspawn`,
`systemd-dissect`, `systemd-sysext`, `systemd-portabled` and `systemd`'s
`RootImage=` setting (among others) to cryptographically validate the image
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mkosi?expand=0&rev=9
2021-11-25 20:30:13 +00:00
|
|
|
Version: 11
|
2017-09-04 15:53:51 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Build Legacy-Free OS Images
|
2020-01-04 21:28:25 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2017-09-04 15:53:51 +00:00
|
|
|
Group: System/Management
|
2020-01-04 21:28:25 +00:00
|
|
|
URL: https://github.com/systemd/mkosi
|
2017-09-04 15:53:51 +00:00
|
|
|
Source: https://github.com/systemd/mkosi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2021-10-20 20:14:53 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-02-12 19:36:31 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2021-10-20 20:14:53 +00:00
|
|
|
BuildRequires: pkgconfig(python3) >= 3.7
|
|
|
|
Requires: python3 >= 3.7
|
2017-09-04 15:53:51 +00:00
|
|
|
Requires: squashfs
|
2021-10-20 20:14:53 +00:00
|
|
|
Requires: tar
|
|
|
|
Requires: xz
|
|
|
|
Recommends: arch-install-scripts
|
|
|
|
Recommends: btrfsprogs
|
|
|
|
Recommends: debootstrap >= 1.0.117
|
|
|
|
Recommends: dnf >= 4.8.0
|
2017-09-04 15:53:51 +00:00
|
|
|
Recommends: dosfstools
|
2021-10-20 20:14:53 +00:00
|
|
|
Recommends: dpkg
|
2017-09-04 15:53:51 +00:00
|
|
|
Recommends: edk2-ovmf
|
|
|
|
Recommends: gnupg
|
2021-10-20 20:14:53 +00:00
|
|
|
Recommends: pacman >= 6.0.1
|
2017-09-04 15:53:51 +00:00
|
|
|
Recommends: veritysetup
|
2021-10-20 20:14:53 +00:00
|
|
|
Recommends: zstd
|
2018-02-12 19:36:31 +00:00
|
|
|
BuildArch: noarch
|
2021-10-20 20:14:53 +00:00
|
|
|
ExclusiveArch: x86_64
|
2017-09-04 15:53:51 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A fancy wrapper around dnf --installroot, debootstrap, pacstrap and zypper that
|
|
|
|
may generate disk images with a number of bells and whistles.
|
|
|
|
|
|
|
|
Generated images are "legacy-free". This means only GPT disk labels
|
|
|
|
(and no MBR disk labels) are supported, and only systemd based images
|
|
|
|
may be generated. Moreover, for bootable images only EFI systems are
|
|
|
|
supported (not plain MBR/BIOS).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2021-10-20 20:14:53 +00:00
|
|
|
%py3_build
|
2017-09-04 15:53:51 +00:00
|
|
|
|
|
|
|
%install
|
2021-10-20 20:14:53 +00:00
|
|
|
%py3_install
|
2017-09-04 15:53:51 +00:00
|
|
|
|
|
|
|
%check
|
2021-10-20 20:14:53 +00:00
|
|
|
%{buildroot}%{_bindir}/mkosi -h >/dev/null
|
2017-09-04 15:53:51 +00:00
|
|
|
|
|
|
|
%files
|
2021-10-20 20:14:53 +00:00
|
|
|
%doc mkosi.md README.md
|
2017-09-04 15:53:51 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/%{name}
|
2021-10-20 20:14:53 +00:00
|
|
|
%{_mandir}/man1/mkosi.1%{?ext_man}
|
|
|
|
%{python3_sitelib}/mkosi/
|
|
|
|
%{python3_sitelib}/mkosi-%{version}-py*.egg-info/
|
2017-09-04 15:53:51 +00:00
|
|
|
|
|
|
|
%changelog
|