psss / rpms / libguestfs

Forked from rpms/libguestfs 5 years ago
Clone
cf9a4f6
# Enable to build w/o network.
cf9a4f6
%global buildnonet 1
cf9a4f6
cf9a4f6
Summary:     Access and modify virtual machine disk images
cf9a4f6
Name:        libguestfs
69a456b
Epoch:       1
c7f566c
Version:     1.0.66
16cf2eb
Release:     5%{?dist}
cf9a4f6
License:     LGPLv2+
cf9a4f6
Group:       Development/Libraries
7516e72
URL:         http://libguestfs.org/
7516e72
Source0:     http://libguestfs.org/download/%{name}-%{version}.tar.gz
cf9a4f6
BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
cf9a4f6
9f24b45
Patch0:      0001-Allow-network-interface-to-be-configured.patch
16cf2eb
BuildRequires: automake, autoconf, libtool, gettext, gettext-devel, cvs
9f24b45
cf9a4f6
# Basic build requirements:
cf9a4f6
BuildRequires: /usr/bin/pod2man
cf9a4f6
BuildRequires: /usr/bin/pod2text
b85765a
BuildRequires: febootstrap >= 2.3
cf9a4f6
BuildRequires: augeas-devel >= 0.5.0
cf9a4f6
BuildRequires: readline-devel
c23c73c
BuildRequires: squashfs-tools
0e78dca
BuildRequires: qemu-kvm >= 0.10-7
cf9a4f6
BuildRequires: createrepo
8b5d7c1
BuildRequires: glibc-static
cf9a4f6
cf9a4f6
# This is only needed for RHEL 5 because readline-devel doesn't
cf9a4f6
# properly depend on it, but doesn't do any harm on other platforms:
cf9a4f6
BuildRequires: ncurses-devel
cf9a4f6
b30310c
# Build requirements for the appliance (see 'make.sh.in' in the source):
cf9a4f6
BuildRequires: kernel, bash, coreutils, lvm2, ntfs-3g, util-linux-ng
cf9a4f6
BuildRequires: MAKEDEV, net-tools, augeas-libs, file
cf9a4f6
BuildRequires: module-init-tools, procps, strace, iputils
91f15fb
BuildRequires: dosfstools, zerofree, lsof, scrub
0c07f95
%ifarch %{ix86} x86_64
0c07f95
BuildRequires: grub, ntfsprogs
0c07f95
%endif
cf9a4f6
b30310c
# Must match the above set of BuildRequires exactly!
b30310c
Requires:      kernel, bash, coreutils, lvm2, ntfs-3g, util-linux-ng
b30310c
Requires:      MAKEDEV, net-tools, augeas-libs, file
b30310c
Requires:      module-init-tools, procps, strace, iputils
91f15fb
Requires:      dosfstools, zerofree, lsof, scrub
b30310c
%ifarch %{ix86} x86_64
b30310c
Requires:      grub, ntfsprogs
b30310c
%endif
b30310c
cf9a4f6
# These are only required if you want to build the bindings for
cf9a4f6
# different languages:
cf9a4f6
BuildRequires: ocaml
cf9a4f6
BuildRequires: ocaml-findlib-devel
cf9a4f6
BuildRequires: perl-devel
cf9a4f6
BuildRequires: perl-Test-Simple
cf9a4f6
BuildRequires: perl-Test-Pod
cf9a4f6
BuildRequires: perl-Test-Pod-Coverage
cf9a4f6
BuildRequires: perl-ExtUtils-MakeMaker
950c227
BuildRequires: perl-XML-Writer
212471f
BuildRequires: perl-libintl
cf9a4f6
BuildRequires: python-devel
cf9a4f6
BuildRequires: ruby-devel
cf9a4f6
BuildRequires: rubygem-rake
cf9a4f6
BuildRequires: java >= 1.5.0
cf9a4f6
BuildRequires: jpackage-utils
cf9a4f6
BuildRequires: java-devel
cf9a4f6
cf9a4f6
# For virt-inspector:
cf9a4f6
BuildRequires: perl-Sys-Virt
cf9a4f6
cf9a4f6
# Runtime requires:
3bc400e
Requires:      qemu-kvm >= 0.10-7
3bc400e
3bc400e
# For virt-inspector --windows-registry option.
3bc400e
Requires:      chntpw >= 0.99.6-8
cf9a4f6
e5d687b
# For libguestfs-test-tool.
e5d687b
Requires:      genisoimage
e5d687b
cf9a4f6
cf9a4f6
%description
cf9a4f6
Libguestfs is a library for accessing and modifying guest disk images.
cf9a4f6
Amongst the things this is good for: making batch configuration
cf9a4f6
changes to guests, getting disk used/free statistics (see also:
cf9a4f6
virt-df), migrating between virtualization systems (see also:
cf9a4f6
virt-p2v), performing partial backups, performing partial guest
cf9a4f6
clones, cloning guests and changing registry/UUID/hostname info, and
cf9a4f6
much else besides.
cf9a4f6
cf9a4f6
Libguestfs uses Linux kernel and qemu code, and can access any type of
cf9a4f6
guest filesystem that Linux and qemu can, including but not limited
cf9a4f6
to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
cf9a4f6
schemes, qcow, qcow2, vmdk.
cf9a4f6
cf9a4f6
Libguestfs provides ways to enumerate guest storage (eg. partitions,
cf9a4f6
LVs, what filesystem is in each LV, etc.).  It can also run commands
cf9a4f6
in the context of the guest.  Also you can access filesystems over FTP.
cf9a4f6
cf9a4f6
Libguestfs is a library that can be linked with C and C++ management
cf9a4f6
programs.
cf9a4f6
cf9a4f6
See also the 'guestfish' package for shell scripting and command line
cf9a4f6
access.
cf9a4f6
cf9a4f6
For Perl bindings, see 'perl-libguestfs'.
cf9a4f6
cf9a4f6
For OCaml bindings, see 'ocaml-libguestfs-devel'.
cf9a4f6
cf9a4f6
For Python bindings, see 'python-libguestfs'.
cf9a4f6
cf9a4f6
For Ruby bindings, see 'ruby-libguestfs'.
cf9a4f6
cf9a4f6
For Java bindings, see 'libguestfs-java-devel'.
cf9a4f6
cf9a4f6
cf9a4f6
%package devel
cf9a4f6
Summary:     Development tools and libraries for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    pkgconfig
cf9a4f6
cf9a4f6
cf9a4f6
%description devel
cf9a4f6
%{name}-devel contains development tools and libraries
cf9a4f6
for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n guestfish
cf9a4f6
Summary:     Shell for accessing and modifying virtual machine disk images
cf9a4f6
Group:       Development/Tools
cf9a4f6
License:     GPLv2+
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    /usr/bin/pod2text
e083c10
Requires:    virt-inspector
cf9a4f6
cf9a4f6
cf9a4f6
%description -n guestfish
cf9a4f6
Guestfish is the Filesystem Interactive SHell, for accessing and
cf9a4f6
modifying virtual machine disk images from the command line and shell
cf9a4f6
scripts.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n virt-inspector
cf9a4f6
Summary:     Display OS version, kernel, drivers, etc in a virtual machine
cf9a4f6
Group:       Development/Tools
cf9a4f6
License:     GPLv2+
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    guestfish
cf9a4f6
Requires:    perl-Sys-Virt
cf9a4f6
cf9a4f6
cf9a4f6
%description -n virt-inspector
cf9a4f6
Virt-inspector examines a virtual machine and tries to determine the
cf9a4f6
version of the OS, the kernel version, what drivers are installed,
cf9a4f6
whether the virtual machine is fully virtualized (FV) or
cf9a4f6
para-virtualized (PV), what applications are installed and more.
cf9a4f6
cf9a4f6
69a456b
%package -n virt-df
3b61f54
Summary:     Display free space on virtual filesystems
3b61f54
Group:       Development/Tools
3b61f54
License:     GPLv2+
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
3b61f54
Requires:    perl-Sys-Virt
d41a885
# RHBZ#514309
d41a885
Provides:    virt-df2 = %{epoch}:%{version}-%{release}
d41a885
Obsoletes:   virt-df2 <= %{epoch}:%{version}-%{release}
3b61f54
3b61f54
69a456b
%description -n virt-df
3b61f54
"virt-df" is a command line tool to display free space on virtual
3b61f54
machine filesystems.  Unlike other tools, it doesn’t just display the
3b61f54
amount of space allocated to a virtual machine, but can look inside
3b61f54
the virtual machine to see how much space is really being used.
3b61f54
3b61f54
It is like the df(1) command, but for virtual machines, except that it
3b61f54
also works for Windows virtual machines.
3b61f54
3b61f54
212471f
%package -n virt-cat
212471f
Summary:     Display a file in a virtual machine
212471f
Group:       Development/Tools
212471f
License:     GPLv2+
212471f
Requires:    %{name} = %{epoch}:%{version}-%{release}
212471f
Requires:    perl-Sys-Virt
212471f
212471f
212471f
%description -n virt-cat
212471f
"virt-cat" is a command line tool to display the contents
212471f
of a file in a virtual machine.
212471f
212471f
cf9a4f6
%package -n ocaml-%{name}
cf9a4f6
Summary:     OCaml bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
cf9a4f6
cf9a4f6
%description -n ocaml-%{name}
cf9a4f6
ocaml-%{name} contains OCaml bindings for %{name}.
cf9a4f6
cf9a4f6
This is for toplevel and scripting access only.  To compile OCaml
cf9a4f6
programs which use %{name} you will also need ocaml-%{name}-devel.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n ocaml-%{name}-devel
cf9a4f6
Summary:     OCaml bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    ocaml-%{name} = %{epoch}:%{version}-%{release}
cf9a4f6
cf9a4f6
cf9a4f6
%description -n ocaml-%{name}-devel
cf9a4f6
ocaml-%{name}-devel contains development libraries
cf9a4f6
required to use the OCaml bindings for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n perl-%{name}
cf9a4f6
Summary:     Perl bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
cf9a4f6
cf9a4f6
cf9a4f6
%description -n perl-%{name}
cf9a4f6
perl-%{name} contains Perl bindings for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n python-%{name}
cf9a4f6
Summary:     Python bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
cf9a4f6
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
cf9a4f6
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
cf9a4f6
cf9a4f6
%description -n python-%{name}
cf9a4f6
python-%{name} contains Python bindings for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%package -n ruby-%{name}
cf9a4f6
Summary:     Ruby bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    ruby(abi) = 1.8
cf9a4f6
Provides:    ruby(guestfs) = %{version}
cf9a4f6
cf9a4f6
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
cf9a4f6
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
cf9a4f6
cf9a4f6
%description -n ruby-%{name}
cf9a4f6
ruby-%{name} contains Ruby bindings for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%package java
cf9a4f6
Summary:     Java bindings for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    java >= 1.5.0
cf9a4f6
Requires:    jpackage-utils
cf9a4f6
cf9a4f6
%description java
cf9a4f6
%{name}-java contains Java bindings for %{name}.
cf9a4f6
cf9a4f6
If you want to develop software in Java which uses %{name}, then
cf9a4f6
you will also need %{name}-java-devel.
cf9a4f6
cf9a4f6
cf9a4f6
%package java-devel
cf9a4f6
Summary:     Java development package for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
6cc64de
Requires:    %{name}-java = %{epoch}:%{version}-%{release}
cf9a4f6
cf9a4f6
%description java-devel
cf9a4f6
%{name}-java-devel contains the tools for developing Java software
cf9a4f6
using %{name}.
cf9a4f6
cf9a4f6
See also %{name}-javadoc.
cf9a4f6
cf9a4f6
cf9a4f6
%package javadoc
cf9a4f6
Summary:     Java documentation for %{name}
cf9a4f6
Group:       Development/Libraries
6cc64de
Requires:    %{name} = %{epoch}:%{version}-%{release}
6cc64de
Requires:    %{name}-java = %{epoch}:%{version}-%{release}
cf9a4f6
Requires:    jpackage-utils
cf9a4f6
cf9a4f6
%description javadoc
cf9a4f6
%{name}-javadoc contains the Java documentation for %{name}.
cf9a4f6
cf9a4f6
cf9a4f6
%prep
cf9a4f6
%setup -q
cf9a4f6
cf9a4f6
mkdir -p daemon/m4
cf9a4f6
9f24b45
%patch0 -p1
c883d54
autoreconf -i
9f24b45
cf9a4f6
cf9a4f6
%build
cf9a4f6
%if %{buildnonet}
cf9a4f6
mkdir repo
5a57abd
find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t repo
cf9a4f6
createrepo repo
b0d05cc
%define extra --with-mirror=file://$(pwd)/repo --with-repo=fedora-12 --with-updates=none
cf9a4f6
%else
cf9a4f6
%define extra %nil
cf9a4f6
%endif
cf9a4f6
9f24b45
# --with-net-if=ne2k_pci is a workaround for RHBZ#516022.
cf9a4f6
./configure \
cf9a4f6
  --prefix=%{_prefix} --libdir=%{_libdir} \
cf9a4f6
  --mandir=%{_mandir} \
cf9a4f6
  --with-qemu="qemu-kvm qemu-system-%{_build_arch} qemu" \
cf9a4f6
  --enable-debug-command \
b30310c
  --enable-supermin \
9f24b45
  --with-net-if=ne2k_pci \
cf9a4f6
  %{extra}
cf9a4f6
cf9a4f6
# This ensures that /usr/sbin/chroot is on the path.  Not needed
cf9a4f6
# except for RHEL 5, it shouldn't do any harm on other platforms.
cf9a4f6
export PATH=/usr/sbin:$PATH
cf9a4f6
cf9a4f6
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
cf9a4f6
# not the site dir.
cf9a4f6
make INSTALLDIRS=vendor %{?_smp_mflags}
cf9a4f6
cf9a4f6
cf9a4f6
%check
25bc3cd
# Enable debugging - very useful if a test does fail, although
25bc3cd
# it produces masses of output in the build.log.
25bc3cd
export LIBGUESTFS_DEBUG=1
25bc3cd
490d04e
# Uncomment one of these, depending on whether you want to
490d04e
# do a very long and thorough test ('make check') or just
490d04e
# a quick test to see if things generally work.
490d04e
8c35314
# Tracking test issues:
8c35314
# BZ       archs        branch reason
8c35314
# 494075   ppc, ppc64          openbios bug causes "invalid/unsupported opcode"
8c35314
# 504273   ppc, ppc64          "no opcode defined"
8c35314
# 505109   ppc, ppc64          "Boot failure! No secondary bootloader specified"
8c35314
# 502058   i386, x86-64 F-11   need to boot with noapic (WORKAROUND ENABLED)
8c35314
# 502074   i386         F-11   commands segfault randomly
a1be71a
# 503236   i386         F-12   cryptomgr_test at doublefault_fn
8c35314
# 507066   all          F-12   sequence of chroot calls (FIXED)
b683d64
# 513249   all          F-12   guestfwd broken in qemu (FIXED)
c7f566c
# 516022   all          F-12   virtio-net gives "Network is unreachable" errors
9f24b45
#                                 (WORKAROUND ENABLED)
b737f1b
# 516096   ?            F-11   race condition in swapoff/blockdev --rereadpt
8c35314
9f24b45
%ifarch x86_64
9f24b45
make check
9f24b45
%endif
cf9a4f6
984ff61
cf9a4f6
%install
cf9a4f6
rm -rf $RPM_BUILD_ROOT
cf9a4f6
cf9a4f6
make DESTDIR=$RPM_BUILD_ROOT install
cf9a4f6
b30310c
# Delete the ordinary appliance, leaving just the supermin appliance.
4233640
rm $RPM_BUILD_ROOT%{_libdir}/guestfs/vmlinuz.*
46a42a1
mkdir keep
46a42a1
mv $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.supermin.img keep
4233640
rm $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.img
46a42a1
mv keep/* $RPM_BUILD_ROOT%{_libdir}/guestfs/
46a42a1
rmdir keep
b30310c
b30310c
# Delete static libraries, libtool files.
cf9a4f6
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
cf9a4f6
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
cf9a4f6
cf9a4f6
# Clean up the examples/ directory which will get installed in %doc.
cf9a4f6
# Note we can't delete the original examples/Makefile because that
cf9a4f6
# will be needed by the check section later in the RPM build.
cf9a4f6
cp -a examples ex
cf9a4f6
pushd ex
cf9a4f6
make clean
cf9a4f6
rm Makefile*
cf9a4f6
rm -rf .deps .libs
cf9a4f6
popd
cf9a4f6
cf9a4f6
# Same for ocaml/examples.
cf9a4f6
cp -a ocaml/examples ocaml/ex
cf9a4f6
pushd ocaml/ex
cf9a4f6
make clean
cf9a4f6
rm Makefile*
cf9a4f6
popd
cf9a4f6
cf9a4f6
find $RPM_BUILD_ROOT -name perllocal.pod -delete
cf9a4f6
find $RPM_BUILD_ROOT -name .packlist -delete
cf9a4f6
find $RPM_BUILD_ROOT -name '*.bs' -delete
cf9a4f6
cf9a4f6
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.a
cf9a4f6
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.la
cf9a4f6
cf9a4f6
if [ "$RPM_BUILD_ROOT%{python_sitearch}" != "$RPM_BUILD_ROOT%{python_sitelib}" ]; then
cf9a4f6
   mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
cf9a4f6
   mv $RPM_BUILD_ROOT%{python_sitearch}/guestfs.py* \
cf9a4f6
     $RPM_BUILD_ROOT%{python_sitelib}/
cf9a4f6
fi
cf9a4f6
cf9a4f6
# Install ruby bindings by hand.
cf9a4f6
mkdir -p $RPM_BUILD_ROOT%{ruby_sitelib}
cf9a4f6
mkdir -p $RPM_BUILD_ROOT%{ruby_sitearch}
cf9a4f6
install -p -m0644 ruby/lib/guestfs.rb $RPM_BUILD_ROOT%{ruby_sitelib}
cf9a4f6
install -p -m0755 ruby/ext/guestfs/_guestfs.so $RPM_BUILD_ROOT%{ruby_sitearch}
cf9a4f6
cf9a4f6
# Remove static-linked Java bindings.
cf9a4f6
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.a
cf9a4f6
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.la
cf9a4f6
cf9a4f6
# Generator shouldn't be executable when we distribute it.
cf9a4f6
chmod -x src/generator.ml
cf9a4f6
3b61f54
# Remove virt-v2v for now, WIP.
3b61f54
rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v
3b61f54
rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v.1*
3b61f54
16c80f1
# Find locale files.
16c80f1
%find_lang %{name}
16c80f1
cf9a4f6
cf9a4f6
%clean
cf9a4f6
rm -rf $RPM_BUILD_ROOT
cf9a4f6
cf9a4f6
cf9a4f6
%post -p /sbin/ldconfig
cf9a4f6
cf9a4f6
%postun -p /sbin/ldconfig
cf9a4f6
cf9a4f6
16c80f1
%files -f %{name}.lang
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc COPYING
0a6223f
%{_bindir}/libguestfs-supermin-helper
e5d687b
%{_bindir}/libguestfs-test-tool
cf9a4f6
%{_libdir}/guestfs/
cf9a4f6
%{_libdir}/libguestfs.so.*
e5d687b
%{_libexecdir}/libguestfs-test-tool-helper
e5d687b
%{_mandir}/man1/libguestfs-test-tool.1*
cf9a4f6
cf9a4f6
cf9a4f6
%files devel
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc ChangeLog HACKING TODO README ex html/guestfs.3.html html/pod.css
cf9a4f6
%doc src/generator.ml
cf9a4f6
%{_libdir}/libguestfs.so
cf9a4f6
%{_mandir}/man3/guestfs.3*
e030c89
%{_mandir}/man3/libguestfs.3*
cf9a4f6
%{_includedir}/guestfs.h
cf9a4f6
%{_includedir}/guestfs-actions.h
cf9a4f6
%{_includedir}/guestfs-structs.h
cf9a4f6
%{_libdir}/pkgconfig/libguestfs.pc
cf9a4f6
cf9a4f6
cf9a4f6
%files -n guestfish
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc html/guestfish.1.html html/pod.css recipes/
cf9a4f6
%{_bindir}/guestfish
cf9a4f6
%{_mandir}/man1/guestfish.1*
cf9a4f6
cf9a4f6
cf9a4f6
%files -n virt-inspector
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%{_bindir}/virt-inspector
cf9a4f6
%{_mandir}/man1/virt-inspector.1*
cf9a4f6
cf9a4f6
69a456b
%files -n virt-df
3b61f54
%defattr(-,root,root,-)
3b61f54
%{_bindir}/virt-df
3b61f54
%{_mandir}/man1/virt-df.1*
3b61f54
3b61f54
212471f
%files -n virt-cat
212471f
%defattr(-,root,root,-)
212471f
%{_bindir}/virt-cat
212471f
%{_mandir}/man1/virt-cat.1*
212471f
212471f
cf9a4f6
%files -n ocaml-%{name}
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{_libdir}/ocaml/guestfs
cf9a4f6
%exclude %{_libdir}/ocaml/guestfs/*.a
cf9a4f6
%exclude %{_libdir}/ocaml/guestfs/*.cmxa
cf9a4f6
%exclude %{_libdir}/ocaml/guestfs/*.cmx
cf9a4f6
%exclude %{_libdir}/ocaml/guestfs/*.mli
cf9a4f6
%{_libdir}/ocaml/stublibs/*.so
cf9a4f6
%{_libdir}/ocaml/stublibs/*.so.owner
cf9a4f6
cf9a4f6
cf9a4f6
%files -n ocaml-%{name}-devel
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc ocaml/ex
cf9a4f6
%{_libdir}/ocaml/guestfs/*.a
cf9a4f6
%{_libdir}/ocaml/guestfs/*.cmxa
cf9a4f6
%{_libdir}/ocaml/guestfs/*.cmx
cf9a4f6
%{_libdir}/ocaml/guestfs/*.mli
cf9a4f6
cf9a4f6
cf9a4f6
%files -n perl-%{name}
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc perl/examples
cf9a4f6
%{perl_vendorarch}/*
cf9a4f6
%{_mandir}/man3/Sys::Guestfs.3pm*
3b61f54
%{_mandir}/man3/Sys::Guestfs::Lib.3pm*
cf9a4f6
cf9a4f6
cf9a4f6
%files -n python-%{name}
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{python_sitearch}/*
cf9a4f6
%{python_sitelib}/*.py
cf9a4f6
%{python_sitelib}/*.pyc
cf9a4f6
%{python_sitelib}/*.pyo
cf9a4f6
cf9a4f6
cf9a4f6
%files -n ruby-%{name}
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{ruby_sitelib}/guestfs.rb
cf9a4f6
%{ruby_sitearch}/_guestfs.so
cf9a4f6
cf9a4f6
cf9a4f6
%files java
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{_libdir}/libguestfs_jni*.so.*
cf9a4f6
%{_datadir}/java/*.jar
cf9a4f6
cf9a4f6
cf9a4f6
%files java-devel
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{_libdir}/libguestfs_jni*.so
cf9a4f6
cf9a4f6
cf9a4f6
%files javadoc
cf9a4f6
%defattr(-,root,root,-)
cf9a4f6
%doc README
cf9a4f6
%{_datadir}/javadoc/%{name}-java-%{version}
cf9a4f6
cf9a4f6
cf9a4f6
%changelog
16cf2eb
* Fri Aug  7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.66-5
9f24b45
- Set network interface to ne2k_pci (workaround for RHBZ#516022).
c883d54
- Rerun autoconf because patch touches configure script.
9f24b45
c7f566c
* Thu Aug  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.66-1
c7f566c
- New upstream release 1.0.66.
c7f566c
d41a885
* Wed Jul 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.65-1
d41a885
- New upstream release 1.0.65.
d41a885
- Add Obsoletes for virt-df2 (RHBZ#514309).
d41a885
- Disable tests because of ongoing TCG problems with newest qemu in Rawhide.
d41a885
a1be71a
* Thu Jul 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.64-3
b683d64
- RHBZ#513249 bug in qemu is now fixed, so try to rebuild and run tests.
a1be71a
- However RHBZ#503236 still prevents us from testing on i386.
b683d64
bdb0dfc
* Thu Jul 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.64-1
bdb0dfc
- New upstream release 1.0.64.
e5d687b
- New tool 'libguestfs-test-tool'.
e5d687b
212471f
* Wed Jul 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.61-1
212471f
- New upstream release 1.0.61.
212471f
- New tool / subpackage 'virt-cat'.
212471f
- New BR perl-libintl.
212471f
6cc64de
* Wed Jul 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.60-2
6cc64de
- Fix runtime Requires so they use epoch correctly.
6cc64de
69a456b
* Tue Jul 14 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.60-1
69a456b
- New upstream release 1.0.60.
e263d4b
d3b8860
* Fri Jul 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.58-2
585a4fb
- New upstream release 1.0.58.
585a4fb
3b61f54
* Fri Jul 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.57-1
3b61f54
- New upstream release 1.0.57.
3b61f54
- New tool virt-df (obsoletes existing package with this name).
3b61f54
- RHBZ#507066 may be fixed, so reenable tests.
3b61f54
750d27c
* Tue Jul  7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.56-2
e7d4488
- New upstream release 1.0.56.
750d27c
- Don't rerun generator.
e7d4488
e030c89
* Thu Jul  2 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.55-1
e030c89
- New upstream release 1.0.55.
e030c89
- New manual page libguestfs(3).
e030c89
950c227
* Mon Jun 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.54-2
586f7ff
- New upstream release 1.0.54.
950c227
- +BR perl-XML-Writer.
586f7ff
2cbf732
* Wed Jun 24 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.53-1
2cbf732
- New upstream release 1.0.53.
2cbf732
- Disable all tests (because of RHBZ#507066).
2cbf732
7779bb6
* Wed Jun 24 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.52-1
7779bb6
- New upstream release 1.0.52.
7779bb6
554831c
* Mon Jun 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.51-1
554831c
- New upstream release 1.0.51.
b131c86
- Removed patches which are now upstream.
8e2bde3
69d291b
* Sat Jun 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.49-5
ffe9c96
- Remove workaround for RHBZ#507007, since bug is now fixed.
87afda4
- Pull in upstream patch to fix pclose checking
87afda4
  (testing as possible fix for RHBZ#507066).
69d291b
- Pull in upstream patch to check waitpid return values
69d291b
  (testing as possible fix for RHBZ#507066).
ffe9c96
8db373f
* Fri Jun 19 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.49-2
0a6223f
- New upstream release 1.0.49.
8db373f
- Add workaround for RHBZ#507007.
0a6223f
46a42a1
* Tue Jun 16 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.48-2
46a42a1
- Accidentally omitted the supermin image from previous version.
46a42a1
b85765a
* Tue Jun 16 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.48-1
b85765a
- New upstream release 1.0.48.
b85765a
- Should fix all the brokenness from 1.0.47.
b85765a
- Requires febootstrap >= 2.3.
b85765a
4233640
* Mon Jun 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.47-2
a8dad2f
- New upstream release 1.0.47.
b30310c
- Enable experimental supermin appliance build.
4233640
- Fix path to appliance.
b30310c
3003f4d
* Fri Jun 12 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.45-2
5a57abd
- New upstream release 1.0.45.
5a57abd
c34068c
* Wed Jun 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.44-2
c34068c
- Disable ppc/ppc64 tests again because of RHBZ#505109.
c34068c
dbdd072
* Wed Jun 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.44-1
dbdd072
- New upstream version 1.0.44.
dbdd072
- Try enabling tests on ppc & ppc64 since it looks like the bug(s?)
dbdd072
  in qemu which might have caused them to fail have been fixed.
dbdd072
7516e72
* Tue Jun  9 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.43-1
7516e72
- New upstream version 1.0.43.
7516e72
- New upstream URL.
7516e72
- Requires chntpw program.
7516e72
d18a48c
* Sat Jun  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.42-1
d18a48c
- New upstream version 1.0.42.
d18a48c
3127954
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.41-1
3127954
- New upstream version 1.0.41.
3127954
- Fixes a number of regressions in RHBZ#503169.
3127954
9999944
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.40-1
9999944
- New upstream version 1.0.40.
9999944
fada2d8
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.39-1
fada2d8
- New upstream version 1.0.39.
fada2d8
- Fixes:
fada2d8
  . libguestfs /dev is too sparse for kernel installation/upgrade (RHBZ#503169)
fada2d8
  . OCaml bindings build failure (RHBZ#502309)
fada2d8
246fbd2
* Tue Jun  2 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.38-2
d407ba1
- Disable tests on ix86 because of RHBZ#503236.
246fbd2
5025d15
* Tue Jun  2 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.38-1
5025d15
- New upstream version 1.0.38.
5025d15
c23c73c
* Fri May 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.37-1
c23c73c
- New upstream version 1.0.37.
c23c73c
- Fixes:
c23c73c
  . "mkdir-p" should not throw errors on preexisting directories (RHBZ#503133)
c23c73c
  . cramfs and squashfs modules should be available in libguestfs appliances
c23c73c
      (RHBZ#503135)
c23c73c
44096f2
* Thu May 28 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.36-2
7f81d42
- New upstream version 1.0.36.
44096f2
- Rerun the generator in prep section.
7f81d42
7d74ee0
* Thu May 28 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.35-1
7d74ee0
- New upstream version 1.0.35.
7d74ee0
- Fixes multiple bugs in bindings parameters (RHBZ#501892).
7d74ee0
88b12c7
* Wed May 27 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.34-1
88b12c7
- New upstream version 1.0.34.
88b12c7
10c7b87
* Wed May 27 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.33-1
10c7b87
- New upstream version 1.0.33.
10c7b87
- --with-java-home option is no longer required.
10c7b87
- Upstream contains potential fixes for:
10c7b87
    501878 built-in commands like 'alloc' and 'help' don't autocomplete
10c7b87
    501883 javadoc messed up in libguestfs java documentation
10c7b87
    501885 Doesn't detect missing Java, --with-java-home=no should not be needed
10c7b87
    502533 Polish translation of libguestfs
10c7b87
    n/a    Allow more ext filesystem kmods (Charles Duffy)
10c7b87
16c80f1
* Tue May 26 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.32-2
5e6ea43
- New upstream version 1.0.32.
16c80f1
- Use %%find_lang macro.
5e6ea43
5bd719e
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.31-1
5bd719e
- Rebuild for OCaml 3.11.1.
5bd719e
- New upstream version 1.0.31.
5bd719e
e8058cb
* Thu May 21 2009 Richard Jones <rjones@redhat.com> - 1.0.30-1
e8058cb
- New upstream version 1.0.30.  Now includes test-bootbootboot.sh script.
e8058cb
26da628
* Thu May 21 2009 Richard Jones <rjones@redhat.com> - 1.0.29-3
25bc3cd
- New upstream version 1.0.29 (fixes RHBZ#502007 RHBZ#502018).
25bc3cd
- This should allow us to enable tests for i386 and x86-64.
3606b80
- Added test-bootbootboot.sh script which was missed from 1.0.29 tarball.
26da628
- Pass kernel noapic flag to workaround RHBZ#502058.
bd8be47
7252ee3
* Thu May 21 2009 Richard Jones <rjones@redhat.com> - 1.0.28-1
7252ee3
- New upstream version 1.0.28.  Nothing has visibly changed, but
7252ee3
  the source has been gettextized and we want to check that doesn't
7252ee3
  break anything.
7252ee3
0e78dca
* Thu May 21 2009 Richard Jones <rjones@redhat.com> - 1.0.27-3
0e78dca
- Change requirement from qemu -> qemu-kvm (RHBZ#501761).
0e78dca
9a15f56
* Tue May 19 2009 Richard Jones <rjones@redhat.com> - 1.0.27-2
984ff61
- New upstream version 1.0.27.
984ff61
0f4751f
* Mon May 18 2009 Richard Jones <rjones@redhat.com> - 1.0.26-6
6273ef4
- Experimentally try to reenable ppc and ppc64 builds.
490d04e
- Note BZ numbers which are causing tests to fail.
6273ef4
f61f68c
* Mon May 18 2009 Richard Jones <rjones@redhat.com> - 1.0.26-1
f61f68c
- New upstream version 1.0.26.
f61f68c
97f65a5
* Tue May 12 2009 Richard Jones <rjones@redhat.com> - 1.0.25-4
5e04ce3
- New upstream version 1.0.25.
5e04ce3
- Enable debugging when running the tests.
97f65a5
- Disable tests - don't work correctly in Koji.
5e04ce3
8b5d7c1
* Tue May 12 2009 Richard Jones <rjones@redhat.com> - 1.0.24-1
8b5d7c1
- New upstream version 1.0.24.
8b5d7c1
- BRs glibc-static for the new command tests.
8b5d7c1
- Enable tests.
8b5d7c1
b0d05cc
* Mon May 11 2009 Richard Jones <rjones@redhat.com> - 1.0.23-2
cf1f09b
- New upstream version 1.0.23.
b0d05cc
- Don't try to use updates during build.
cf1f09b
dd0c4ae
* Fri May  8 2009 Richard Jones <rjones@redhat.com> - 1.0.21-3
cf9a4f6
- New upstream version 1.0.21.
cf9a4f6
cf9a4f6
* Thu May  7 2009 Richard Jones <rjones@redhat.com> - 1.0.20-2
cf9a4f6
- New upstream version 1.0.20.
cf9a4f6
cf9a4f6
* Thu May  7 2009 Richard Jones <rjones@redhat.com> - 1.0.19-1
cf9a4f6
- New upstream version 1.0.19.
cf9a4f6
cf9a4f6
* Tue Apr 28 2009 Richard Jones <rjones@redhat.com> - 1.0.15-1
cf9a4f6
- New upstream version 1.0.15.
cf9a4f6
cf9a4f6
* Fri Apr 24 2009 Richard Jones <rjones@redhat.com> - 1.0.12-1
cf9a4f6
- New upstream version 1.0.12.
cf9a4f6
cf9a4f6
* Wed Apr 22 2009 Richard Jones <rjones@redhat.com> - 1.0.6-1
cf9a4f6
- New upstream version 1.0.6.
cf9a4f6
cf9a4f6
* Mon Apr 20 2009 Richard Jones <rjones@redhat.com> - 1.0.2-1
cf9a4f6
- New upstream version 1.0.2.
cf9a4f6
cf9a4f6
* Thu Apr 16 2009 Richard Jones <rjones@redhat.com> - 0.9.9-12
cf9a4f6
- Multiple fixes to get it to scratch build in Koji.
cf9a4f6
cf9a4f6
* Sat Apr  4 2009 Richard Jones <rjones@redhat.com> - 0.9.9-1
cf9a4f6
- Initial build.