# If you have trouble building locally ('make local') try adding # %libguestfs_buildnet 1 # to your ~/.rpmmacros file. # Enable to build using a network repo # Default is disabled %if %{defined libguestfs_buildnet} %global buildnet %{libguestfs_buildnet} %else %global buildnet 0 %endif %global supermindir %{_libdir}/a-fedora-appliance/supermin.d %global appliancedir %{_localstatedir}/lib/a-fedora-appliance Name: a-fedora-appliance Version: @VERSION@ Release: @RELEASE@%{?dist} Summary: A package that contains a Fedora appliance Group: Applications/Emulators License: GPLv2+ #URL: http://people.redhat.com/~rjones/ Source0: %{name}-%{version}.tar.gz BuildRequires: @PACKAGELIST@ Requires: @PACKAGELIST@ BuildRequires: createrepo BuildRequires: supermin >= 5.1.6 Requires: qemu-kvm >= 0.12 %description This is a package that contains a Fedora appliance, otherwise known as a small Fedora virtual machine. You can boot this virtual machine, log into it, and use it as a throwaway to test Fedora things. Or you can use it as a test of your hypervisor or virtual machine management tools. Note: The appliance only contains command line tools (no X11 or office suites). rpm and yum installation of packages is supported. %if 0%{?fedora} >= 1 This package contains an appliance built for Fedora %{fedora}. %endif %prep %setup -q %build %if %{buildnet} %define extra %{nil} %else mkdir repo find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t repo createrepo repo cat > yum.conf < - 1.0-@RELEASE@ - Initial release.