SHA256
1
0
forked from pool/libguestfs

run /usr/lib/obs/service/format_spec_file

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=12
This commit is contained in:
Olaf Hering 2012-08-16 15:55:36 +00:00 committed by Git OBS Bridge
parent 9f383ac958
commit 612eca1535

View File

@ -1,6 +1,7 @@
%define with_python 1
%define with_perl 1
%define with_ruby 0
#
# spec file for package libguestfs
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
#
# All modifications and additions to the file contributed by third parties
@ -12,25 +13,54 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# norootforbuild
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_python 1
%define with_perl 1
%define with_ruby 0
#
# 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
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: libguestfs
ExclusiveArch: %ix86 x86_64
BuildRequires: gcc gcc-c++ libtool automake autoconf pkg-config gperf genisoimage qemu kvm pcre-devel libvirt-devel ncurses-devel readline-devel xz hivex-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: genisoimage
BuildRequires: gperf
BuildRequires: hivex-devel
BuildRequires: kvm
BuildRequires: libtool
BuildRequires: libvirt-devel
BuildRequires: ncurses-devel
BuildRequires: pcre-devel
BuildRequires: pkg-config
BuildRequires: qemu
BuildRequires: readline-devel
BuildRequires: xz
BuildRequires: perl(Pod::Simple::XHTML)
#
%if %{with_perl}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Locale::TextDomain)
BuildRequires: perl(Pod::Usage)
%if 0
BuildRequires: perl(String::ShellQuote)
BuildRequires: perl(Win::Hivex)
BuildRequires: perl(Win::Hivex::Regedit)
BuildRequires: perl(String::ShellQuote)
%endif
BuildRequires: perl(Sys::Virt)
@ -42,14 +72,17 @@ BuildRequires: perl(Sys::Virt)
#
%if %{with_python}
%define pyver %(python -c "import sys; print sys.version[:3]")
BuildRequires: python python-devel
BuildRequires: python
BuildRequires: python-devel
%define _configure_python --enable-python
%else
%define _configure_python --disable-python
%endif
#
%if %{with_ruby}
BuildRequires: ruby ruby-devel rubygem-rake
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: rubygem-rake
%define _configure_ruby --enable-ruby
%else
%define _configure_ruby --disable-ruby
@ -58,11 +91,11 @@ BuildRequires: ruby ruby-devel rubygem-rake
# libconfig-devel fuse-devel libulockmgr1
Url: http://libguestfs.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: LGPL-2.1
Summary: Tools for accessing and modifying virtual machine disk images
License: LGPL-2.1
Group: System/Filesystems
Version: 1.19.30
Release: 1
Release: 0
Patch: libguestfs-1.19.30.patch
Patch1: libguestfs-1.13.14-disable-erlang.patch
Patch2: libguestfs-1.13.14-provided-appliance.patch
@ -158,6 +191,7 @@ virtual machines.
Summary: Virtual machine needed for libguestfs
Group: System/Filesystems
Version: 15
Release: 0
Requires: %{name}
%description data