- move BuildRequires for subpackages into the subpackage section

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=96
This commit is contained in:
Olaf Hering 2012-09-13 18:22:57 +00:00 committed by Git OBS Bridge
parent a05af80829
commit d6a286c262
2 changed files with 38 additions and 45 deletions

View File

@ -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

View File

@ -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.