From 4cdaf17e2872e1d63e26fdefcd6f13c2a2b9a131 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Nov 04 2016 23:39:50 +0000 Subject: Package approved --- diff --git a/.gitignore b/.gitignore index e69de29..73d0929 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mkosi-1.tar.gz diff --git a/mkosi.spec b/mkosi.spec new file mode 100644 index 0000000..33aaf2e --- /dev/null +++ b/mkosi.spec @@ -0,0 +1,49 @@ +Name: mkosi +Version: 1 +Release: 1%{?dist} +Summary: Create legacy-free OS images + +License: LGPLv2+ +URL: https://github.com/systemd/mkosi +Source0: https://github.com/systemd/mkosi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +Requires: python3 >= 3.5 +# for subprocess.run + +Recommends: debootstrap +Recommends: arch-install-scripts +Recommends: xz +Recommends: btrfs-progs +Recommends: dosfstools +Recommends: edk2-ovmf + +%description +A fancy wrapper around "dnf --installroot", "debootstrap" and +"pacstrap", 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 +%autosetup + +%build +# no build required + +%install +# It's just one file, and setup.py install would copy useless .egg-info +install -Dpt %{buildroot}%{_bindir}/ mkosi + +%files +%license LICENSE +%doc README.md +%_bindir/mkosi + +%changelog +* Thu Nov 3 2016 Zbigniew Jędrzejewski-Szmek - 1-1 +- Initial version diff --git a/sources b/sources index e69de29..c652ea3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e22bbc29b196addc241f599c7fe9a70f mkosi-1.tar.gz