File quickemu.spec of Package quickemu

#
# spec file for package quickemu
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 Luciano Santos <luc14n0@opensuse.org>
#
# 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.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _python_package 313

Name:           quickemu
Version:        4.x
Release:        0
Summary:        Quickly create and run optimised Windows, macOS and Linux desktop VMs
License:        MIT
Group:          Productivity/Clustering/Computing
URL:            https://github.com/quickemu-project/quickemu
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  make
BuildRequires:  pandoc
Requires:       qemu >= 6.0.0
Requires:       bash >= 4.0
Requires:       coreutils
Requires:       qemu-ovmf-x86_64
Requires:       grep
Requires:       jq
Requires:       lsb
Requires:       procps
Requires:       python%_python_package-base
Requires:       mkisofs
Requires:       usbutils
Requires:       util-linux
Requires:       sed
Requires:       /usr/bin/spicy
Requires:       swtpm
Requires:       wget
Requires:       xdg-user-dirs
Requires:       xrandr
Requires:       zsync
Requires:       unzip
BuildArch:      noarch

%description
Quickly create and run highly optimised desktop virtual machines for Linux,
macOS and Windows; with just two commands. You decide what operating system
you want to run and Quickemu will figure out the best way to do it for you.

%prep
%autosetup -p1

# Update Shebangs
find . -type f -exec sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3.13|g' {} +
find . -type f -exec sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' {} +

%build

%install
%make_install -C docs mandir=%{_mandir} bindir=%{_bindir}

%files
%license LICENSE
%doc README.md
%{_bindir}/quickemu
%{_bindir}/quickget
%{_bindir}/chunkcheck
%{_bindir}/quickreport
%{_mandir}/man1/quickemu.1%{?ext_man}
%{_mandir}/man5/quickemu_conf.5%{?ext_man}
%{_mandir}/man1/quickget.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by