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 0000000000000000000000000000000000000000..8067ef6eb4ba86f28a6bcf955602af629361bfcb --- /dev/null +++ b/0001-Add-openEuler-info-to-osinfo-db.patch @@ -0,0 +1,84 @@ +diff -rNu osinfo-db-20180920/os/openEuler.org osinfo-db-20180920_new/os/openEuler.org +--- osinfo-db-20180920/os/openEuler.org 1970-01-01 08:00:00.000000000 +0800 ++++ osinfo-db-20180920_new/os/openEuler.org 2021-07-29 16:04:36.288000000 +0800 +@@ -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 8aadee89dbd6d1b44ab6b96845c2e1b1ea67d86d..2442734f8c1fe04c59f32020ecaf142e855912df 100644 --- a/osinfo-db.spec +++ b/osinfo-db.spec @@ -1,12 +1,17 @@ +%define debug_package %{nil} +%define PatchedSource ../%{name}-%{version}-patched.tar.xz + Name: osinfo-db Version: 20180920 Summary: osinfo database files -Release: 3 +Release: 4 License: LGPLv2+ URL: http://libosinfo.org/ Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz Source1: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz.asc +Patch0:0001-Add-openEuler-info-to-osinfo-db.patch + BuildRequires: intltool osinfo-db-tools Requires: hwdata @@ -15,10 +20,18 @@ 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 +%setup -q +%patch0 -p1 -b .0001-Add-openeuler-osinfo + +%build +tar -cvJf %{PatchedSource} ../%{name}-%{version}/ + %install -osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} +osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{PatchedSource} %files +%dir %{_datadir}/osinfo/ %{_datadir}/osinfo/datamap %{_datadir}/osinfo/device %{_datadir}/osinfo/install-script @@ -29,6 +42,9 @@ osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} %{_datadir}/osinfo/LICENSE %changelog +* Thu Jul 29 2021 tianwei - 20180920-4 +- add openEuler-20.03-LTS information + * Tue Sep 8 2020 linwei - 20180920-3 - modify the URL of Source