7
0

3 Commits

Author SHA256 Message Date
513e76faea Fix changelog entry with right version 2026-01-09 16:14:49 +00:00
e21d77089a Fake version to 11.2.0.1 2026-01-09 16:08:57 +00:00
Michael Calmer
44ccbe00f6 rename spec to match directory name 2026-01-09 12:48:51 +00:00
2 changed files with 40 additions and 8 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 9.2.0.1
-------------------------------------------------------------------
Sat Dec 20 13:14:12 UTC 2025 - Michael Calmer <mc@suse.com>
- rename spec to match directory name
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 11 10:57:50 UTC 2023 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com> Tue Apr 11 10:57:50 UTC 2023 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>

View File

@@ -24,15 +24,26 @@
%global __brp_python_bytecompile %{nil} %global __brp_python_bytecompile %{nil}
%define srcname libvirt-python %define srcname libvirt-python
%define realname saltbundlepy-libvirt
%define realversion 9.2.0
Name: saltbundlepy-libvirt Name: saltbundlepy-libvirt-sle12
URL: https://libvirt.org/ 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 Release: 0
Summary: Library providing a virtualization API Summary: Library providing a virtualization API
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
Source0: %{srcname}-%{version}.tar.gz Source0: %{srcname}-%{realversion}.tar.gz
# Only build for SLE12 # Only build for SLE12
%if ! (0%{?suse_version} && 0%{?suse_version} == 1315) %if ! (0%{?suse_version} && 0%{?suse_version} == 1315)
ExclusiveArch: do_not_build ExclusiveArch: do_not_build
@@ -45,12 +56,11 @@ BuildRequires: libvirt-dev
BuildRequires: libvirt-devel BuildRequires: libvirt-devel
%endif %endif
BuildRequires: saltbundlepy-rpm-macros BuildRequires: saltbundlepy-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{realversion}-build
BuildRequires: %{saltbundlepy_module devel >= 3.10} BuildRequires: %{saltbundlepy_module devel >= 3.10}
BuildRequires: %{saltbundlepy_module lxml} BuildRequires: %{saltbundlepy_module lxml}
BuildRequires: %{saltbundlepy_module pytest} BuildRequires: %{saltbundlepy_module pytest}
BuildRequires: %{saltbundlepy_module xml} BuildRequires: %{saltbundlepy_module xml}
%python_subpackages
%description %description
The python-libvirt-python package contains a module that permits applications 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 supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (v2.6.20+). 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 %prep
%setup -q -n %{srcname}-%{version} %setup -q -n %{srcname}-%{realversion}
# Unset execute bit for example scripts; it can introduce spurious # Unset execute bit for example scripts; it can introduce spurious
# RPM dependencies, like /usr/bin/python which can pull in python2 # RPM dependencies, like /usr/bin/python which can pull in python2
@@ -81,10 +103,10 @@ export CFLAGS="%{optflags}"
%{pytest_arch} %{pytest_arch}
%endif %endif
%files %{python_files} %files -n %{realname}
%doc README COPYING COPYING.LESSER examples/ %doc README COPYING COPYING.LESSER examples/
%{python_sitearch}/libvirt* %{python_sitearch}/libvirt*
%{python_sitearch}/libvirt_python-%{version}*info %{python_sitearch}/libvirt_python-%{realversion}*info
%pycache_only %{python_sitearch}/__pycache__/libvirt* %pycache_only %{python_sitearch}/__pycache__/libvirt*
%changelog %changelog