File open-ovf.spec of Package open-ovf

#
# spec file for package open-ovf (Version 0.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           open-ovf
Version:        0.1
Release:        3
Summary:        Tool for importing and exporting OVF
Url:            http://open-ovf.wiki.sourceforge.net/
License:        EPL-1.0
Group:          Development/Libraries/Python
Source0:        %{name}-%{version}.tar.bz2
Source1:        README.SuSE
Patch0:         output-libvirtxml-file.patch
Patch1:         xenfv-libvirtxml.patch
Patch2:         use-before-define.patch
Patch3:         libvirt-clock.patch
Patch4:         python2.6.patch
Patch5:         help.patch
Patch6:         OvfSet-init.patch
Patch7:         ova.patch
Patch8:         xenpv-libvirtxml.patch
Patch9:         lsovf.patch
Patch10:        rmovf.patch
Patch11:        chovf.patch
Patch12:        ova-unpack.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python python-devel
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
%py_requires

%description
Open-OVF project is an open source library and tools designed to promote
adoption of the OVF (Open Virtual Machine Format) specification as an
industry standard.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1

%build
%{__python} setup.py build

%install
%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/
install -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_docdir}/%{name}/

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README.SuSE

%changelog
openSUSE Build Service is sponsored by