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:
parent
9f383ac958
commit
612eca1535
@ -1,6 +1,7 @@
|
|||||||
%define with_python 1
|
#
|
||||||
%define with_perl 1
|
# spec file for package libguestfs
|
||||||
%define with_ruby 0
|
#
|
||||||
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
|
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: libguestfs
|
||||||
ExclusiveArch: %ix86 x86_64
|
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)
|
BuildRequires: perl(Pod::Simple::XHTML)
|
||||||
#
|
#
|
||||||
%if %{with_perl}
|
%if %{with_perl}
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Getopt::Long)
|
|
||||||
BuildRequires: perl(Data::Dumper)
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
BuildRequires: perl(Locale::TextDomain)
|
BuildRequires: perl(Locale::TextDomain)
|
||||||
BuildRequires: perl(Pod::Usage)
|
BuildRequires: perl(Pod::Usage)
|
||||||
%if 0
|
%if 0
|
||||||
|
BuildRequires: perl(String::ShellQuote)
|
||||||
BuildRequires: perl(Win::Hivex)
|
BuildRequires: perl(Win::Hivex)
|
||||||
BuildRequires: perl(Win::Hivex::Regedit)
|
BuildRequires: perl(Win::Hivex::Regedit)
|
||||||
BuildRequires: perl(String::ShellQuote)
|
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: perl(Sys::Virt)
|
BuildRequires: perl(Sys::Virt)
|
||||||
|
|
||||||
@ -42,14 +72,17 @@ BuildRequires: perl(Sys::Virt)
|
|||||||
#
|
#
|
||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
%define pyver %(python -c "import sys; print sys.version[:3]")
|
%define pyver %(python -c "import sys; print sys.version[:3]")
|
||||||
BuildRequires: python python-devel
|
BuildRequires: python
|
||||||
|
BuildRequires: python-devel
|
||||||
%define _configure_python --enable-python
|
%define _configure_python --enable-python
|
||||||
%else
|
%else
|
||||||
%define _configure_python --disable-python
|
%define _configure_python --disable-python
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
%if %{with_ruby}
|
%if %{with_ruby}
|
||||||
BuildRequires: ruby ruby-devel rubygem-rake
|
BuildRequires: ruby
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
BuildRequires: rubygem-rake
|
||||||
%define _configure_ruby --enable-ruby
|
%define _configure_ruby --enable-ruby
|
||||||
%else
|
%else
|
||||||
%define _configure_ruby --disable-ruby
|
%define _configure_ruby --disable-ruby
|
||||||
@ -58,11 +91,11 @@ BuildRequires: ruby ruby-devel rubygem-rake
|
|||||||
# libconfig-devel fuse-devel libulockmgr1
|
# libconfig-devel fuse-devel libulockmgr1
|
||||||
Url: http://libguestfs.org/
|
Url: http://libguestfs.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
License: LGPL-2.1
|
|
||||||
Summary: Tools for accessing and modifying virtual machine disk images
|
Summary: Tools for accessing and modifying virtual machine disk images
|
||||||
|
License: LGPL-2.1
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Version: 1.19.30
|
Version: 1.19.30
|
||||||
Release: 1
|
Release: 0
|
||||||
Patch: libguestfs-1.19.30.patch
|
Patch: libguestfs-1.19.30.patch
|
||||||
Patch1: libguestfs-1.13.14-disable-erlang.patch
|
Patch1: libguestfs-1.13.14-disable-erlang.patch
|
||||||
Patch2: libguestfs-1.13.14-provided-appliance.patch
|
Patch2: libguestfs-1.13.14-provided-appliance.patch
|
||||||
@ -158,6 +191,7 @@ virtual machines.
|
|||||||
Summary: Virtual machine needed for libguestfs
|
Summary: Virtual machine needed for libguestfs
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Version: 15
|
Version: 15
|
||||||
|
Release: 0
|
||||||
Requires: %{name}
|
Requires: %{name}
|
||||||
|
|
||||||
%description data
|
%description data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user