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 >= 1.5
19 BuildRequires: augeas-devel
21 # If you want to build the bindings for different languages:
23 BuildRequires: perl-devel
24 BuildRequires: perl-Test-Pod
25 BuildRequires: perl-Test-Pod-Coverage
26 BuildRequires: perl-ExtUtils-MakeMaker
27 # BuildRequires: python-devel
34 Libguestfs is a library for accessing and modifying guest disk images.
35 Amongst the things this is good for: making batch configuration
36 changes to guests, getting disk used/free statistics (see also:
37 virt-df), migrating between virtualization systems (see also:
38 virt-p2v), performing partial backups, performing partial guest
39 clones, cloning guests and changing registry/UUID/hostname info, and
42 Libguestfs uses Linux kernel and qemu code, and can access any type of
43 guest filesystem that Linux and qemu can, including but not limited
44 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
45 schemes, qcow, qcow2, vmdk.
47 Libguestfs provides ways to enumerate guest storage (eg. partitions,
48 LVs, what filesystem is in each LV, etc.). It can also run commands
49 in the context of the guest. Also you can access filesystems over FTP.
51 Libguestfs is a library that can be linked with C and C++ management
54 See also the 'guestfish' package for shell scripting and command line
59 Summary: Development tools and libraries for %{name}
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
65 %{name}-devel contains development tools and libraries
70 Summary: Shell for accessing and modifying virtual machine disk images
71 Group: Development/Tools
73 Requires: %{name} = %{version}-%{release}
74 Requires: /usr/bin/pod2text
77 %description -n guestfish
78 Guestfish is the Filesystem Interactive SHell, for accessing and
79 modifying virtual machine disk images from the command line and shell
84 Summary: OCaml bindings for %{name}
85 Group: Development/Libraries
86 Requires: %{name} = %{version}-%{release}
90 %{name}-ocaml contains OCaml bindings for %{name}.
92 This is for toplevel and scripting access only. To compile OCaml
93 programs which use %{name} you will also need %{name}-ocaml-devel.
97 Summary: OCaml bindings for %{name}
98 Group: Development/Libraries
99 Requires: %{name}-ocaml = %{version}-%{release}
102 %description ocaml-devel
103 %{name}-ocaml-devel contains development libraries
104 required to use the OCaml bindings for %{name}.
108 Summary: Perl bindings for %{name}
109 Group: Development/Libraries
110 Requires: %{name} = %{version}-%{release}
111 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
115 %{name}-perl contains Perl bindings for %{name}.
119 # Summary: Python bindings for %{name}
120 # Group: Development/Libraries
121 # Requires: %{name} = %{version}-%{release}
124 # %description python
125 # %{name}-python contains Python bindings for %{name}.
133 #%configure --with-mirror=%{mirror}
136 # 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
138 make INSTALLDIRS=vendor
146 rm -rf $RPM_BUILD_ROOT
148 make DESTDIR=$RPM_BUILD_ROOT install
150 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
151 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
153 # Clean up the examples/ directory which will get installed in %doc.
160 # Same for ocaml/examples.
166 find $RPM_BUILD_ROOT -name perllocal.pod -delete
167 find $RPM_BUILD_ROOT -name .packlist -delete
171 rm -rf $RPM_BUILD_ROOT
174 %post -p /sbin/ldconfig
176 %postun -p /sbin/ldconfig
180 %defattr(-,root,root,-)
183 %{_libdir}/libguestfs.so.*
187 %defattr(-,root,root,-)
188 %doc HACKING README examples html/guestfs.3.html html/pod.css
189 %{_libdir}/libguestfs.so
190 %{_mandir}/man3/guestfs.3*
191 %{_includedir}/guestfs.h
192 %{_includedir}/guestfs-actions.h
193 %{_includedir}/guestfs-structs.h
197 %defattr(-,root,root,-)
198 %doc html/guestfish.1.html html/pod.css
200 %{_mandir}/man1/guestfish.1*
204 %defattr(-,root,root,-)
205 %{_libdir}/ocaml/guestfs
206 %exclude %{_libdir}/ocaml/guestfs/*.a
207 %exclude %{_libdir}/ocaml/guestfs/*.cmxa
208 %exclude %{_libdir}/ocaml/guestfs/*.cmx
209 %exclude %{_libdir}/ocaml/guestfs/*.mli
210 %{_libdir}/ocaml/stublibs/*.so
211 %{_libdir}/ocaml/stublibs/*.so.owner
215 %defattr(-,root,root,-)
217 %{_libdir}/ocaml/guestfs/*.a
218 %{_libdir}/ocaml/guestfs/*.cmxa
219 %{_libdir}/ocaml/guestfs/*.cmx
220 %{_libdir}/ocaml/guestfs/*.mli
224 %defattr(-,root,root,-)
227 %{_mandir}/man3/Sys::Guestfs.3pm*
231 # %defattr(-,root,root,-)
235 * Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1