4 Commits

2 changed files with 43 additions and 9 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Jan 9 15:55:17 UTC 2026 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
- Adjust version to 11.2.0.1
-------------------------------------------------------------------
Sat Dec 20 13:17:35 UTC 2025 - Michael Calmer <mc@suse.com>
- rename spec to match directory name
-------------------------------------------------------------------
Fri May 9 12:46:58 UTC 2025 - Victor Zhestkov <vzhestkov@suse.com>

View File

@@ -24,17 +24,28 @@
%global __brp_python_bytecompile %{nil}
%define srcname libvirt-python
%define realname saltbundlepy-libvirt
%define realversion 11.2.0
Name: saltbundlepy-libvirt
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
# Only build for SLE16
%if ! (0%{?suse_version} && 0%{?suse_version} == 1600)
Source0: %{srcname}-%{realversion}.tar.gz
# Only build for SLE16 and TW
%if ! (0%{?suse_version} && 0%{?suse_version} >= 1600)
ExclusiveArch: do_not_build
%endif
BuildRequires: fdupes
@@ -45,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}
@@ -58,8 +69,21 @@ 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 +105,10 @@ export CFLAGS="%{optflags}"
%{pytest_arch}
%endif
%files %{python_files}
%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