|
|
|
|
@@ -24,15 +24,26 @@
|
|
|
|
|
%global __brp_python_bytecompile %{nil}
|
|
|
|
|
|
|
|
|
|
%define srcname libvirt-python
|
|
|
|
|
%define realname saltbundlepy-libvirt
|
|
|
|
|
%define realversion 9.2.0
|
|
|
|
|
|
|
|
|
|
Name: saltbundlepy-libvirt
|
|
|
|
|
Name: saltbundlepy-libvirt-sle12
|
|
|
|
|
URL: https://libvirt.org/
|
|
|
|
|
Version: 9.2.0
|
|
|
|
|
# NOTE ABOUT VERSION HACK
|
|
|
|
|
# The real version of this package is "9.2.0". We had to fake the version
|
|
|
|
|
# number by adding and extra ".1" to it.
|
|
|
|
|
# The reason is that, after having to rename the package due to Git workflow restrictions,
|
|
|
|
|
# the release number counter is reset for this new package, and therefore the
|
|
|
|
|
# new binaries are using an lower release number than previous builds before the package renaming.
|
|
|
|
|
# To avoid the Salt Bundle to take older binaries we just faked the version here to a higher one.
|
|
|
|
|
# NOTE: Once we upgrade this package to a higher version than 9.2.0, we can just drop this
|
|
|
|
|
# hack.
|
|
|
|
|
Version: 9.2.0.1
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Library providing a virtualization API
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
Source0: %{srcname}-%{version}.tar.gz
|
|
|
|
|
Source0: %{srcname}-%{realversion}.tar.gz
|
|
|
|
|
# Only build for SLE12
|
|
|
|
|
%if ! (0%{?suse_version} && 0%{?suse_version} == 1315)
|
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
|
@@ -45,12 +56,11 @@ BuildRequires: libvirt-dev
|
|
|
|
|
BuildRequires: libvirt-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: saltbundlepy-rpm-macros
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{realversion}-build
|
|
|
|
|
BuildRequires: %{saltbundlepy_module devel >= 3.10}
|
|
|
|
|
BuildRequires: %{saltbundlepy_module lxml}
|
|
|
|
|
BuildRequires: %{saltbundlepy_module pytest}
|
|
|
|
|
BuildRequires: %{saltbundlepy_module xml}
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The python-libvirt-python package contains a module that permits applications
|
|
|
|
|
@@ -58,8 +68,20 @@ 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 (v2.6.20+).
|
|
|
|
|
|
|
|
|
|
%package -n %{realname}
|
|
|
|
|
Summary: Library providing a virtualization API
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description -n %{realname}
|
|
|
|
|
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 (v2.6.20+).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
|
%setup -q -n %{srcname}-%{realversion}
|
|
|
|
|
|
|
|
|
|
# Unset execute bit for example scripts; it can introduce spurious
|
|
|
|
|
# RPM dependencies, like /usr/bin/python which can pull in python2
|
|
|
|
|
@@ -81,10 +103,10 @@ export CFLAGS="%{optflags}"
|
|
|
|
|
%{pytest_arch}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%files -n %{realname}
|
|
|
|
|
%doc README COPYING COPYING.LESSER examples/
|
|
|
|
|
%{python_sitearch}/libvirt*
|
|
|
|
|
%{python_sitearch}/libvirt_python-%{version}*info
|
|
|
|
|
%{python_sitearch}/libvirt_python-%{realversion}*info
|
|
|
|
|
%pycache_only %{python_sitearch}/__pycache__/libvirt*
|
|
|
|
|
|
|
|
|
|
%changelog
|