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: perl-Test-Pod
24 BuildRequires: perl-Test-Pod-Coverage
25 BuildRequires: perl-ExtUtils-MakeMaker
26 # BuildRequires: python-devel
33 Libguestfs is a library for accessing and modifying guest disk images.
34 Amongst the things this is good for: making batch configuration
35 changes to guests, getting disk used/free statistics (see also:
36 virt-df), migrating between virtualization systems (see also:
37 virt-p2v), performing partial backups, performing partial guest
38 clones, cloning guests and changing registry/UUID/hostname info, and
41 Libguestfs uses Linux kernel and qemu code, and can access any type of
42 guest filesystem that Linux and qemu can, including but not limited
43 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
44 schemes, qcow, qcow2, vmdk.
46 Libguestfs provides ways to enumerate guest storage (eg. partitions,
47 LVs, what filesystem is in each LV, etc.). It can also run commands
48 in the context of the guest. Also you can access filesystems over FTP.
50 Libguestfs is a library that can be linked with C and C++ management
53 See also the 'guestfish' package for shell scripting and command line
58 Summary: Development tools and libraries for %{name}
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
64 %{name}-devel contains development tools and libraries
69 Summary: Shell for accessing and modifying virtual machine disk images
70 Group: Development/Tools
72 Requires: %{name} = %{version}-%{release}
73 Requires: /usr/bin/pod2text
76 %description -n guestfish
77 Guestfish is the Filesystem Interactive SHell, for accessing and
78 modifying virtual machine disk images from the command line and shell
83 Summary: OCaml bindings for %{name}
84 Group: Development/Libraries
85 Requires: %{name} = %{version}-%{release}
89 %{name}-ocaml contains OCaml bindings for %{name}.
91 This is for toplevel and scripting access only. To compile OCaml
92 programs which use %{name} you will also need %{name}-ocaml-devel.
96 Summary: OCaml bindings for %{name}
97 Group: Development/Libraries
98 Requires: %{name}-ocaml = %{version}-%{release}
101 %description ocaml-devel
102 %{name}-ocaml-devel contains development libraries
103 required to use the OCaml bindings for %{name}.
107 Summary: Perl bindings for %{name}
108 Group: Development/Libraries
109 Requires: %{name} = %{version}-%{release}
110 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
114 %{name}-perl contains Perl bindings for %{name}.
118 # Summary: Python bindings for %{name}
119 # Group: Development/Libraries
120 # Requires: %{name} = %{version}-%{release}
123 # %description python
124 # %{name}-python contains Python bindings for %{name}.
132 %configure --with-mirror=%{mirror}
134 # 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
136 make INSTALLDIRS=vendor
140 rm -rf $RPM_BUILD_ROOT
142 make DESTDIR=$RPM_BUILD_ROOT install
144 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
145 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
147 # Clean up the examples/ directory which will get installed in %doc.
154 find $RPM_BUILD_ROOT -name perllocal.pod -delete
155 find $RPM_BUILD_ROOT -name .packlist -delete
159 rm -rf $RPM_BUILD_ROOT
162 %post -p /sbin/ldconfig
164 %postun -p /sbin/ldconfig
168 %defattr(-,root,root,-)
171 %{_libdir}/libguestfs.so.*
175 %defattr(-,root,root,-)
176 %doc HACKING README examples
177 %{_libdir}/libguestfs.so
178 %{_mandir}/man3/guestfs.3*
179 %{_includedir}/guestfs.h
180 %{_includedir}/guestfs-actions.h
181 %{_includedir}/guestfs-structs.h
185 %defattr(-,root,root,-)
187 %{_mandir}/man1/guestfish.1*
191 %defattr(-,root,root,-)
192 %{_libdir}/ocaml/guestfs
193 %exclude %{_libdir}/ocaml/guestfs/*.a
194 %exclude %{_libdir}/ocaml/guestfs/*.cmxa
195 %exclude %{_libdir}/ocaml/guestfs/*.cmx
196 %exclude %{_libdir}/ocaml/guestfs/*.mli
197 %{_libdir}/ocaml/stublibs/*.so
198 %{_libdir}/ocaml/stublibs/*.so.owner
202 %defattr(-,root,root,-)
203 %{_libdir}/ocaml/guestfs/*.a
204 %{_libdir}/ocaml/guestfs/*.cmxa
205 %{_libdir}/ocaml/guestfs/*.cmx
206 %{_libdir}/ocaml/guestfs/*.mli
210 %defattr(-,root,root,-)
213 %{_mandir}/man3/Sys::Guestfs.3pm*
217 # %defattr(-,root,root,-)
221 * Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1