17
0

Accepting request 512689 from home:jfehlig:branches:Virtualization

Rename libvirt-python to python-libvirt-python and convert to singlespec.

OBS-URL: https://build.opensuse.org/request/show/512689
OBS-URL: https://build.opensuse.org/package/show/Virtualization/python-libvirt-python?expand=0&rev=1
This commit is contained in:
2017-07-26 20:24:55 +00:00
committed by Git OBS Bridge
commit fb057616f0
7 changed files with 571 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
#
# spec file for package python-libvirt-python
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-libvirt-python
%define srcname libvirt-python
Url: http://libvirt.org/
Version: 3.5.0
Release: 0
Summary: Library providing a simple virtualization API
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Source0: %{srcname}-%{version}.tar.gz
Source1: %{srcname}-%{version}.tar.gz.asc
Source2: python-libvirt-python.keyring
BuildRequires: fdupes
BuildRequires: libvirt-devel >= 0.9.11
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module xml}
Provides: libvirt-python = %{version}
Obsoletes: libvirt-python < %{version}
%python_subpackages
%description
The python-libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
%prep
%setup -q -n %{srcname}-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{python_sitearch}/*
%pycache_only %{python3_sitearch}/__pycache__/*
%changelog