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..7f10958083d53a275e2394b29389c1e2b0dac033
--- /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 efaf001d73b031f4d2e67be5ec5842302f1b85a8..f271acacaeb892002950fa4ec00c2e20651f604d 100644
--- a/osinfo-db.spec
+++ b/osinfo-db.spec
@@ -1,12 +1,14 @@
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
+patch0001: 0001-Add-openEuler-info-to-osinfo-db.patch
+
BuildRequires: intltool osinfo-db-tools
Requires: hwdata
@@ -15,6 +17,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 -n %{name}-%{Version} -p1 -S git
+#tar -cJvf %{name}-%{Version}.tar.xz %{_builddir}/
+
+
%install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
@@ -29,5 +36,8 @@ osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
%{_datadir}/osinfo/LICENSE
%changelog
+* Thu Aug 06 2020 chenyaqiang - 20180920-3
+- add openEuler osinfo files
+
* Mon Aug 12 2019 openEuler Buildteam - 20180920-2
- Package init