From 612eca1535cf51e2d64c943dc587f2ed9576b12a40f2b602d8e2fecb4700a3f0 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 16 Aug 2012 15:55:36 +0000 Subject: [PATCH] run /usr/lib/obs/service/format_spec_file OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=12 --- libguestfs.spec | 60 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/libguestfs.spec b/libguestfs.spec index ba41b09..e952afd 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -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 # # 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,12 +91,12 @@ 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 -Patch: libguestfs-1.19.30.patch +Release: 0 +Patch: libguestfs-1.19.30.patch Patch1: libguestfs-1.13.14-disable-erlang.patch Patch2: libguestfs-1.13.14-provided-appliance.patch Patch3: libguestfs-1.13.14-no-machine.patch @@ -90,7 +123,7 @@ virtual machines. %package doc Summary: Documentation for libguestfs -Group: Documentation +Group: Documentation %description doc Documentation for libguestfs. @@ -158,6 +191,7 @@ virtual machines. Summary: Virtual machine needed for libguestfs Group: System/Filesystems Version: 15 +Release: 0 Requires: %{name} %description data