File image-garden.spec of Package image-garden
#
# spec file for image-garden
#
# Copyright (c) 2025 Maciej Borzecki <maciek.borzecki@gmail.com>
#
# 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/
#
%global debug_package %{nil}
Name: image-garden
Version: 0.3
Release: 0
Summary: Create virtual machine images with ease
License: Apache-2.0
URL: https://gitlab.com/zygoon/image-garden
Group: Development/Tools/Other
Source0: https://gitlab.com/zygoon/image-garden/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
Patch0: 0001-opensuse-override-default-OVMF-blobs-location.patch
Patch1: 0002-replace-genisoimage-with-xorriso.patch
BuildRequires: make
BuildArch: noarch
Requires: qemu
Requires: xorriso
Requires: xz
Requires: whois
Requires: wget
%description
Generate and operate virtual images for testing software on commonly used operating systems.
%prep
%autosetup -v -n %{name}-v%{version} -p1
%build
make %{?_smp_mflags} prefix=%{_prefix}
%check
:
%install
%make_install prefix=%{_prefix}
install -m0755 -d %{buildroot}%{_defaultdocdir}
mv -v %{buildroot}%{_datadir}/doc/image-garden %{buildroot}%{_defaultdocdir}
install -m0755 -d %{buildroot}%{_defaultlicensedir}/image-garden
install -m0644 LICENSE %{buildroot}%{_defaultlicensedir}/image-garden/LICENSE
%files
%license LICENSE
%doc README.md
%{_bindir}/image-garden
%{_defaultdocdir}/%{name}/NEWS*
%{_mandir}/man1/image-garden.1.gz
%{_includedir}/image-garden.mk
%changelog