-# @configure_input@
-
-#%global mirror http://hakodate/mirrors/fedora/10/Fedora/x86_64/os/
+@configure_input@
Summary: Access and modify virtual machine disk images
Name: libguestfs
BuildRequires: augeas-devel >= 0.5.0
BuildRequires: readline-devel
BuildRequires: qemu >= 0.10-7
+BuildRequires: createrepo
+
+# Build requirements for the appliance:
+# (see 'make-initramfs.sh.in' in the source)
+BuildRequires: kernel, bash, coreutils, lvm2, ntfs-3g, util-linux-ng
+BuildRequires: MAKEDEV, net-tools, augeas-libs, file
+BuildRequires: module-init-tools, procps, strace, iputils
# These are only required if you want to build the bindings for
# different languages:
%build
-#%configure --with-mirror=%{mirror}
%configure
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.a
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.la
-mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
-mv $RPM_BUILD_ROOT%{python_sitearch}/guestfs.py* \
- $RPM_BUILD_ROOT%{python_sitelib}/
+if [ "$RPM_BUILD_ROOT%{python_sitearch}" != "$RPM_BUILD_ROOT%{python_sitelib}" ]; then
+ mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
+ mv $RPM_BUILD_ROOT%{python_sitearch}/guestfs.py* \
+ $RPM_BUILD_ROOT%{python_sitelib}/
+fi
%clean
%changelog
-* Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1
+* Thu Apr 16 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1
+- New upstream version @VERSION@.
+
+* Thu Apr 16 2009 Richard Jones <rjones@redhat.com> - 0.9.9-12
+- Multiple fixes to get it to scratch build in Koji.
+
+* Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - 0.9.9-1
- Initial build.