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
22 # If you want to build the bindings for different languages:
24 BuildRequires: perl-devel
25 BuildRequires: perl-Test-Pod
26 BuildRequires: perl-Test-Pod-Coverage
27 BuildRequires: perl-ExtUtils-MakeMaker
28 # BuildRequires: python-devel
35 Libguestfs is a library for accessing and modifying guest disk images.
36 Amongst the things this is good for: making batch configuration
37 changes to guests, getting disk used/free statistics (see also:
38 virt-df), migrating between virtualization systems (see also:
39 virt-p2v), performing partial backups, performing partial guest
40 clones, cloning guests and changing registry/UUID/hostname info, and
43 Libguestfs uses Linux kernel and qemu code, and can access any type of
44 guest filesystem that Linux and qemu can, including but not limited
45 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
46 schemes, qcow, qcow2, vmdk.
48 Libguestfs provides ways to enumerate guest storage (eg. partitions,
49 LVs, what filesystem is in each LV, etc.). It can also run commands
50 in the context of the guest. Also you can access filesystems over FTP.
52 Libguestfs is a library that can be linked with C and C++ management
55 See also the 'guestfish' package for shell scripting and command line
60 Summary: Development tools and libraries for %{name}
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
66 %{name}-devel contains development tools and libraries
71 Summary: Shell for accessing and modifying virtual machine disk images
72 Group: Development/Tools
74 Requires: %{name} = %{version}-%{release}
75 Requires: /usr/bin/pod2text
78 %description -n guestfish
79 Guestfish is the Filesystem Interactive SHell, for accessing and
80 modifying virtual machine disk images from the command line and shell
85 Summary: OCaml bindings for %{name}
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
91 %{name}-ocaml contains OCaml bindings for %{name}.
93 This is for toplevel and scripting access only. To compile OCaml
94 programs which use %{name} you will also need %{name}-ocaml-devel.
98 Summary: OCaml bindings for %{name}
99 Group: Development/Libraries
100 Requires: %{name}-ocaml = %{version}-%{release}
103 %description ocaml-devel
104 %{name}-ocaml-devel contains development libraries
105 required to use the OCaml bindings for %{name}.
109 Summary: Perl bindings for %{name}
110 Group: Development/Libraries
111 Requires: %{name} = %{version}-%{release}
112 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
116 %{name}-perl contains Perl bindings for %{name}.
120 # Summary: Python bindings for %{name}
121 # Group: Development/Libraries
122 # Requires: %{name} = %{version}-%{release}
125 # %description python
126 # %{name}-python contains Python bindings for %{name}.
134 #%configure --with-mirror=%{mirror}
137 # 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
139 make INSTALLDIRS=vendor
147 rm -rf $RPM_BUILD_ROOT
149 make DESTDIR=$RPM_BUILD_ROOT install
151 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
152 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
154 # Clean up the examples/ directory which will get installed in %doc.
155 # Note we can't delete the original examples/Makefile because that
156 # will be needed by the check section later in the RPM build.
164 # Same for ocaml/examples.
165 cp -a ocaml/examples ocaml/ex
171 find $RPM_BUILD_ROOT -name perllocal.pod -delete
172 find $RPM_BUILD_ROOT -name .packlist -delete
176 rm -rf $RPM_BUILD_ROOT
179 %post -p /sbin/ldconfig
181 %postun -p /sbin/ldconfig
185 %defattr(-,root,root,-)
188 %{_libdir}/libguestfs.so.*
192 %defattr(-,root,root,-)
193 %doc HACKING README ex html/guestfs.3.html html/pod.css
194 %{_libdir}/libguestfs.so
195 %{_mandir}/man3/guestfs.3*
196 %{_includedir}/guestfs.h
197 %{_includedir}/guestfs-actions.h
198 %{_includedir}/guestfs-structs.h
202 %defattr(-,root,root,-)
203 %doc html/guestfish.1.html html/pod.css
205 %{_mandir}/man1/guestfish.1*
209 %defattr(-,root,root,-)
210 %{_libdir}/ocaml/guestfs
211 %exclude %{_libdir}/ocaml/guestfs/*.a
212 %exclude %{_libdir}/ocaml/guestfs/*.cmxa
213 %exclude %{_libdir}/ocaml/guestfs/*.cmx
214 %exclude %{_libdir}/ocaml/guestfs/*.mli
215 %{_libdir}/ocaml/stublibs/*.so
216 %{_libdir}/ocaml/stublibs/*.so.owner
220 %defattr(-,root,root,-)
222 %{_libdir}/ocaml/guestfs/*.a
223 %{_libdir}/ocaml/guestfs/*.cmxa
224 %{_libdir}/ocaml/guestfs/*.cmx
225 %{_libdir}/ocaml/guestfs/*.mli
229 %defattr(-,root,root,-)
232 %{_mandir}/man3/Sys::Guestfs.3pm*
236 # %defattr(-,root,root,-)
240 * Sat Apr 4 2009 Richard Jones <rjones@redhat.com> - @VERSION@-1