!23 支持识别oepnEuler 22.03 LTS版本

From: @chenxi-mao 
Reviewed-by: @licihua 
Signed-off-by: @licihua
This commit is contained in:
openeuler-ci-bot 2022-06-01 07:56:22 +00:00 committed by Gitee
commit eaa62f34b9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 87 additions and 2 deletions

70
openeuler-22.03.xml Normal file
View File

@ -0,0 +1,70 @@
<?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://openeuler.org/openeuler/22.03">
<short-id>openeuler22.03</short-id>
<name>openEuler 22.03</name>
<name xml:lang="uk">openEuler 22.03</name>
<name xml:lang="tr">openEuler 22.03</name>
<name xml:lang="pt_BR">openEuler 22.03</name>
<name xml:lang="pl">openEuler 22.03</name>
<name xml:lang="it">openEuler 22.03</name>
<name xml:lang="id">openEuler 22.03</name>
<version>2.0</version>
<vendor>openEuler</vendor>
<vendor xml:lang="uk">openEuler</vendor>
<vendor xml:lang="tr">openEuler</vendor>
<vendor xml:lang="pt_BR">openEuler</vendor>
<vendor xml:lang="pl">openEuler</vendor>
<vendor xml:lang="it">openEuler</vendor>
<vendor xml:lang="id">openEuler</vendor>
<vendor xml:lang="fr">openEuler</vendor>
<vendor xml:lang="es">openEuler</vendor>
<vendor xml:lang="ca">openEuler</vendor>
<family>linux</family>
<distro>suseeuler</distro>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
<volume-id>openEuler-22.03-LTS-x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<media arch="aarch64">
<iso>
<system-id>LINUX</system-id>
<volume-id>openEuler-22.03-LTS-aarch64</volume-id>
</iso>
<kernel>images/pxeboot/vmlinuz</kernel>
<initrd>images/pxeboot/initrd.img</initrd>
</media>
<tree arch="x86_64">
<treeinfo>
<family>openEuler</family>
<version>2.0</version>
<arch>x86_64</arch>
</treeinfo>
</tree>
<tree arch="aarch64">
<treeinfo>
<family>openEuler</family>
<version>2.0</version>
<arch>aarch64</arch>
</treeinfo>
</tree>
<resources arch="all">
<minimum>
<cpu>500000000</cpu>
<ram>536870912</ram>
<storage>1074151424</storage>
</minimum>
<recommended>
<cpu>2400000000</cpu>
<ram>1073741824</ram>
<storage>17179869184</storage>
</recommended>
</resources>
</os>
</libosinfo>

View File

@ -1,11 +1,14 @@
%global debug_package %{nil}
Name: osinfo-db Name: osinfo-db
Version: 20220214 Version: 20220214
Summary: osinfo database files Summary: osinfo database files
Release: 1 Release: 2
License: LGPLv2+ License: LGPLv2+
URL: http://libosinfo.org/ URL: http://libosinfo.org/
Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz
Source1: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz.asc Source1: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz.asc
Source2: openeuler-22.03.xml
BuildRequires: intltool osinfo-db-tools BuildRequires: intltool osinfo-db-tools
Requires: hwdata Requires: hwdata
@ -15,8 +18,17 @@ osinfo-db provides the database files for use with the libosinfo
library. It provides information about guest operating systems for library. It provides information about guest operating systems for
use with virtualization provisioning tools. use with virtualization provisioning tools.
%prep
%setup -q
%build
cd %{_builddir}
mkdir -p %{_builddir}/osinfo-db-%{version}/os/openeuler.org/
cp %{SOURCE2} %{_builddir}/osinfo-db-%{version}/os/openeuler.org/
tar -cJf x.tar.xz osinfo-db-%{version}
%install %install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo "%{_builddir}/x.tar.xz"
%files %files
%{_datadir}/osinfo/datamap %{_datadir}/osinfo/datamap
@ -29,6 +41,9 @@ osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
%{_datadir}/osinfo/LICENSE %{_datadir}/osinfo/LICENSE
%changelog %changelog
* Tue May 31 2022 Chenxi Mao <chenxi.mao@suse.com> - 20220214-2
- Support openEuler
* Thu Mar 3 2022 panxiaohe <panxh.life@foxmail.com> - 20220214-1 * Thu Mar 3 2022 panxiaohe <panxh.life@foxmail.com> - 20220214-1
- update version to 20220214 - update version to 20220214