psss / rpms / libguestfs

Forked from rpms/libguestfs 5 years ago
Clone
e8b9539
# Enable to build w/o network.
e8b9539
%global buildnonet 1
e8b9539
e8b9539
Summary:     Access and modify virtual machine disk images
e8b9539
Name:        libguestfs
cfd9ced
Epoch:       1
c7fa03d
Version:     1.0.75
e47cce1
Release:     1%{?dist}.4
e8b9539
License:     LGPLv2+
e8b9539
Group:       Development/Libraries
bc42acd
URL:         http://libguestfs.org/
bc42acd
Source0:     http://libguestfs.org/download/%{name}-%{version}.tar.gz
e8b9539
BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
e8b9539
8a481aa
# Next two lines should be removed in 1.0.76:
8a481aa
Patch0:      0001-RHEL-5-Detect-endianness-functions-and-supply-them.patch
8a481aa
BuildRequires: autoconf, automake, libtool, gettext-devel
8a481aa
99f554b
# Currently fails on PPC because:
99f554b
# "No Package Found for kernel"
99f554b
ExclusiveArch: %{ix86} x86_64
99f554b
e8b9539
# Basic build requirements:
e8b9539
BuildRequires: /usr/bin/pod2man
e8b9539
BuildRequires: /usr/bin/pod2text
542c90b
BuildRequires: febootstrap >= 2.3
8e057d0
#BuildRequires: augeas-devel >= 0.5.0
e8b9539
BuildRequires: readline-devel
c4a3266
BuildRequires: mkisofs
c7fa03d
BuildRequires: libxml2-devel
2cf282b
%ifarch %{ix86} x86_64
2cf282b
BuildRequires: qemu-system-x86 >= 0.10.5
2cf282b
%endif
2cf282b
%ifarch ppc ppc64
2cf282b
BuildRequires: qemu-system-ppc >= 0.10.5
2cf282b
%endif
e8b9539
BuildRequires: createrepo
6e96398
BuildRequires: libselinux-devel
e8b9539
e8b9539
# This is only needed for RHEL 5 because readline-devel doesn't
e8b9539
# properly depend on it, but doesn't do any harm on other platforms:
e8b9539
BuildRequires: ncurses-devel
e8b9539
542c90b
# Build requirements for the appliance (see 'make.sh.in' in the source):
e76964d
BuildRequires: kernel, bash, coreutils, lvm2
8e057d0
BuildRequires: MAKEDEV, net-tools, file
e8b9539
BuildRequires: module-init-tools, procps, strace, iputils
6e96398
BuildRequires: dosfstools, lsof, scrub, libselinux
984a577
BuildRequires: e4fsprogs
2cf282b
# Not supported in EPEL yet: ntfs-3g util-linux-ng zerofree
8e057d0
# Not working: augeas-libs
2cf282b
%ifarch %{ix86} x86_64
2cf282b
BuildRequires: grub, ntfsprogs
2cf282b
%endif
e8b9539
542c90b
# Must match the above set of BuildRequires exactly!
542c90b
Requires:      kernel, bash, coreutils, lvm2
542c90b
Requires:      MAKEDEV, net-tools, file
542c90b
Requires:      module-init-tools, procps, strace, iputils
6e96398
Requires:      dosfstools, lsof, scrub, libselinux
984a577
Requires:      e4fsprogs
542c90b
# Not supported in EPEL yet: ntfs-3g util-linux-ng zerofree
542c90b
# Not working: augeas-libs
542c90b
%ifarch %{ix86} x86_64
542c90b
Requires:      grub, ntfsprogs
542c90b
%endif
542c90b
e8b9539
# These are only required if you want to build the bindings for
e8b9539
# different languages:
e8b9539
BuildRequires: ocaml
e8b9539
BuildRequires: ocaml-findlib-devel
e1d3064
BuildRequires: ocaml-xml-light-devel
e76964d
#BuildRequires: perl-devel
e76964d
#BuildRequires: perl-Test-Simple
e8b9539
BuildRequires: perl-Test-Pod
e8b9539
BuildRequires: perl-Test-Pod-Coverage
e76964d
#BuildRequires: perl-ExtUtils-MakeMaker
f991d3a
BuildRequires: perl-XML-Writer
ced8e91
#BuildRequires: perl-libintl
e8b9539
BuildRequires: python-devel
e8b9539
BuildRequires: ruby-devel
e8b9539
BuildRequires: rubygem-rake
e8b9539
BuildRequires: java >= 1.5.0
e8b9539
BuildRequires: jpackage-utils
e8b9539
BuildRequires: java-devel
e8b9539
75019a7
# For libguestfs-tools:
e76964d
#BuildRequires: perl-Sys-Virt
e8b9539
e8b9539
# Runtime requires:
2cf282b
%ifarch %{ix86} x86_64
2cf282b
Requires:      qemu-system-x86 >= 0.10.5
2cf282b
%endif
2cf282b
%ifarch ppc ppc64
2cf282b
Requires:      qemu-system-ppc >= 0.10.5
2cf282b
%endif
e8b9539
cfd9ced
# For libguestfs-test-tool.
ba3e3cd
Requires:      mkisofs
cfd9ced
e8b9539
e8b9539
%description
e8b9539
Libguestfs is a library for accessing and modifying guest disk images.
e8b9539
Amongst the things this is good for: making batch configuration
e8b9539
changes to guests, getting disk used/free statistics (see also:
e8b9539
virt-df), migrating between virtualization systems (see also:
e8b9539
virt-p2v), performing partial backups, performing partial guest
e8b9539
clones, cloning guests and changing registry/UUID/hostname info, and
e8b9539
much else besides.
e8b9539
e8b9539
Libguestfs uses Linux kernel and qemu code, and can access any type of
e8b9539
guest filesystem that Linux and qemu can, including but not limited
e8b9539
to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
e8b9539
schemes, qcow, qcow2, vmdk.
e8b9539
e8b9539
Libguestfs provides ways to enumerate guest storage (eg. partitions,
e8b9539
LVs, what filesystem is in each LV, etc.).  It can also run commands
e8b9539
in the context of the guest.  Also you can access filesystems over FTP.
e8b9539
e8b9539
Libguestfs is a library that can be linked with C and C++ management
e8b9539
programs.
e8b9539
e8b9539
See also the 'guestfish' package for shell scripting and command line
e8b9539
access.
e8b9539
e8b9539
For Perl bindings, see 'perl-libguestfs'.
e8b9539
e8b9539
For OCaml bindings, see 'ocaml-libguestfs-devel'.
e8b9539
e8b9539
For Python bindings, see 'python-libguestfs'.
e8b9539
e8b9539
For Ruby bindings, see 'ruby-libguestfs'.
e8b9539
e8b9539
For Java bindings, see 'libguestfs-java-devel'.
e8b9539
e8b9539
e8b9539
%package devel
e8b9539
Summary:     Development tools and libraries for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
Requires:    pkgconfig
e8b9539
e8b9539
e8b9539
%description devel
e8b9539
%{name}-devel contains development tools and libraries
e8b9539
for %{name}.
e8b9539
e8b9539
e8b9539
%package -n guestfish
e8b9539
Summary:     Shell for accessing and modifying virtual machine disk images
e8b9539
Group:       Development/Tools
e8b9539
License:     GPLv2+
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
Requires:    /usr/bin/pod2text
ba3e3cd
#Requires:    virt-inspector
e8b9539
e8b9539
e8b9539
%description -n guestfish
e8b9539
Guestfish is the Filesystem Interactive SHell, for accessing and
e8b9539
modifying virtual machine disk images from the command line and shell
e8b9539
scripts.
e8b9539
e8b9539
75019a7
# %package tools
75019a7
# Summary:     System administration tools for virtual machines
75019a7
# Group:       Development/Tools
75019a7
# License:     GPLv2+
75019a7
# Requires:    %{name} = %{epoch}:%{version}-%{release}
75019a7
# Requires:    guestfish
75019a7
# Requires:    perl-Sys-Virt
75019a7
75019a7
# # Obsolete and replace earlier packages.
75019a7
# Provides:    virt-cat = %{epoch}:%{version}-%{release}
75019a7
# Obsoletes:   virt-cat <= %{epoch}:%{version}-%{release}
75019a7
# Provides:    virt-df = %{epoch}:%{version}-%{release}
75019a7
# Obsoletes:   virt-df <= %{epoch}:%{version}-%{release}
75019a7
# Provides:    virt-inspector = %{epoch}:%{version}-%{release}
75019a7
# Obsoletes:   virt-inspector <= %{epoch}:%{version}-%{release}
75019a7
75019a7
# # RHBZ#514309
75019a7
# Provides:    virt-df2 = %{epoch}:%{version}-%{release}
75019a7
# Obsoletes:   virt-df2 <= %{epoch}:%{version}-%{release}
75019a7
75019a7
# # These were never packages:
75019a7
# Provides:    virt-edit = %{epoch}:%{version}-%{release}
75019a7
# Provides:    virt-rescue = %{epoch}:%{version}-%{release}
75019a7
75019a7
75019a7
# %description tools
75019a7
# This package contains miscellaneous system administrator command line
75019a7
# tools for virtual machines.
75019a7
75019a7
# Virt-cat is a command line tool to display the contents of a file in a
75019a7
# virtual machine.
75019a7
75019a7
# Virt-df is a command line tool to display free space on virtual
75019a7
# machine filesystems.  Unlike other tools, it doesn’t just display the
75019a7
# amount of space allocated to a virtual machine, but can look inside
75019a7
# the virtual machine to see how much space is really being used.  It is
75019a7
# like the df(1) command, but for virtual machines, except that it also
75019a7
# works for Windows virtual machines.
75019a7
75019a7
# Virt-edit is a command line tool to edit the contents of a file in a
75019a7
# virtual machine.
75019a7
75019a7
# Virt-inspector examines a virtual machine and tries to determine the
75019a7
# version of the OS, the kernel version, what drivers are installed,
75019a7
# whether the virtual machine is fully virtualized (FV) or
75019a7
# para-virtualized (PV), what applications are installed and more.
75019a7
aa5d83e
# Virt-ls is a command line tool to list out files in a virtual machine.
aa5d83e
75019a7
# Virt-rescue provides a rescue shell for making interactive,
75019a7
# unstructured fixes to virtual machines.
b7d9d65
aa5d83e
# Virt-tar is an archive, backup and upload tool for virtual machines.
aa5d83e
c7fa03d
# Virt-win-reg lets you look inside the Windows Registry for
c7fa03d
# Windows virtual machines.
c7fa03d
b7d9d65
e8b9539
%package -n ocaml-%{name}
e8b9539
Summary:     OCaml bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
e8b9539
e8b9539
%description -n ocaml-%{name}
e8b9539
ocaml-%{name} contains OCaml bindings for %{name}.
e8b9539
e8b9539
This is for toplevel and scripting access only.  To compile OCaml
e8b9539
programs which use %{name} you will also need ocaml-%{name}-devel.
e8b9539
e8b9539
e8b9539
%package -n ocaml-%{name}-devel
e8b9539
Summary:     OCaml bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    ocaml-%{name} = %{epoch}:%{version}-%{release}
e8b9539
e8b9539
e8b9539
%description -n ocaml-%{name}-devel
e8b9539
ocaml-%{name}-devel contains development libraries
e8b9539
required to use the OCaml bindings for %{name}.
e8b9539
e8b9539
e8b9539
%package -n perl-%{name}
e8b9539
Summary:     Perl bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
Requires:    perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
8f1756e
# RHBZ#523547
8f1756e
Requires:    perl-XML-XPath
e8b9539
e8b9539
e8b9539
%description -n perl-%{name}
e8b9539
perl-%{name} contains Perl bindings for %{name}.
e8b9539
e8b9539
e8b9539
%package -n python-%{name}
e8b9539
Summary:     Python bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
e8b9539
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e8b9539
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
e8b9539
e8b9539
%description -n python-%{name}
e8b9539
python-%{name} contains Python bindings for %{name}.
e8b9539
e8b9539
e8b9539
%package -n ruby-%{name}
e8b9539
Summary:     Ruby bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
Requires:    ruby(abi) = 1.8
e8b9539
Provides:    ruby(guestfs) = %{version}
e8b9539
e8b9539
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
e8b9539
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
e8b9539
e8b9539
%description -n ruby-%{name}
e8b9539
ruby-%{name} contains Ruby bindings for %{name}.
e8b9539
e8b9539
e8b9539
%package java
e8b9539
Summary:     Java bindings for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
e8b9539
Requires:    java >= 1.5.0
e8b9539
Requires:    jpackage-utils
e8b9539
e8b9539
%description java
e8b9539
%{name}-java contains Java bindings for %{name}.
e8b9539
e8b9539
If you want to develop software in Java which uses %{name}, then
e8b9539
you will also need %{name}-java-devel.
e8b9539
e8b9539
e8b9539
%package java-devel
e8b9539
Summary:     Java development package for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
fde044a
Requires:    %{name}-java = %{epoch}:%{version}-%{release}
e8b9539
e8b9539
%description java-devel
e8b9539
%{name}-java-devel contains the tools for developing Java software
e8b9539
using %{name}.
e8b9539
e8b9539
See also %{name}-javadoc.
e8b9539
e8b9539
e8b9539
%package javadoc
e8b9539
Summary:     Java documentation for %{name}
e8b9539
Group:       Development/Libraries
fde044a
Requires:    %{name} = %{epoch}:%{version}-%{release}
fde044a
Requires:    %{name}-java = %{epoch}:%{version}-%{release}
e8b9539
Requires:    jpackage-utils
e8b9539
e8b9539
%description javadoc
e8b9539
%{name}-javadoc contains the Java documentation for %{name}.
e8b9539
e8b9539
e8b9539
%prep
e8b9539
%setup -q
e8b9539
e47cce1
# Remove this in 1.0.76:
8a481aa
%patch0 -p1
e47cce1
mv inspector/Makefile.am inspector/Makefile.am.orig
e47cce1
echo 'docdir = ${datadir}/doc/${PACKAGE}' > inspector/Makefile.am
e47cce1
cat inspector/Makefile.am.orig >> inspector/Makefile.am
1ecaf56
autoreconf
8a481aa
e8b9539
mkdir -p daemon/m4
e8b9539
e8b9539
e8b9539
%build
e8b9539
%if %{buildnonet}
e8b9539
mkdir repo
8e47d3a
find /var/cache/yum/ -type f -name '*.rpm' -print0 | xargs -0 cp -t repo
e8b9539
createrepo repo
ac9f573
ls -l repo
da2643d
%define extra --with-mirror=file://$(pwd)/repo --with-repo=epel-5 --with-updates=none
e8b9539
%else
51cbea0
%define extra --with-mirror=http://mirror.centos.org/centos-5/5.3/os/%{_arch}/ --with-repo=centos-5 --with-updates=none
e8b9539
%endif
e8b9539
da2643d
vmchannel_test=no \
e8b9539
./configure \
e8b9539
  --prefix=%{_prefix} --libdir=%{_libdir} \
e8b9539
  --mandir=%{_mandir} \
e8b9539
  --with-qemu="qemu-kvm qemu-system-%{_build_arch} qemu" \
e8b9539
  --enable-debug-command \
542c90b
  --enable-supermin \
e8b9539
  %{extra}
e8b9539
e8b9539
# This ensures that /usr/sbin/chroot is on the path.  Not needed
e8b9539
# except for RHEL 5, it shouldn't do any harm on other platforms.
e8b9539
export PATH=/usr/sbin:$PATH
e8b9539
e8b9539
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
e8b9539
# not the site dir.
e8b9539
make INSTALLDIRS=vendor %{?_smp_mflags}
e8b9539
e8b9539
2cf282b
%check
2cf282b
# Enable debugging - very useful if a test does fail, although
2cf282b
# it produces masses of output in the build.log.
2cf282b
export LIBGUESTFS_DEBUG=1
2cf282b
cfd9ced
%ifarch %{ix86}
d0e72f2
make check
7a6f80c
%endif
2cf282b
2cf282b
e8b9539
%install
e8b9539
rm -rf $RPM_BUILD_ROOT
e8b9539
e8b9539
make DESTDIR=$RPM_BUILD_ROOT install
e8b9539
542c90b
# Delete the ordinary appliance, leaving just the supermin appliance.
542c90b
rm $RPM_BUILD_ROOT%{_libdir}/guestfs/vmlinuz.*
542c90b
mkdir keep
542c90b
mv $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.supermin.img keep
542c90b
rm $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.img
542c90b
mv keep/* $RPM_BUILD_ROOT%{_libdir}/guestfs/
542c90b
rmdir keep
542c90b
542c90b
# Delete static libraries, libtool files.
e8b9539
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
e8b9539
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.la
c7fa03d
rm $RPM_BUILD_ROOT%{_libdir}/libhivex.a
c7fa03d
rm $RPM_BUILD_ROOT%{_libdir}/libhivex.la
e8b9539
e8b9539
# Clean up the examples/ directory which will get installed in %doc.
e8b9539
# Note we can't delete the original examples/Makefile because that
e8b9539
# will be needed by the check section later in the RPM build.
e8b9539
cp -a examples ex
e8b9539
pushd ex
e8b9539
make clean
e8b9539
rm Makefile*
e8b9539
rm -rf .deps .libs
e8b9539
popd
e8b9539
e8b9539
# Same for ocaml/examples.
e8b9539
cp -a ocaml/examples ocaml/ex
e8b9539
pushd ocaml/ex
e8b9539
make clean
e8b9539
rm Makefile*
e8b9539
popd
e8b9539
e8b9539
find $RPM_BUILD_ROOT -name perllocal.pod -delete
e8b9539
find $RPM_BUILD_ROOT -name .packlist -delete
e8b9539
find $RPM_BUILD_ROOT -name '*.bs' -delete
e8b9539
e8b9539
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.a
e8b9539
rm $RPM_BUILD_ROOT%{python_sitearch}/libguestfsmod.la
e8b9539
e8b9539
if [ "$RPM_BUILD_ROOT%{python_sitearch}" != "$RPM_BUILD_ROOT%{python_sitelib}" ]; then
e8b9539
   mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
e8b9539
   mv $RPM_BUILD_ROOT%{python_sitearch}/guestfs.py* \
e8b9539
     $RPM_BUILD_ROOT%{python_sitelib}/
e8b9539
fi
e8b9539
e8b9539
# Install ruby bindings by hand.
e8b9539
mkdir -p $RPM_BUILD_ROOT%{ruby_sitelib}
e8b9539
mkdir -p $RPM_BUILD_ROOT%{ruby_sitearch}
e8b9539
install -p -m0644 ruby/lib/guestfs.rb $RPM_BUILD_ROOT%{ruby_sitelib}
e8b9539
install -p -m0755 ruby/ext/guestfs/_guestfs.so $RPM_BUILD_ROOT%{ruby_sitearch}
e8b9539
e8b9539
# Remove static-linked Java bindings.
e8b9539
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.a
e8b9539
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.la
e8b9539
e8b9539
# Generator shouldn't be executable when we distribute it.
e8b9539
chmod -x src/generator.ml
e8b9539
e1d3064
# Move installed documentation back to the source directory so
e1d3064
# we can install it using a %%doc rule.
e1d3064
#mv $RPM_BUILD_ROOT%{_docdir}/libguestfs installed-docs
e1d3064
2cf282b
# Find locale files.
2cf282b
%find_lang %{name}
2cf282b
e8b9539
e8b9539
%clean
e8b9539
rm -rf $RPM_BUILD_ROOT
e8b9539
e8b9539
e8b9539
%post -p /sbin/ldconfig
e8b9539
e8b9539
%postun -p /sbin/ldconfig
e8b9539
e8b9539
2cf282b
%files -f %{name}.lang
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc COPYING
542c90b
%{_bindir}/libguestfs-supermin-helper
cfd9ced
%{_bindir}/libguestfs-test-tool
c7fa03d
%{_bindir}/hivexml
c7fa03d
%{_bindir}/hivexget
e8b9539
%{_libdir}/guestfs/
e8b9539
%{_libdir}/libguestfs.so.*
c7fa03d
%{_libdir}/libhivex.so.*
cfd9ced
%{_libexecdir}/libguestfs-test-tool-helper
cfd9ced
%{_mandir}/man1/libguestfs-test-tool.1*
e8b9539
e8b9539
e8b9539
%files devel
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc ChangeLog HACKING TODO README ex html/guestfs.3.html html/pod.css
5b748a4
%doc src/generator.ml
5b748a4
#%doc installed-docs/*
e8b9539
%{_libdir}/libguestfs.so
c7fa03d
%{_libdir}/libhivex.so
c7fa03d
%{_mandir}/man1/hivexml.1*
c7fa03d
%{_mandir}/man1/hivexget.1*
e8b9539
%{_mandir}/man3/guestfs.3*
01a1719
%{_mandir}/man3/libguestfs.3*
c7fa03d
%{_mandir}/man3/hivex.3*
e8b9539
%{_includedir}/guestfs.h
e8b9539
%{_includedir}/guestfs-actions.h
e8b9539
%{_includedir}/guestfs-structs.h
e8b9539
%{_libdir}/pkgconfig/libguestfs.pc
e8b9539
e8b9539
e8b9539
%files -n guestfish
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc html/guestfish.1.html html/pod.css recipes/
e8b9539
%{_bindir}/guestfish
e8b9539
%{_mandir}/man1/guestfish.1*
e8b9539
e8b9539
75019a7
# %files tools
75019a7
# %defattr(-,root,root,-)
75019a7
# %{_bindir}/virt-cat
75019a7
# %{_mandir}/man1/virt-cat.1*
75019a7
# %{_bindir}/virt-df
75019a7
# %{_mandir}/man1/virt-df.1*
75019a7
# %{_bindir}/virt-edit
75019a7
# %{_mandir}/man1/virt-edit.1*
75019a7
# %{_bindir}/virt-inspector
75019a7
# %{_mandir}/man1/virt-inspector.1*
aa5d83e
# %{_bindir}/virt-ls
aa5d83e
# %{_mandir}/man1/virt-ls.1*
75019a7
# %{_bindir}/virt-rescue
75019a7
# %{_mandir}/man1/virt-rescue.1*
aa5d83e
# %{_bindir}/virt-tar
aa5d83e
# %{_mandir}/man1/virt-tar.1*
c7fa03d
# %{_bindir}/virt-win-reg
c7fa03d
# %{_mandir}/man1/virt-win-reg.1*
b7d9d65
b7d9d65
e8b9539
%files -n ocaml-%{name}
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{_libdir}/ocaml/guestfs
e8b9539
%exclude %{_libdir}/ocaml/guestfs/*.a
e8b9539
%exclude %{_libdir}/ocaml/guestfs/*.cmxa
e8b9539
%exclude %{_libdir}/ocaml/guestfs/*.cmx
e8b9539
%exclude %{_libdir}/ocaml/guestfs/*.mli
e8b9539
%{_libdir}/ocaml/stublibs/*.so
e8b9539
%{_libdir}/ocaml/stublibs/*.so.owner
e8b9539
e8b9539
e8b9539
%files -n ocaml-%{name}-devel
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc ocaml/ex
e8b9539
%{_libdir}/ocaml/guestfs/*.a
e8b9539
%{_libdir}/ocaml/guestfs/*.cmxa
e8b9539
%{_libdir}/ocaml/guestfs/*.cmx
e8b9539
%{_libdir}/ocaml/guestfs/*.mli
e8b9539
e8b9539
e8b9539
%files -n perl-%{name}
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc perl/examples
e8b9539
%{perl_vendorarch}/*
e8b9539
%{_mandir}/man3/Sys::Guestfs.3pm*
a9c3fba
%{_mandir}/man3/Sys::Guestfs::Lib.3pm*
e8b9539
e8b9539
e8b9539
%files -n python-%{name}
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{python_sitearch}/*
e8b9539
%{python_sitelib}/*.py
0dae173
%{python_sitelib}/*.pyc
0dae173
%{python_sitelib}/*.pyo
e8b9539
e8b9539
e8b9539
%files -n ruby-%{name}
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{ruby_sitelib}/guestfs.rb
e8b9539
%{ruby_sitearch}/_guestfs.so
e8b9539
e8b9539
e8b9539
%files java
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{_libdir}/libguestfs_jni*.so.*
e8b9539
%{_datadir}/java/*.jar
e8b9539
e8b9539
e8b9539
%files java-devel
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{_libdir}/libguestfs_jni*.so
e8b9539
e8b9539
e8b9539
%files javadoc
e8b9539
%defattr(-,root,root,-)
e8b9539
%doc README
e8b9539
%{_datadir}/javadoc/%{name}-java-%{version}
e8b9539
e8b9539
e8b9539
%changelog
e47cce1
* Thu Oct 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.75-1.el5.4
c7fa03d
- New upstream release 1.0.75.
c7fa03d
- New library: libhivex.
c7fa03d
- New tools: virt-win-reg, hivexml, hivexget.
c7fa03d
- Don't require chntpw.
8a481aa
- Pull in upstream patch to fix missing endianness functions on RHEL 5.
c7fa03d
aa5d83e
* Tue Oct 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.74-1
aa5d83e
- New upstream release 1.0.74.
aa5d83e
- New API call: guestfs_find0.
aa5d83e
- New tools: virt-ls, virt-tar (not enabled in this release).
aa5d83e
5b748a4
* Wed Oct 14 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.73-2
e1d3064
- New upstream release 1.0.73.
e1d3064
- OCaml library now depends on xml-light.
e1d3064
- Deal with installed documentation.
5b748a4
- Incorrectly commented %%doc rule.
e1d3064
75019a7
* Wed Sep 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.72-1
75019a7
- New upstream release 1.0.72.
75019a7
- New tools: virt-edit, virt-rescue.
75019a7
- Combine virt-cat, virt-df, virt-edit, virt-inspector and virt-rescue
75019a7
  into a single package called libguestfs-tools.
75019a7
- libguestfs-tools is still disabled on EPEL because we are
75019a7
  waiting for perl(Sys::Virt) to go into RHEL (in 5.4).
75019a7
e41090e
* Tue Sep 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.71-1
e41090e
- New upstream release 1.0.71.
e41090e
8f1756e
* Fri Sep 18 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.70-2
8f1756e
- Perl bindings require perl-XML-XPath (fixed RHBZ#523547).
8f1756e
d832b40
* Tue Sep 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.70-1
d832b40
- New upstream release 1.0.70.
d832b40
- Fixes build problem related to old version of GNU gettext.
d832b40
ab187ff
* Tue Sep 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.69-1
ab187ff
- New upstream release 1.0.69.
ab187ff
- New main loop code should fix RHBZ#501888, RHBZ#504418.
ab187ff
- Add waitpid along guestfs_close path (fixes RHBZ#518747).
ab187ff
- Remove fix-tests patch which is now upstream.
ab187ff
53505fa
* Wed Aug 19 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.68-5
586bc13
- New upstream release 1.0.68.
c4a3266
- BR mkisofs.
984a577
- For EPEL only we need e4fsprogs.
90ac390
- Pull in upstream patch to fix tests.
586bc13
1e7c0df
* Thu Aug 13 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.67-1
1e7c0df
- New upstream release 1.0.67.
1e7c0df
ccad985
* Fri Aug  7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.66-4
ccad985
- Another patch to try to fix the tests.
ccad985
d48e8df
* Thu Aug  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.66-3
70d5d69
- New upstream release 1.0.66.
d48e8df
- Incorporate upstream patches to fix some tests.
70d5d69
4b198bc
* Wed Jul 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.65-2
e48e272
- New upstream release 1.0.65.
4b198bc
- Remove RHEL 5 patch, now upstream.
e48e272
ba3e3cd
* Mon Jul 27 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.64-3
ba3e3cd
- Fix broken runtime dep on virt-inspector (Dennis Gilmore).
ba3e3cd
- Fix broken runtime dep on genisoimage (Dennis Gilmore).
ba3e3cd
36e2439
* Thu Jul 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.64-2
cfd9ced
- New upstream release 1.0.64.
cfd9ced
- New tool 'libguestfs-test-tool'.
36e2439
- Workaround for RHEL 5 bug with squashfs filesystems.
cfd9ced
5c8932f
* Wed Jul 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.61-6
b7d9d65
- New upstream release 1.0.61.
b7d9d65
- New tool / subpackage 'virt-cat'.
ced8e91
- New BR perl-libintl (not enabled, because not in EPEL).
ec7c52a
- Pull in upstream fix for building Perl bindings.
b7d9d65
fde044a
* Wed Jul 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.60-2
fde044a
- Fix runtime Requires so they use epoch correctly.
fde044a
42c08d4
* Tue Jul 14 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.60-1
42c08d4
- New upstream release 1.0.60.
b7019af
a68fe95
* Fri Jul 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.58-2
3220c7b
- New upstream release 1.0.58.
3220c7b
c436b19
* Fri Jul 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.57-2
a9c3fba
- New upstream release 1.0.57.
c436b19
- Workaround for RHBZ#502058.
a9c3fba
ab20fae
* Tue Jul  7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.56-1
ab20fae
- New upstream release 1.0.56.
ab20fae
01a1719
* Thu Jul  2 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.55-1
01a1719
- New upstream release 1.0.55.
01a1719
- New manual page libguestfs(3).
01a1719
f991d3a
* Mon Jun 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.54-2
019e8a3
- New upstream release 1.0.54.
f991d3a
- +BR perl-XML-Writer.
019e8a3
6591020
* Mon Jun 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.51-1
6591020
- New upstream release 1.0.51.
542c90b
- Enable supermin appliance, backporting changes from devel branch.
542c90b
7a6f80c
* Thu Jun 11 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.44-1.el5.1
7a6f80c
- Tests fail on i386 (impossible to debug because there are no
7a6f80c
  log files available in plague), so disable tests on i386.
7a6f80c
- Tests succeeded on x86-64, so leave enabled on this platform.
7a6f80c
d0e72f2
* Wed Jun 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.44-1
d0e72f2
- New upstream version 1.0.44.
d0e72f2
- This release is supposed to fix the testsuite under RHEL 5, so
d0e72f2
  try enabling tests.
d0e72f2
bc42acd
* Tue Jun  9 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.43-1
bc42acd
- New upstream version 1.0.43.
bc42acd
- New upstream URL.
bc42acd
- Requires chntpw program.
bc42acd
65b9d69
* Sat Jun  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.42-1
65b9d69
- New upstream version 1.0.42.
65b9d69
bb15a46
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.41-1
bb15a46
- New upstream version 1.0.41.
bb15a46
- Fixes a number of regressions in RHBZ#503169.
bb15a46
e52ccf4
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.40-1
e52ccf4
- New upstream version 1.0.40.
e52ccf4
49edc13
* Thu Jun  4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.39-1
49edc13
- New upstream version 1.0.39.
49edc13
- Fixes:
49edc13
  . libguestfs /dev is too sparse for kernel installation/upgrade (RHBZ#503169)
49edc13
  . OCaml bindings build failure (RHBZ#502309)
49edc13
d426c00
* Tue Jun  2 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.38-1
d426c00
- New upstream version 1.0.38.
d426c00
12799f1
* Fri May 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.37-1
12799f1
- New upstream version 1.0.37.
12799f1
- Fixes:
12799f1
  . "mkdir-p" should not throw errors on preexisting directories (RHBZ#503133)
12799f1
  . cramfs and squashfs modules should be available in libguestfs appliances
12799f1
      (RHBZ#503135)
12799f1
5ec0fbc
* Thu May 28 2009 Richard Jones <rjones@redhat.com> - 1.0.35-1
5ec0fbc
- New upstream version 1.0.35.
5ec0fbc
- Disable tests, they took over 24 hours to run.
5ec0fbc
8e057d0
* Wed May 27 2009 Richard Jones <rjones@redhat.com> - 1.0.34-1.el5.3
99f554b
- Fails to build on PPC.
ac9f573
- Fix missing Augeas dependency.
99f554b
2cf282b
* Wed May 27 2009 Richard Jones <rjones@redhat.com> - 1.0.34-1
2cf282b
- Backport 1.0.34 from devel to EPEL.
2cf282b
- There should now be a working qemu in EPEL (0.10.5).
2cf282b
31458b7
* Wed May 13 2009 Richard Jones <rjones@redhat.com> - 1.0.23-9
31458b7
- Remove the runtime requires on non-existant package.  It'll just fail
31458b7
  instead.
31458b7
0dae173
* Mon May 11 2009 Richard Jones <rjones@redhat.com> - 1.0.23-8
3ed2a95
- New upstream version 1.0.23.
da2643d
- Disable vmchannel test.
da2643d
- Disable updates repo.
e76964d
- Fix specfile for EPEL build.
8e47d3a
- Correct yum location.
6d0b52f
- Need _a_ version of qemu installed when installing.
0dae173
- *.pyc and *.pyo files are present on x86_64.
3ed2a95
e8b9539
* Fri May  8 2009 Richard Jones <rjones@redhat.com> - 1.0.21-2
e8b9539
- New upstream version 1.0.21.
e8b9539
e8b9539
* Thu May  7 2009 Richard Jones <rjones@redhat.com> - 1.0.20-2
e8b9539
- New upstream version 1.0.20.
e8b9539
e8b9539
* Thu May  7 2009 Richard Jones <rjones@redhat.com> - 1.0.19-1
e8b9539
- New upstream version 1.0.19.
e8b9539
e8b9539
* Tue Apr 28 2009 Richard Jones <rjones@redhat.com> - 1.0.15-1
e8b9539
- New upstream version 1.0.15.
e8b9539
e8b9539
* Fri Apr 24 2009 Richard Jones <rjones@redhat.com> - 1.0.12-1
e8b9539
- New upstream version 1.0.12.
e8b9539
e8b9539
* Wed Apr 22 2009 Richard Jones <rjones@redhat.com> - 1.0.6-1
e8b9539
- New upstream version 1.0.6.
e8b9539
e8b9539
* Mon Apr 20 2009 Richard Jones <rjones@redhat.com> - 1.0.2-1
e8b9539
- New upstream version 1.0.2.
e8b9539
e8b9539
* Thu Apr 16 2009 Richard Jones <rjones@redhat.com> - 0.9.9-12
e8b9539
- Multiple fixes to get it to scratch build in Koji.
e8b9539
e8b9539
* Sat Apr  4 2009 Richard Jones <rjones@redhat.com> - 0.9.9-1
e8b9539
- Initial build.