From d6a286c262daf4e6b3b284fac3d4d564b20551ea86f2b60b1b29012583b0d072 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 13 Sep 2012 18:22:57 +0000 Subject: [PATCH] - move BuildRequires for subpackages into the subpackage section OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=96 --- libguestfs.changes | 5 +++ libguestfs.spec | 78 ++++++++++++++++++++-------------------------- 2 files changed, 38 insertions(+), 45 deletions(-) diff --git a/libguestfs.changes b/libguestfs.changes index 5414b55..e973356 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 13 20:22:24 CEST 2012 - ohering@suse.de + +- move BuildRequires for subpackages into the subpackage section + ------------------------------------------------------------------- Thu Sep 13 20:12:28 CEST 2012 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index 0d9ff71..ea9d26c 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -23,6 +23,13 @@ %define with_ruby 1 %define with_fuse 1 # +# The following defines are overridden in the indivual subpackages +%define _configure_fuse --disable-fuse +%define _configure_ocaml --disable-ocaml +%define _configure_perl --disable-perl +%define _configure_python --disable-python +%define _configure_ruby --disable-ruby +# # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the @@ -61,51 +68,6 @@ BuildRequires: perl(Pod::Simple::XHTML) >= 3.16 %if %{with_fuse} BuildRequires: fuse-devel %define _configure_fuse --enable-fuse -%else -%define _configure_fuse --disable-fuse -%endif -# -%if %{with_ocaml} -BuildRequires: ocaml -BuildRequires: ocaml-findlib -%define _configure_ocaml --enable-ocaml -%else -%define _configure_ocaml --disable-ocaml -%endif -# -%if %{with_perl} -BuildRequires: perl -BuildRequires: perl-macros -BuildRequires: perl(Data::Dumper) -BuildRequires: perl(Getopt::Long) -BuildRequires: perl(Locale::TextDomain) -BuildRequires: perl(Pod::Usage) -BuildRequires: perl(String::ShellQuote) -BuildRequires: perl(Sys::Virt) -BuildRequires: perl(Win::Hivex) -BuildRequires: perl(Win::Hivex::Regedit) - -%define _configure_perl --enable-perl -%else -%define _configure_perl --disable-perl -%endif -# -%if %{with_python} -%define pyver %(python -c "import sys; print sys.version[:3]") -BuildRequires: python -BuildRequires: python-devel -%define _configure_python --enable-python -%else -%define _configure_python --disable-python -%endif -# -%if %{with_ruby} -BuildRequires: ruby -BuildRequires: ruby-devel -BuildRequires: rubygem-rake -%define _configure_ruby --enable-ruby -%else -%define _configure_ruby --disable-ruby %endif # Url: http://libguestfs.org/ @@ -212,6 +174,10 @@ virtual machines. %package -n ocaml-libguestfs Summary: Provides OCaml support for libguestfs Group: System/Filesystems +BuildRequires: ocaml +BuildRequires: ocaml-findlib +%define _configure_ocaml --enable-ocaml +# %description -n ocaml-libguestfs Allows OCaml scripts to directly use libguestfs. @@ -228,6 +194,18 @@ Allows OCaml scripts to directly use libguestfs. %package -n perl-Sys-Guestfs Summary: Provides Perl support for libguestfs Group: System/Filesystems +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Locale::TextDomain) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(String::ShellQuote) +BuildRequires: perl(Sys::Virt) +BuildRequires: perl(Win::Hivex) +BuildRequires: perl(Win::Hivex::Regedit) +%define _configure_perl --enable-perl +# Provides: libguestfs-perl = %{version} Obsoletes: libguestfs-perl < %{version} %perl_requires @@ -240,6 +218,11 @@ Allows Perl scripts to directly use libguestfs. %package -n python-libguestfs Summary: Provides Python support for libguestfs Group: System/Filesystems +%define pyver %(python -c "import sys; print sys.version[:3]") +BuildRequires: python +BuildRequires: python-devel +%define _configure_python --enable-python +# Provides: libguestfs-python = %{version} Obsoletes: libguestfs-python < %{version} @@ -251,6 +234,11 @@ Allows Python scripts to directly use libguestfs. %package -n rubygem-libguestfs Summary: Ruby bindings for libguestfs Group: System/Filesystems +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygem-rake +%define _configure_ruby --enable-ruby +# %description -n rubygem-libguestfs Allows Ruby scripts to directly use libguestfs.