import UBI osinfo-db-20250606-2.el9_8

This commit is contained in:
AlmaLinux RelEng Bot 2026-05-19 20:03:25 -04:00
parent 435420759e
commit 66c04cc356
3 changed files with 557 additions and 4 deletions

View File

@ -0,0 +1,268 @@
From e19c266fbc9c1a1cbcb6747988f38f46b0f55511 Mon Sep 17 00:00:00 2001
Message-ID: <e19c266fbc9c1a1cbcb6747988f38f46b0f55511.1773051672.git.phrdina@redhat.com>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Mon, 9 Mar 2026 11:19:28 +0100
Subject: [PATCH 1/2] rhel: Add RHEL 9.8 (prerelease)
From: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
os/redhat.com/rhel-9-unknown.xml | 20 ++--
os/redhat.com/rhel-9.8.xml | 170 +++++++++++++++++++++++++++++++
2 files changed, 180 insertions(+), 10 deletions(-)
create mode 100644 os/redhat.com/rhel-9.8.xml
diff --git a/os/redhat.com/rhel-9-unknown.xml b/os/redhat.com/rhel-9-unknown.xml
index 20a0953..aefc1a0 100644
--- a/os/redhat.com/rhel-9-unknown.xml
+++ b/os/redhat.com/rhel-9-unknown.xml
@@ -36,59 +36,59 @@
<family>linux</family>
<distro>rhel</distro>
<codename>Plow</codename>
- <upgrades id="http://redhat.com/rhel/9.7"/>
- <derives-from id="http://redhat.com/rhel/9.7"/>
+ <upgrades id="http://redhat.com/rhel/9.8"/>
+ <derives-from id="http://redhat.com/rhel/9.8"/>
<media arch="x86_64">
<iso>
- <volume-id>.*RHEL-9-([8-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64.*</volume-id>
+ <volume-id>.*RHEL-9-(9|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64.*</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<media arch="aarch64">
<iso>
- <volume-id>RHEL-9-([8-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+ <volume-id>RHEL-9-(9|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
</iso>
<kernel>images/pxeboot/vmlinuz</kernel>
<initrd>images/pxeboot/initrd.img</initrd>
</media>
<media arch="ppc64le">
<iso>
- <volume-id>RHEL[_-]9[_-]([8-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+ <volume-id>RHEL[_-]9[_-](9|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
</iso>
<kernel>ppc/ppc64/vmlinuz</kernel>
<initrd>ppc/ppc64/initrd.img</initrd>
</media>
<media arch="s390x">
<iso>
- <volume-id>RHEL-9-([8-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
+ <volume-id>RHEL-9-(9|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
</iso>
</media>
<tree arch="aarch64">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^9.([8-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
+ <version>^9.(9|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
<arch>aarch64</arch>
</treeinfo>
</tree>
<tree arch="ppc64le">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^9.([8-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^9.(9|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>ppc64le</arch>
</treeinfo>
</tree>
<tree arch="s390x">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^9.([8-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^9.(9|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>s390x</arch>
</treeinfo>
</tree>
<tree arch="x86_64">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^9.([8-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^9.(9|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>x86_64</arch>
</treeinfo>
</tree>
diff --git a/os/redhat.com/rhel-9.8.xml b/os/redhat.com/rhel-9.8.xml
new file mode 100644
index 0000000..52a2340
--- /dev/null
+++ b/os/redhat.com/rhel-9.8.xml
@@ -0,0 +1,170 @@
+<?xml version="1.0"?>
+<libosinfo version="0.0.1">
+ <!-- Licensed under the GNU General Public License version 2 or later.
+ See http://www.gnu.org/licenses/ for a copy of the license text -->
+ <os id="http://redhat.com/rhel/9.8">
+ <short-id>rhel9.8</short-id>
+ <name>Red Hat Enterprise Linux 9.8</name>
+ <version>9.8</version>
+ <vendor>Red Hat, Inc</vendor>
+ <vendor xml:lang="zh-Hans">Red Hat, Inc</vendor>
+ <vendor xml:lang="ka">Red Hat, Inc</vendor>
+ <vendor xml:lang="ko">Red Hat, Inc</vendor>
+ <vendor xml:lang="fi">Red Hat, Inc</vendor>
+ <vendor xml:lang="uk">Red Hat, Inc</vendor>
+ <vendor xml:lang="tr">Red Hat, Inc</vendor>
+ <vendor xml:lang="pt-BR">Red Hat, Inc</vendor>
+ <vendor xml:lang="pl">Red Hat, Inc</vendor>
+ <vendor xml:lang="ja">Red Hat, Inc</vendor>
+ <vendor xml:lang="it">Red Hat, Inc</vendor>
+ <vendor xml:lang="id">Red Hat, Inc</vendor>
+ <vendor xml:lang="fr">Red Hat, Inc</vendor>
+ <vendor xml:lang="es">Red Hat, Inc</vendor>
+ <vendor xml:lang="de">Red Hat, Inc</vendor>
+ <vendor xml:lang="ca">Red Hat, Inc</vendor>
+ <family>linux</family>
+ <distro>rhel</distro>
+ <codename>Plow</codename>
+ <upgrades id="http://redhat.com/rhel/9.7"/>
+ <derives-from id="http://redhat.com/rhel/9.7"/>
+ <release-status>prerelease</release-status>
+ <!-- RHEL 9.8 entries have to cope both with 9.8 and 9.8.x regexes for
+ medias' volume-id and trees' version -->
+ <media arch="x86_64">
+ <iso>
+ <volume-id>RHEL-9-8-(([0-9]|[1-9][0-9])-)?BaseOS-x86_64</volume-id>
+ </iso>
+ <kernel>isolinux/vmlinuz</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="ppc64le">
+ <iso>
+ <volume-id>RHEL[_-]9[_-]8[_-](([0-9]|[1-9][0-9])[_-])?BaseOS[_-]ppc64le</volume-id>
+ </iso>
+ <kernel>ppc/ppc64/vmlinuz</kernel>
+ <initrd>ppc/ppc64/initrd.img</initrd>
+ </media>
+ <media arch="aarch64">
+ <iso>
+ <volume-id>RHEL-9-8-(([0-9]|[1-9][0-9])-)?BaseOS-aarch64</volume-id>
+ </iso>
+ <kernel>images/pxeboot/vmlinuz</kernel>
+ <initrd>images/pxeboot/initrd.img</initrd>
+ </media>
+ <media arch="s390x">
+ <iso>
+ <volume-id>RHEL-9-8-(([0-9]|[1-9][0-9])-)?BaseOS-s390x</volume-id>
+ </iso>
+ </media>
+ <tree arch="aarch64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^9.8(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>aarch64</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="ppc64le">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^9.8(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>ppc64le</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="s390x">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^9.8(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>s390x</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="x86_64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^9.8(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>x86_64</arch>
+ </treeinfo>
+ </tree>
+ <resources arch="ppc64le">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>4000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>35184372088832</ram>
+ </maximum>
+ </resources>
+ <resources arch="x86_64">
+ <minimum>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>26388279066624</ram>
+ </maximum>
+ <network-install>
+ <ram>3221225472</ram>
+ </network-install>
+ </resources>
+ <resources arch="s390x">
+ <minimum>
+ <ram>1073741824</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>340</n-cpus>
+ <ram>17592186044416</ram>
+ </maximum>
+ <network-install>
+ <ram>2147483648</ram>
+ </network-install>
+ </resources>
+ <resources arch="aarch64">
+ <minimum>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>256</n-cpus>
+ <ram>1649267441664</ram>
+ </maximum>
+ </resources>
+ <resources arch="all">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ </resources>
+ <installer>
+ <script id="http://redhat.com/rhel/kickstart/jeos"/>
+ <script id="http://redhat.com/rhel/kickstart/desktop"/>
+ </installer>
+ </os>
+</libosinfo>
--
2.53.0

View File

@ -0,0 +1,268 @@
From 576b66c5367694202ba927e1d18bc1b704a817ce Mon Sep 17 00:00:00 2001
Message-ID: <576b66c5367694202ba927e1d18bc1b704a817ce.1773051672.git.phrdina@redhat.com>
In-Reply-To: <e19c266fbc9c1a1cbcb6747988f38f46b0f55511.1773051672.git.phrdina@redhat.com>
References: <e19c266fbc9c1a1cbcb6747988f38f46b0f55511.1773051672.git.phrdina@redhat.com>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Mon, 9 Mar 2026 11:20:12 +0100
Subject: [PATCH 2/2] rhel: Add RHEL 10.2 (prerelease)
From: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
os/redhat.com/rhel-10-unknown.xml | 20 ++--
os/redhat.com/rhel-10.2.xml | 168 ++++++++++++++++++++++++++++++
2 files changed, 178 insertions(+), 10 deletions(-)
create mode 100644 os/redhat.com/rhel-10.2.xml
diff --git a/os/redhat.com/rhel-10-unknown.xml b/os/redhat.com/rhel-10-unknown.xml
index d464e8e..67e5021 100644
--- a/os/redhat.com/rhel-10-unknown.xml
+++ b/os/redhat.com/rhel-10-unknown.xml
@@ -33,59 +33,59 @@
<family>linux</family>
<distro>rhel</distro>
<codename>Coughlan</codename>
- <upgrades id="http://redhat.com/rhel/10.1"/>
- <derives-from id="http://redhat.com/rhel/10.1"/>
+ <upgrades id="http://redhat.com/rhel/10.2"/>
+ <derives-from id="http://redhat.com/rhel/10.2"/>
<media arch="x86_64">
<iso>
- <volume-id>RHEL-10-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64</volume-id>
+ <volume-id>RHEL-10-([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64</volume-id>
</iso>
<kernel>images/pxeboot/vmlinuz</kernel>
<initrd>images/pxeboot/initrd.img</initrd>
</media>
<media arch="aarch64">
<iso>
- <volume-id>RHEL-10-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+ <volume-id>RHEL-10-([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
</iso>
<kernel>images/pxeboot/vmlinuz</kernel>
<initrd>images/pxeboot/initrd.img</initrd>
</media>
<media arch="ppc64le">
<iso>
- <volume-id>RHEL[_-]10[_-]([2-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+ <volume-id>RHEL[_-]10[_-]([3-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
</iso>
<kernel>ppc/ppc64/vmlinuz</kernel>
<initrd>ppc/ppc64/initrd.img</initrd>
</media>
<media arch="s390x">
<iso>
- <volume-id>RHEL-10-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
+ <volume-id>RHEL-10-([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
</iso>
</media>
<tree arch="aarch64">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^10.([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
+ <version>^10.([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
<arch>aarch64</arch>
</treeinfo>
</tree>
<tree arch="ppc64le">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^10.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^10.([3-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>ppc64le</arch>
</treeinfo>
</tree>
<tree arch="s390x">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^10.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^10.([3-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>s390x</arch>
</treeinfo>
</tree>
<tree arch="x86_64">
<treeinfo>
<family>Red Hat Enterprise Linux</family>
- <version>^10.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <version>^10.([3-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
<arch>x86_64</arch>
</treeinfo>
</tree>
diff --git a/os/redhat.com/rhel-10.2.xml b/os/redhat.com/rhel-10.2.xml
new file mode 100644
index 0000000..80d4cf8
--- /dev/null
+++ b/os/redhat.com/rhel-10.2.xml
@@ -0,0 +1,168 @@
+<?xml version="1.0"?>
+<libosinfo version="0.0.1">
+ <!-- Licensed under the GNU General Public License version 2 or later.
+ See http://www.gnu.org/licenses/ for a copy of the license text -->
+ <os id="http://redhat.com/rhel/10.2">
+ <short-id>rhel10.2</short-id>
+ <name>Red Hat Enterprise Linux 10.2</name>
+ <version>10.2</version>
+ <vendor>Red Hat, Inc</vendor>
+ <vendor xml:lang="zh-Hans">Red Hat, Inc</vendor>
+ <vendor xml:lang="ka">Red Hat, Inc</vendor>
+ <vendor xml:lang="ko">Red Hat, Inc</vendor>
+ <vendor xml:lang="fi">Red Hat, Inc</vendor>
+ <vendor xml:lang="uk">Red Hat, Inc</vendor>
+ <vendor xml:lang="tr">Red Hat, Inc</vendor>
+ <vendor xml:lang="pt-BR">Red Hat, Inc</vendor>
+ <vendor xml:lang="pl">Red Hat, Inc</vendor>
+ <vendor xml:lang="ja">Red Hat, Inc</vendor>
+ <vendor xml:lang="it">Red Hat, Inc</vendor>
+ <vendor xml:lang="id">Red Hat, Inc</vendor>
+ <vendor xml:lang="fr">Red Hat, Inc</vendor>
+ <vendor xml:lang="es">Red Hat, Inc</vendor>
+ <vendor xml:lang="de">Red Hat, Inc</vendor>
+ <vendor xml:lang="ca">Red Hat, Inc</vendor>
+ <family>linux</family>
+ <distro>rhel</distro>
+ <codename>Coughlan</codename>
+ <upgrades id="http://redhat.com/rhel/10.1"/>
+ <derives-from id="http://redhat.com/rhel/10.1"/>
+ <release-status>prerelease</release-status>
+ <media arch="x86_64">
+ <iso>
+ <volume-id>RHEL-10-2(-[0-9]|[1-9][0-9])?.*x86_64</volume-id>
+ </iso>
+ <kernel>images/pxeboot/vmlinuz</kernel>
+ <initrd>images/pxeboot/initrd.img</initrd>
+ </media>
+ <media arch="aarch64">
+ <iso>
+ <volume-id>RHEL-10-2(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+ </iso>
+ <kernel>images/pxeboot/vmlinuz</kernel>
+ <initrd>images/pxeboot/initrd.img</initrd>
+ </media>
+ <media arch="ppc64le">
+ <iso>
+ <volume-id>RHEL[_-]10[_-]2([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+ </iso>
+ <kernel>ppc/ppc64/vmlinuz</kernel>
+ <initrd>ppc/ppc64/initrd.img</initrd>
+ </media>
+ <media arch="s390x">
+ <iso>
+ <volume-id>RHEL-10-2(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
+ </iso>
+ </media>
+ <tree arch="aarch64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.2(-[0-9]|[1-9][0-9])?$</version>
+ <arch>aarch64</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="ppc64le">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.2(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>ppc64le</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="s390x">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.2(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>s390x</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="x86_64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.2(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>x86_64</arch>
+ </treeinfo>
+ </tree>
+ <resources arch="ppc64le">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>4000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>35184372088832</ram>
+ </maximum>
+ </resources>
+ <resources arch="x86_64">
+ <minimum>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>26388279066624</ram>
+ </maximum>
+ <network-install>
+ <ram>3221225472</ram>
+ </network-install>
+ </resources>
+ <resources arch="s390x">
+ <minimum>
+ <ram>1073741824</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>340</n-cpus>
+ <ram>17592186044416</ram>
+ </maximum>
+ <network-install>
+ <ram>2147483648</ram>
+ </network-install>
+ </resources>
+ <resources arch="aarch64">
+ <minimum>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>256</n-cpus>
+ <ram>1649267441664</ram>
+ </maximum>
+ </resources>
+ <resources arch="all">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ </resources>
+ <installer>
+ <script id="http://redhat.com/rhel/kickstart/jeos"/>
+ <script id="http://redhat.com/rhel/kickstart/desktop"/>
+ </installer>
+ </os>
+</libosinfo>
--
2.53.0

View File

@ -1,5 +1,7 @@
# -*- rpm-spec -*-
%global PatchedSource %{_builddir}/%{name}-%{version}-patched.tar.xz
%define with_mingw 0
%if 0%{?fedora}
%define with_mingw 0%{!?_without_mingw:1}
@ -8,31 +10,42 @@
Summary: osinfo database files
Name: osinfo-db
Version: 20250606
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Source0: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.xz
Source1: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.xz.asc
URL: http://libosinfo.org/
BuildRequires: intltool
BuildRequires: osinfo-db-tools
BuildRequires: git
BuildArch: noarch
Requires: hwdata
Patch0001: 0001-rhel-Add-RHEL-9.8-prerelease.patch
Patch0002: 0002-rhel-Add-RHEL-10.2-prerelease.patch
%description
The osinfo database provides information about operating systems and
hypervisor platforms to facilitate the automated configuration and
provisioning of new virtual machines
%prep
%autosetup -S git_am
%build
rm -rf .git
tar -cJf %{PatchedSource} .
%install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{PatchedSource}
%if 0%{?rhel}
# Remove the upstream virtio-win / spice-guest-tools drivers
find %{buildroot}/%{_datadir}/osinfo/os/microsoft.com/ -name "win-*.d" -type d -exec rm -rf {} +
%endif
%if %{with_mingw}
osinfo-db-import --root %{buildroot} --dir %{mingw32_datadir}/osinfo %{SOURCE0}
osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{SOURCE0}
osinfo-db-import --root %{buildroot} --dir %{mingw32_datadir}/osinfo %{PatchedSource}
osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{PatchedSource}
%endif
%files
@ -47,6 +60,10 @@ osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{SOURCE0}
%{_datadir}/osinfo/schema
%changelog
* Mon Mar 09 2026 Pavel Hrdina <phrdina@redhat.com> - 20250606-2
- Add rhel-10.2 and rhel-9.8 prerelease
Resolves: rhbz#RHEL-144809
* Fri Jun 06 2025 Victor Toso <victortoso@redhat.com> - 20250606-1
- Update to new release (v20250606)
Resolves: rhbz#RHEL-95251