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 # Basic build requirements:
16 BuildRequires: /usr/bin/pod2man
17 BuildRequires: /usr/bin/pod2text
18 BuildRequires: febootstrap
20 # If you want to build the bindings for different languages:
22 BuildRequires: perl-devel
23 BuildRequires: python-devel
30 Libguestfs is a library for accessing and modifying guest disk images.
31 Amongst the things this is good for: making batch configuration
32 changes to guests, getting disk used/free statistics (see also:
33 virt-df), migrating between virtualization systems (see also:
34 virt-p2v), performing partial backups, performing partial guest
35 clones, cloning guests and changing registry/UUID/hostname info, and
38 Libguestfs uses Linux kernel and qemu code, and can access any type of
39 guest filesystem that Linux and qemu can, including but not limited
40 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
41 schemes, qcow, qcow2, vmdk.
43 Libguestfs provides ways to enumerate guest storage (eg. partitions,
44 LVs, what filesystem is in each LV, etc.). It can also run commands
45 in the context of the guest. Also you can access filesystems over FTP.
47 Libguestfs is a library that can be linked with C and C++ management
50 See also the 'guestfish' package for shell scripting and command line
55 Summary: Development tools and libraries for %{name}
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
61 %{name}-devel contains development tools and libraries
66 Summary: Shell for accessing and modifying virtual machine disk images
67 Group: Development/Tools
69 Requires: %{name} = %{version}-%{release}
70 Requires: /usr/bin/pod2text
73 %description -n guestfish
74 Guestfish is the Filesystem Interactive SHell, for accessing and
75 modifying virtual machine disk images from the command line and shell
80 Summary: OCaml bindings for %{name}
81 Group: Development/Libraries
82 Requires: %{name} = %{version}-%{release}
86 %{name}-ocaml contains OCaml bindings for %{name}.
88 This is for toplevel and scripting access only. To compile OCaml
89 programs which use %{name} you will also need %{name}-ocaml-devel.
93 Summary: OCaml bindings for %{name}
94 Group: Development/Libraries
95 Requires: %{name}-ocaml = %{version}-%{release}
98 %description ocaml-devel
99 %{name}-ocaml-devel contains development libraries
100 required to use the OCaml bindings for %{name}.
104 Summary: Perl bindings for %{name}
105 Group: Development/Libraries
106 Requires: %{name} = %{version}-%{release}
110 %{name}-perl contains Perl bindings for %{name}.
114 Summary: Python bindings for %{name}
115 Group: Development/Libraries
116 Requires: %{name} = %{version}-%{release}
120 %{name}-python contains Python bindings for %{name}.
128 %configure --with-mirror=%{mirror}
133 rm -rf $RPM_BUILD_ROOT
134 make DESTDIR=$RPM_BUILD_ROOT install
136 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
137 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
139 # Clean up the examples/ directory which will get installed in %doc.
148 rm -rf $RPM_BUILD_ROOT
151 %post -p /sbin/ldconfig
153 %postun -p /sbin/ldconfig
157 %defattr(-,root,root,-)
160 %{_libdir}/libguestfs.so.*
164 %defattr(-,root,root,-)
165 %doc HACKING README examples
166 %{_libdir}/libguestfs.so
167 %{_mandir}/man3/guestfs.3*
168 %{_includedir}/guestfs.h
169 %{_includedir}/guestfs-actions.h
170 %{_includedir}/guestfs-structs.h
174 %defattr(-,root,root,-)
176 %{_mandir}/man1/guestfish.1*
180 %defattr(-,root,root,-)
184 %defattr(-,root,root,-)
188 %defattr(-,root,root,-)
192 %defattr(-,root,root,-)
196 * Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1