From ee8ccc9b97fb14ccf9b93a0da44678987a8d927fada85e69df411c38359a79bc Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 14 Nov 2012 16:31:29 +0000 Subject: [PATCH] - remove guestfs-doc subpackage, it contains just exmple xml files OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=154 --- libguestfs.changes | 5 +++++ libguestfs.spec | 33 +++++---------------------------- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/libguestfs.changes b/libguestfs.changes index 9ba8834..12d5864 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 14 17:30:40 CET 2012 - ohering@suse.de + +- remove guestfs-doc subpackage, it contains just exmple xml files + ------------------------------------------------------------------- Wed Nov 14 16:39:14 CET 2012 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index a93c300..b579fe3 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -45,6 +45,9 @@ %define _configure_python --disable-python %define _configure_ruby --disable-ruby +# +%define guestfs_docdir %{_defaultdocdir}/%{name} +# Name: libguestfs ExclusiveArch: %ix86 x86_64 BuildRequires: aaa_base @@ -168,28 +171,6 @@ guestfsd runs within the libguestfs appliance. It receives commands from the hos and performs the requested action by calling the helper binaries. This package is only required for building the appliance. -%package -n guestfs-doc -Summary: Documentation for guestfs -Group: Documentation/Other - -%description -n guestfs-doc -Documentation for guestfs. - -libguestfs is a set of tools for accessing and modifying virtual machine (VM) -disk images. You can use this for viewing and editing files inside guests, -scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V, -performing partial backups, cloning VMs, and much else besides. - -libguestfs can access nearly any type of filesystem including: all known types -of Linux filesystem (ext2/3/4, XFS, btrfs etc), any Windows filesystem (VFAT -and NTFS), any Mac OS X and BSD filesystems, LVM2 volume management, MBR and -GPT disk partitions, raw disks, qcow2, VirtualBox VDI, VMWare VMDK, CD and DVD -ISOs, SD cards, and dozens more. libguestfs doesn't need root permissions. - -All this functionality is available through a convenient shell called -guestfish, or use virt-rescue to get a rescue shell for fixing unbootable -virtual machines. - # %if %{with_ocaml_bindings} %package -n ocaml-libguestfs @@ -398,7 +379,7 @@ fi --help || : #sed -i '1 s@^.*@#!/bin/sh -x@' configure %configure \ - --docdir=%{_defaultdocdir}/guestfs-doc \ + --docdir=%{guestfs_docdir} \ --enable-daemon \ --enable-install-daemon \ --with-default-attach-method="${default_attach_method}" \ @@ -426,6 +407,7 @@ make \ %if !%{with_ocaml_bindings} rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml %endif +rm -rfv $RPM_BUILD_ROOT%{guestfs_docdir} find $RPM_BUILD_ROOT -type f \( \ -name "virt-list-filesystems" -o -name "virt-list-filesystems.*" -o \ -name "virt-list-partitions" -o -name "virt-list-partitions.*" -o \ @@ -590,11 +572,6 @@ rm -rf $RPM_BUILD_ROOT %post -n libguestfs0 -p /sbin/ldconfig %postun -n libguestfs0 -p /sbin/ldconfig -%files -n guestfs-doc -%defattr(-,root,root) -%doc inspector/*.xml -%doc inspector/*.rng - %files -n guestfs-data %defattr(-,root,root) %{_libdir}/guestfs