From b8427b6c4cbbae1da13e9103ff9063b034fda948 Mon Sep 17 00:00:00 2001 From: chenyaqiang Date: Sat, 8 Aug 2020 08:58:16 +0000 Subject: [PATCH] add openEuler information to osinfo-db --- 0001-Add-openEuler-info-to-osinfo-db.patch | 84 ++++++++++++++++++++++ osinfo-db.spec | 15 +++- 2 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 0001-Add-openEuler-info-to-osinfo-db.patch diff --git a/0001-Add-openEuler-info-to-osinfo-db.patch b/0001-Add-openEuler-info-to-osinfo-db.patch new file mode 100644 index 0000000..7f10958 --- /dev/null +++ b/0001-Add-openEuler-info-to-osinfo-db.patch @@ -0,0 +1,84 @@ +diff -urN osinfo-db-20180920/os/openEuler.org/openEuler-20.03-LTS.xml osinfo-db-20180920_new/os/openEuler.org/openEuler-20.03-LTS.xml +--- osinfo-db-20180920/os/openEuler.org/openEuler-20.03-LTS.xml 1970-01-01 00:00:00.000000000 +0000 ++++ osinfo-db-20180920_new/os/openEuler.org/openEuler-20.03-LTS.xml 2020-08-06 12:41:00.000000000 +0000 +@@ -0,0 +1,80 @@ ++ ++ ++ ++ ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ openEuler-20.03-LTS ++ 20.03-LTS ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ openEuler ++ linux ++ openEuler ++ ++ ++ ++ 2020-03-26 ++ ++ ++ openEuler-20.03-LTS Server ++ ++ ++ ++ ++ https://repo.openeuler.org/openEuler-20.03-LTS/ISO/x86_64/openEuler-20.03-LTS-x86_64-dvd.iso ++ ++ LINUX ++ openEuler-20.03-LTS-x86_64-dvd ++ LINUX ++ openEuler LINUX ++ ++ isolinux/vmlinuz ++ isolinux/initrd.img ++ ++ ++ ++ ++ https://repo.openeuler.org/openEuler-20.03-LTS/ISO/aarch64/openEuler-20.03-LTS-aarch64-dvd.iso ++ ++ LINUX ++ openEuler-20.03-LTS-aarch64-dvd ++ LINUX ++ openEuler LINUX ++ ++ isolinux/vmlinuz ++ isolinux/initrd.img ++ ++ ++ ++ ++ 1 ++ 1000000000 ++ 1073741824 ++ 10737418240 ++ ++ ++ ++ 1000000000 ++ 1073741824 ++ 10737418240 ++ ++ ++ ++ ++ diff --git a/osinfo-db.spec b/osinfo-db.spec index efaf001..70f2a93 100644 --- a/osinfo-db.spec +++ b/osinfo-db.spec @@ -1,11 +1,12 @@ Name: osinfo-db Version: 20180920 Summary: osinfo database files -Release: 2 +Release: 3 License: LGPLv2+ URL: http://libosinfo.org/ -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 +Source0: https://gitlab.com/libosinfo/osinfo-db/-/archive/%{name}-%{version}.tar.xz +Source1: https://gitlab.com/libosinfo/osinfo-db/-/archive/%{name}-%{version}.tar.xz.asc +patch0001: 0001-Add-openEuler-info-to-osinfo-db.patch BuildRequires: intltool osinfo-db-tools Requires: hwdata @@ -15,6 +16,11 @@ osinfo-db provides the database files for use with the libosinfo library. It provides information about guest operating systems for use with virtualization provisioning tools. +%prep +%autosetup -p1 +rm -rf %{_sourcedir}/%{name}-%{version}.tar.xz +tar -cJvf %{_sourcedir}/%{name}-%{version}.tar.xz ./ + %install osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} @@ -29,5 +35,8 @@ osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} %{_datadir}/osinfo/LICENSE %changelog +* Sat 08 2020 chenyaqiang - 20180920-3 +- add openEuler osinfo files + * Mon Aug 12 2019 openEuler Buildteam - 20180920-2 - Package init -- Gitee