|
|
|
|
@@ -25,15 +25,25 @@
|
|
|
|
|
|
|
|
|
|
%define srcname libvirt-python
|
|
|
|
|
%define realname saltbundlepy-libvirt
|
|
|
|
|
%define realversion 11.2.0
|
|
|
|
|
|
|
|
|
|
Name: saltbundlepy-libvirt-sle16
|
|
|
|
|
URL: https://libvirt.org/
|
|
|
|
|
Version: 11.2.0
|
|
|
|
|
# NOTE ABOUT VERSION HACK
|
|
|
|
|
# The real version of this package is "11.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 11.2.0, we can just drop this
|
|
|
|
|
# hack.
|
|
|
|
|
Version: 11.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 SLE16 and TW
|
|
|
|
|
%if ! (0%{?suse_version} && 0%{?suse_version} >= 1600)
|
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
|
@@ -46,7 +56,7 @@ 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.11}
|
|
|
|
|
BuildRequires: %{saltbundlepy_module lxml}
|
|
|
|
|
BuildRequires: %{saltbundlepy_module pytest}
|
|
|
|
|
@@ -73,7 +83,7 @@ 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
|
|
|
|
|
@@ -98,7 +108,7 @@ export CFLAGS="%{optflags}"
|
|
|
|
|
%files -n %{realname}
|
|
|
|
|
%doc README COPYING examples/
|
|
|
|
|
%{python_sitearch}/libvirt*
|
|
|
|
|
%{python_sitearch}/libvirt_python-%{version}*info
|
|
|
|
|
%{python_sitearch}/libvirt_python-%{realversion}*info
|
|
|
|
|
%pycache_only %{python_sitearch}/__pycache__/libvirt*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|