3 %global mirror http://hakodate/mirrors/fedora/10/Fedora/x86_64/os/
5 Summary: Access and modify virtual machine disk images
10 Group: Development/Libraries
11 URL: http://et.redhat.com/~rjones/libguestfs/
12 Source0: http://et.redhat.com/~rjones/libguestfs/files/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15 BuildRequires: /usr/bin/pod2man
16 BuildRequires: /usr/bin/pod2text
17 BuildRequires: febootstrap
23 Libguestfs is a library for accessing and modifying guest disk images.
24 Amongst the things this is good for: making batch configuration
25 changes to guests, getting disk used/free statistics (see also:
26 virt-df), migrating between virtualization systems (see also:
27 virt-p2v), performing partial backups, performing partial guest
28 clones, cloning guests and changing registry/UUID/hostname info, and
31 Libguestfs uses Linux kernel and qemu code, and can access any type of
32 guest filesystem that Linux and qemu can, including but not limited
33 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
34 schemes, qcow, qcow2, vmdk.
36 Libguestfs provides ways to enumerate guest storage (eg. partitions,
37 LVs, what filesystem is in each LV, etc.). It can also run commands
38 in the context of the guest. Also you can access filesystems over FTP.
40 Libguestfs is a library that can be linked with C and C++ management
43 See also the 'guestfish' package for shell scripting and command line
48 Summary: Development tools and libraries for %{name}
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
54 %{name}-devel contains development tools and libraries
59 Summary: Shell for accessing and modifying virtual machine disk images
60 Group: Development/Tools
62 Requires: %{name} = %{version}-%{release}
63 Requires: /usr/bin/pod2text
66 %description -n guestfish
67 Guestfish is the Filesystem Interactive SHell, for accessing and
68 modifying virtual machine disk images from the command line and shell
77 %configure --with-mirror=%{mirror}
82 rm -rf $RPM_BUILD_ROOT
83 make DESTDIR=$RPM_BUILD_ROOT install
85 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
86 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
88 # Clean up the examples/ directory which will get installed in %doc.
97 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
105 %defattr(-,root,root,-)
108 %{_libdir}/libguestfs.so.*
112 %defattr(-,root,root,-)
113 %doc HACKING README examples
114 %{_libdir}/libguestfs.so
115 %{_mandir}/man3/guestfs.3*
116 %{_includedir}/guestfs.h
117 %{_includedir}/guestfs-actions.h
121 %defattr(-,root,root,-)
126 * Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1