# @configure_input@
-%global mirror http://hakodate/mirrors/fedora/10/Fedora/x86_64/os/
+#%global mirror http://hakodate/mirrors/fedora/10/Fedora/x86_64/os/
Summary: Access and modify virtual machine disk images
Name: libguestfs
# Basic build requirements:
BuildRequires: /usr/bin/pod2man
BuildRequires: /usr/bin/pod2text
-BuildRequires: febootstrap
+BuildRequires: febootstrap >= 1.5
+BuildRequires: augeas-devel
# If you want to build the bindings for different languages:
BuildRequires: ocaml
%build
-%configure --with-mirror=%{mirror}
+#%configure --with-mirror=%{mirror}
+%configure
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
# not the site dir.
rm -rf .deps .libs
popd
+# Same for ocaml/examples.
+pushd ocaml/examples
+make clean
+rm Makefile*
+popd
+
find $RPM_BUILD_ROOT -name perllocal.pod -delete
find $RPM_BUILD_ROOT -name .packlist -delete
%files devel
%defattr(-,root,root,-)
-%doc HACKING README examples
+%doc HACKING README examples html/guestfs.3.html html/pod.css
%{_libdir}/libguestfs.so
%{_mandir}/man3/guestfs.3*
%{_includedir}/guestfs.h
%files -n guestfish
%defattr(-,root,root,-)
+%doc html/guestfish.1.html html/pod.css
%{_bindir}/guestfish
%{_mandir}/man1/guestfish.1*
%files ocaml-devel
%defattr(-,root,root,-)
+%doc ocaml/examples
%{_libdir}/ocaml/guestfs/*.a
%{_libdir}/ocaml/guestfs/*.cmxa
%{_libdir}/ocaml/guestfs/*.cmx