2017-09-04 17:53:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package mkosi
|
|
|
|
#
|
2023-11-17 21:29:31 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-09-04 17:53:51 +02: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 22:28:25 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-04 17:53:51 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-11-18 14:17:59 +01:00
|
|
|
%define pythons python3
|
2023-11-17 21:29:31 +01:00
|
|
|
|
2017-09-04 17:53:51 +02:00
|
|
|
Name: mkosi
|
2023-11-17 21:29:31 +01:00
|
|
|
Version: 18
|
2017-09-04 17:53:51 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Build Legacy-Free OS Images
|
2020-01-04 22:28:25 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2017-09-04 17:53:51 +02:00
|
|
|
Group: System/Management
|
2020-01-04 22:28:25 +01:00
|
|
|
URL: https://github.com/systemd/mkosi
|
2017-09-04 17:53:51 +02:00
|
|
|
Source: https://github.com/systemd/mkosi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2023-11-17 21:29:31 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: %{pythons}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pandoc
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python3 >= 3.9
|
2017-09-04 17:53:51 +02:00
|
|
|
Requires: squashfs
|
2021-10-20 22:14:53 +02:00
|
|
|
Requires: tar
|
|
|
|
Requires: xz
|
|
|
|
Recommends: arch-install-scripts
|
|
|
|
Recommends: btrfsprogs
|
|
|
|
Recommends: debootstrap >= 1.0.117
|
|
|
|
Recommends: dnf >= 4.8.0
|
2017-09-04 17:53:51 +02:00
|
|
|
Recommends: dosfstools
|
2021-10-20 22:14:53 +02:00
|
|
|
Recommends: dpkg
|
2017-09-04 17:53:51 +02:00
|
|
|
Recommends: edk2-ovmf
|
|
|
|
Recommends: gnupg
|
2021-10-20 22:14:53 +02:00
|
|
|
Recommends: pacman >= 6.0.1
|
2017-09-04 17:53:51 +02:00
|
|
|
Recommends: veritysetup
|
2021-10-20 22:14:53 +02:00
|
|
|
Recommends: zstd
|
2018-02-12 20:36:31 +01:00
|
|
|
BuildArch: noarch
|
2021-12-03 17:44:15 +01:00
|
|
|
ExclusiveArch: x86_64 aarch64
|
2017-09-04 17:53:51 +02: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
|
2023-11-17 21:29:31 +01:00
|
|
|
tools/make-man-page.sh
|
|
|
|
%pyproject_wheel
|
2017-09-04 17:53:51 +02:00
|
|
|
|
|
|
|
%install
|
2023-11-17 21:29:31 +01:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}/mkosi
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
cp %{buildroot}%{python3_sitelib}/mkosi/resources/mkosi.1* %{buildroot}%{_mandir}/man1/
|
2017-09-04 17:53:51 +02:00
|
|
|
|
|
|
|
%check
|
2023-11-17 21:29:31 +01:00
|
|
|
%pytest
|
2017-09-04 17:53:51 +02:00
|
|
|
|
|
|
|
%files
|
2021-10-20 22:14:53 +02:00
|
|
|
%doc mkosi.md README.md
|
2017-09-04 17:53:51 +02:00
|
|
|
%license LICENSE
|
2023-11-17 21:29:31 +01:00
|
|
|
%{_bindir}/mkosi
|
|
|
|
%{_mandir}/man1/mkosi.1*
|
|
|
|
%{python3_sitelib}/mkosi
|
|
|
|
%{python3_sitelib}/mkosi-%{version}.dist-info
|
2017-09-04 17:53:51 +02:00
|
|
|
|
|
|
|
%changelog
|