diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..86daa0b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+SOURCES/osinfo-db-20200203.tar.xz
diff --git a/.osinfo-db.metadata b/.osinfo-db.metadata
new file mode 100644
index 0000000..58681f2
--- /dev/null
+++ b/.osinfo-db.metadata
@@ -0,0 +1 @@
+07a02df203465ea2c8c64aa989d9552415c6e853 SOURCES/osinfo-db-20200203.tar.xz
diff --git a/SOURCES/0001-rhel-Add-7.8-entry.patch b/SOURCES/0001-rhel-Add-7.8-entry.patch
new file mode 100644
index 0000000..e7b4e56
--- /dev/null
+++ b/SOURCES/0001-rhel-Add-7.8-entry.patch
@@ -0,0 +1,265 @@
+From 0db41559bbf1a7ed0985e423f0effddbadb28375 Mon Sep 17 00:00:00 2001
+From: rpm-build <rpm-build>
+Date: Tue, 10 Dec 2019 10:12:55 +0100
+Subject: [PATCH] rhel: Add 7.8 entry
+
+Signed-off-by: rpm-build <rpm-build>
+---
+ os/redhat.com/rhel-7-unknown.xml |  22 ++---
+ os/redhat.com/rhel-7.8.xml       | 154 +++++++++++++++++++++++++++++++
+ 2 files changed, 165 insertions(+), 11 deletions(-)
+ create mode 100644 os/redhat.com/rhel-7.8.xml
+
+diff --git a/os/redhat.com/rhel-7-unknown.xml b/os/redhat.com/rhel-7-unknown.xml
+index db2b59f..36f7dc9 100644
+--- a/os/redhat.com/rhel-7-unknown.xml
++++ b/os/redhat.com/rhel-7-unknown.xml
+@@ -19,13 +19,13 @@
+     <family>linux</family>
+     <distro>rhel</distro>
+     <codename>Maipo</codename>
+-    <upgrades id="http://redhat.com/rhel/7.7"/>
+-    <derives-from id="http://redhat.com/rhel/7.7"/>
++    <upgrades id="http://redhat.com/rhel/7.8"/>
++    <derives-from id="http://redhat.com/rhel/7.8"/>
+ 
+     <media arch="x86_64">
+       <iso>
+         <system-id>LINUX</system-id>
+-        <volume-id>.*RHEL-7.([89]|[1-9][0-9]).*x86_64.*</volume-id>
++        <volume-id>.*RHEL-7.(9|[1-9][0-9]).*x86_64.*</volume-id>
+       </iso>
+       <kernel>isolinux/vmlinuz</kernel>
+       <initrd>isolinux/initrd.img</initrd>
+@@ -34,35 +34,35 @@
+     <media arch="aarch64">
+        <iso>
+          <system-id>LINUX</system-id>
+-         <volume-id>RHEL-7.([89]|[1-9][0-9]).*aarch64$</volume-id>
++         <volume-id>RHEL-7.(9|[1-9][0-9]).*aarch64$</volume-id>
+        </iso>
+      </media>
+ 
+     <media arch="ppc64">
+        <iso>
+          <system-id>PPC</system-id>
+-         <volume-id>RHEL[-_]7.([89]|[1-9][0-9]).*ppc64$</volume-id>
++         <volume-id>RHEL[-_]7.(9|[1-9][0-9]).*ppc64$</volume-id>
+        </iso>
+      </media>
+ 
+     <media arch="ppc64le">
+        <iso>
+          <system-id>PPC</system-id>
+-         <volume-id>RHEL[-_]7.([89]|[1-9][0-9]).*ppc64le$</volume-id>
++         <volume-id>RHEL[-_]7.(9|[1-9][0-9]).*ppc64le$</volume-id>
+        </iso>
+      </media>
+ 
+     <media arch="s390x">
+        <iso>
+          <system-id>LINUX</system-id>
+-         <volume-id>RHEL-7.([89]|[1-9][0-9]).*s390x$</volume-id>
++         <volume-id>RHEL-7.(9|[1-9][0-9]).*s390x$</volume-id>
+        </iso>
+      </media>
+ 
+     <tree arch="ppc64">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^7.([89]|[1-9][0-9])$</version>
++        <version>^7.(9|[1-9][0-9])$</version>
+         <arch>ppc64</arch>
+       </treeinfo>
+     </tree>
+@@ -70,7 +70,7 @@
+     <tree arch="ppc64le">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^7.([89]|[1-9][0-9])$</version>
++        <version>^7.(9|[1-9][0-9])$</version>
+         <arch>ppc64le</arch>
+       </treeinfo>
+     </tree>
+@@ -78,7 +78,7 @@
+     <tree arch="s390x">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^7.([89]|[1-9][0-9])$</version>
++        <version>^7.(9|[1-9][0-9])$</version>
+         <arch>s390x</arch>
+       </treeinfo>
+     </tree>
+@@ -86,7 +86,7 @@
+     <tree arch="x86_64">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^7.([89]|[1-9][0-9])$</version>
++        <version>^7.(9|[1-9][0-9])$</version>
+         <arch>x86_64</arch>
+       </treeinfo>
+     </tree>
+diff --git a/os/redhat.com/rhel-7.8.xml b/os/redhat.com/rhel-7.8.xml
+new file mode 100644
+index 0000000..d658600
+--- /dev/null
++++ b/os/redhat.com/rhel-7.8.xml
+@@ -0,0 +1,154 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<libosinfo version="0.0.1">
++
++  <os id="http://redhat.com/rhel/7.8">
++    <short-id>rhel7.8</short-id>
++    <name>Red Hat Enterprise Linux 7.8</name>
++    <version>7.8</version>
++    <vendor>Red Hat, Inc</vendor>
++    <vendor xml:lang="ca">Red Hat, Inc</vendor>
++    <vendor xml:lang="de">Red Hat, Inc</vendor>
++    <vendor xml:lang="es">Red Hat, Inc</vendor>
++    <vendor xml:lang="fr">Red Hat, Inc</vendor>
++    <vendor xml:lang="id">Red Hat, Inc</vendor>
++    <vendor xml:lang="it">Red Hat, Inc</vendor>
++    <vendor xml:lang="ja">Red Hat, Inc</vendor>
++    <vendor xml:lang="pl">Red Hat, Inc</vendor>
++    <vendor xml:lang="pt_BR">Red Hat, Inc</vendor>
++    <vendor xml:lang="uk">Red Hat, Inc</vendor>
++    <family>linux</family>
++    <distro>rhel</distro>
++    <codename>Maipo</codename>
++    <upgrades id="http://redhat.com/rhel/7.7"/>
++    <derives-from id="http://redhat.com/rhel/7.7"/>
++
++    <release-date>2020-03-31</release-date>
++
++    <media arch="x86_64">
++      <iso>
++        <system-id>LINUX</system-id>
++        <volume-id>.*RHEL-7.8.*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>RHEL-7.8.*aarch64$</volume-id>
++       </iso>
++     </media>
++
++    <media arch="ppc64">
++       <iso>
++         <system-id>PPC</system-id>
++         <volume-id>RHEL[-_]7.8.*ppc64$</volume-id>
++       </iso>
++     </media>
++
++    <media arch="ppc64le">
++       <iso>
++         <system-id>PPC</system-id>
++         <volume-id>RHEL[-_]7.8.*ppc64le$</volume-id>
++       </iso>
++     </media>
++
++    <media arch="s390x">
++       <iso>
++         <system-id>LINUX</system-id>
++         <volume-id>RHEL-7.8.*s390x$</volume-id>
++       </iso>
++     </media>
++
++    <tree arch="ppc64">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux$</family>
++        <version>^7.8$</version>
++        <arch>ppc64$</arch>
++      </treeinfo>
++    </tree>
++
++    <tree arch="ppc64le">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux$</family>
++        <version>^7.8$</version>
++        <arch>ppc64le</arch>
++      </treeinfo>
++    </tree>
++
++    <tree arch="s390x">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux$</family>
++        <version>^7.8$</version>
++        <arch>s390x</arch>
++      </treeinfo>
++    </tree>
++
++    <tree arch="x86_64">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux$</family>
++        <version>^7.8$</version>
++        <arch>x86_64</arch>
++      </treeinfo>
++    </tree>
++
++    <resources arch="ppc64">
++      <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>
++    </resources>
++
++    <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>
++    </resources>
++
++    <resources arch="all">
++      <minimum>
++        <n-cpus>1</n-cpus>
++        <cpu>1000000000</cpu>
++        <ram>1073741824</ram>
++        <storage>10737418240</storage>
++      </minimum>
++
++      <recommended>
++        <cpu>1000000000</cpu>
++        <ram>1073741824</ram>
++        <storage>21474836480</storage>
++      </recommended>
++
++      <maximum>
++        <ram>13194139533312</ram>
++      </maximum>
++
++      <network-install>
++        <ram>1610612736</ram>
++      </network-install>
++    </resources>
++
++    <installer>
++      <script id='http://redhat.com/rhel/kickstart/jeos'/>
++      <script id='http://redhat.com/rhel/kickstart/desktop'/>
++    </installer>
++  </os>
++</libosinfo>
+\ No newline at end of file
+-- 
+2.23.0
+
diff --git a/SOURCES/0002-rhel-Add-8.2-entry.patch b/SOURCES/0002-rhel-Add-8.2-entry.patch
new file mode 100644
index 0000000..52ebeac
--- /dev/null
+++ b/SOURCES/0002-rhel-Add-8.2-entry.patch
@@ -0,0 +1,237 @@
+From ea3d294c14e8d43fbe24afe5c59d11f52a96e8ec Mon Sep 17 00:00:00 2001
+From: rpm-build <rpm-build>
+Date: Tue, 10 Dec 2019 10:13:28 +0100
+Subject: [PATCH] rhel: Add 8.2 entry
+
+Signed-off-by: rpm-build <rpm-build>
+---
+ os/redhat.com/rhel-8-unknown.xml |  20 ++---
+ os/redhat.com/rhel-8.2.xml       | 134 +++++++++++++++++++++++++++++++
+ 2 files changed, 144 insertions(+), 10 deletions(-)
+ create mode 100644 os/redhat.com/rhel-8.2.xml
+
+diff --git a/os/redhat.com/rhel-8-unknown.xml b/os/redhat.com/rhel-8-unknown.xml
+index 1480185..82cfb4a 100644
+--- a/os/redhat.com/rhel-8-unknown.xml
++++ b/os/redhat.com/rhel-8-unknown.xml
+@@ -19,13 +19,13 @@
+     <family>linux</family>
+     <distro>rhel</distro>
+     <codename>Ootpa</codename>
+-    <upgrades id="http://redhat.com/rhel/8.1"/>
+-    <derives-from id="http://redhat.com/rhel/8.1"/>
++    <upgrades id="http://redhat.com/rhel/8.2"/>
++    <derives-from id="http://redhat.com/rhel/8.2"/>
+ 
+     <media arch="x86_64">
+       <iso>
+         <system-id>LINUX</system-id>
+-        <volume-id>.*RHEL-8-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64.*</volume-id>
++        <volume-id>.*RHEL-8-([3-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>
+@@ -34,28 +34,28 @@
+     <media arch="aarch64">
+        <iso>
+          <system-id>LINUX</system-id>
+-         <volume-id>RHEL-8-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
++         <volume-id>RHEL-8-([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+        </iso>
+      </media>
+ 
+     <media arch="ppc64le">
+        <iso>
+          <system-id>PPC</system-id>
+-         <volume-id>RHEL[_-]8[_-]([2-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
++         <volume-id>RHEL[_-]8[_-]([3-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+        </iso>
+      </media>
+ 
+     <media arch="s390x">
+        <iso>
+          <system-id>LINUX</system-id>
+-         <volume-id>RHEL-8-([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
++         <volume-id>RHEL-8-([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>^8.([2-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
++        <version>^8.([3-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
+         <arch>aarch64</arch>
+       </treeinfo>
+     </tree>
+@@ -63,7 +63,7 @@
+     <tree arch="ppc64le">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^8.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
++        <version>^8.([3-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+         <arch>ppc64le</arch>
+       </treeinfo>
+     </tree>
+@@ -71,7 +71,7 @@
+     <tree arch="s390x">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^8.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
++        <version>^8.([3-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+         <arch>s390x</arch>
+       </treeinfo>
+     </tree>
+@@ -79,7 +79,7 @@
+     <tree arch="x86_64">
+       <treeinfo>
+         <family>Red Hat Enterprise Linux</family>
+-        <version>^8.([2-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
++        <version>^8.([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-8.2.xml b/os/redhat.com/rhel-8.2.xml
+new file mode 100644
+index 0000000..cfc9599
+--- /dev/null
++++ b/os/redhat.com/rhel-8.2.xml
+@@ -0,0 +1,134 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<libosinfo version="0.0.1">
++
++  <os id="http://redhat.com/rhel/8.2">
++    <short-id>rhel8.2</short-id>
++    <name>Red Hat Enterprise Linux 8.2</name>
++    <version>8.2</version>
++    <vendor>Red Hat, Inc</vendor>
++    <vendor xml:lang="ca">Red Hat, Inc</vendor>
++    <vendor xml:lang="de">Red Hat, Inc</vendor>
++    <vendor xml:lang="es">Red Hat, Inc</vendor>
++    <vendor xml:lang="fr">Red Hat, Inc</vendor>
++    <vendor xml:lang="id">Red Hat, Inc</vendor>
++    <vendor xml:lang="it">Red Hat, Inc</vendor>
++    <vendor xml:lang="ja">Red Hat, Inc</vendor>
++    <vendor xml:lang="pl">Red Hat, Inc</vendor>
++    <vendor xml:lang="pt_BR">Red Hat, Inc</vendor>
++    <vendor xml:lang="uk">Red Hat, Inc</vendor>
++    <family>linux</family>
++    <distro>rhel</distro>
++    <codename>Ootpa</codename>
++    <upgrades id="http://redhat.com/rhel/8.1"/>
++    <derives-from id="http://redhat.com/rhel/8.1"/>
++
++    <release-date>2020-04-28</release-date>
++
++    <media arch="x86_64">
++      <iso>
++        <system-id>LINUX</system-id>
++        <volume-id>RHEL-8-2-(([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>
++        <system-id>PPC</system-id>
++        <volume-id>RHEL[_-]8[_-]2[_-](([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>
++        <system-id>LINUX</system-id>
++        <volume-id>RHEL-8-2-(([0-9]|[1-9][0-9])-)?BaseOS-aarch64</volume-id>
++      </iso>
++    </media>
++
++    <media arch="s390x">
++      <iso>
++        <system-id>LINUX</system-id>
++        <volume-id>RHEL-8-2-(([0-9]|[1-9][0-9])-)?BaseOS-s390x</volume-id>
++      </iso>
++    </media>
++
++    <tree arch="aarch64">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux</family>
++        <version>^8.2(.([0-9]|[1-9][0-9]))?$</version>
++        <arch>aarch64</arch>
++      </treeinfo>
++    </tree>
++
++    <tree arch="ppc64le">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux</family>
++        <version>^8.2(.([0-9]|[1-9][0-9]))?$</version>
++        <arch>ppc64le</arch>
++      </treeinfo>
++    </tree>
++
++    <tree arch="s390x">
++      <treeinfo>
++        <family>Red Hat Enterprise Linux</family>
++        <version>^8.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>^8.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>
++    </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>
++
++      <maximum>
++        <ram>26388279066624</ram>
++      </maximum>
++
++      <network-install>
++        <ram>3221225472</ram>
++      </network-install>
++    </resources>
++
++    <installer>
++      <script id='http://redhat.com/rhel/kickstart/jeos'/>
++      <script id='http://redhat.com/rhel/kickstart/desktop'/>
++    </installer>
++  </os>
++</libosinfo>
+\ No newline at end of file
+-- 
+2.23.0
+
diff --git a/SOURCES/osinfo-db-20200203.tar.xz.asc b/SOURCES/osinfo-db-20200203.tar.xz.asc
new file mode 100644
index 0000000..fdbe9c9
--- /dev/null
+++ b/SOURCES/osinfo-db-20200203.tar.xz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEECbnI/yI+8ROvoGo57pJsK9rMF3sFAl44Xu0ACgkQ7pJsK9rM
+F3vOBBAAvFyGMt3+Cf8M9GLXVytqBnucbp9T2I8fgD/X7DkrtgVcjhFbFGfgWFHZ
+SUQezbVXV1nfDnm+7MQNy+Z2tta6gmUzfCL5iPZWf6A+Cu8sEGToqC3SWKKjz5y6
+zHsor4F32S4ArD+3BnNSWeR4wY3dkY7WqxBcC700x8SiKq1+F/u8w+lCV9X2FU9a
+WzPnCT5wqGv4LvtpyJ0C6gqqTcxg2itCub7OOK9vmkMipgaM7rjtIoD5nX3vP7OG
+gubXoehe+FPb/ya/pZ3YZ9jYI44BaATfecLlG1L+ig3W6lp8B/MHjWrKiuEQZztX
+maae4EBcd8PsAwwltJRsfOhWdexSeEGZs1VqIQU2YuOnu8s3C4YxNxFhtL1s6pMB
+5pMIfPr835VB4WiZxehG6gezQFN93cH93+ZKyjO7wgV5Kq2YfjjKHqOSetGy57yf
+VHdWZhss9ln3U7vfzYIs4IYkCj9L53kOKi61/rBk/Wxh7A//7gQndiHVwI++mJcg
+d3pxfUXplevP0JMpbPgw83EBf2YycO7xFF7fbAp2LW5nQAFWzGomhC5ZTI41zekM
+palSCT6H0/AoB6/hUwkihfHSw6VhOOBHY/BOc6JQ/y9FkVzpoq7zueEI1t+bd3Y7
+ZUuo3S/GEr/cyLJHmRG9U0LFI5gcqSYCej+vrBnDF7ZWiCmcHQw=
+=3nIy
+-----END PGP SIGNATURE-----
diff --git a/SPECS/osinfo-db.spec b/SPECS/osinfo-db.spec
new file mode 100644
index 0000000..e51d811
--- /dev/null
+++ b/SPECS/osinfo-db.spec
@@ -0,0 +1,180 @@
+# -*- rpm-spec -*-
+
+%define PatchedSource ../%{name}-%{version}-patched.tar.xz
+
+Summary: osinfo database files
+Name: osinfo-db
+Version: 20200203
+Release: 1%{?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/
+
+### Downstream Patches ###
+Patch0001: 0001-rhel-Add-7.8-entry.patch
+Patch0002: 0002-rhel-Add-8.2-entry.patch
+
+BuildRequires: intltool
+BuildRequires: osinfo-db-tools
+BuildArch: noarch
+Requires: hwdata
+
+%description
+The osinfo database provides information about operating systems and
+hypervisor platforms to facilitate the automated configuration and
+provisioning of new virtual machines
+
+%prep
+%setup
+for p in %patches ; do
+    %__patch -p1 -i $p
+done
+
+# Remove spurious leftovers from when applying the patches
+find ../%{name}-%{version}/ -name "*.orig" -exec rm -f {} \;
+
+# Remove the upstream virtio-win / spice-guest-tools drivers
+find ../%{name}-%{version}/os/microsoft.com/ -name "win-*.d" -type d -exec rm -rf {} +
+
+# For us to be able to apply patches on top of a rebase, we:
+# 1. unpack the sources
+# 2. patch the sources
+# 3. pack the sources in a tarball
+# 4. feed the patched tarball to osinfo-db-import
+%build
+tar -cvJf %{PatchedSource} ../%{name}-%{version}/
+
+%install
+osinfo-db-import  --root %{buildroot} --dir %{_datadir}/osinfo %{PatchedSource}
+
+%files
+%dir %{_datadir}/osinfo/
+%{_datadir}/osinfo/VERSION
+%{_datadir}/osinfo/LICENSE
+%{_datadir}/osinfo/datamap
+%{_datadir}/osinfo/device
+%{_datadir}/osinfo/os
+%{_datadir}/osinfo/platform
+%{_datadir}/osinfo/install-script
+%{_datadir}/osinfo/schema
+
+%changelog
+* Mon Feb 03 2020 Fabiano Fidêncio <fidencio@redhat.com> - 20200203-1
+- Update to v20200203 release
+- Resolves: rhbz#1780529 - Update to the latest upstream release
+
+* Tue Dec 10 2019 Fabiano Fidêncio <fidencio@redhat.com> - 20191125-1
+- Updated to v20191125 release
+- Resolves: rhbz#1780529 - Update to the latest upstream release
+- Add rhel8.2 & rhel7.8 entries
+- Remove upstream virtio-win / spice-guest-tools drivers
+
+* Wed Jun 12 2019 Fabiano Fidêncio <fidencio@redhat.com> - 20190611-1
+- Update to v20190611 release
+- Resolves: rhbz#1699990 - Rebase to the latest upstream release
+
+* Thu May 23 2019 Fabiano Fidêncio <fidencio@redhat.com> - 20190504-2
+- Add rhel-8.1 & rhel-7.7 entry
+- Resolves: rhbz#1713245 - Add rhel-8.1 and rhel-7.7 entries
+
+* Fri May 10 2019 Fabiano Fidêncio <fidencio@redhat.com> - 20190504-1
+- Update to v20190504 release
+- Resolves: rhbz#1699990 - Rebase to the latest upstream release
+- Resolves: rhbz#1689817 - virt-manager cannot detect operating system name
+                           for rhel8.0.0 tree automatically
+- Resolves: rhbz#1703480 - rhel8.0.x is not detected as rhel8.0
+- Resolves: rhbz#1685364 - Add win2019 to libosinfo
+
+* Fri Dec 07 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-8
+- Resolves: rhbz#1656917 - backport change to support Fedora 29 Silverblue
+
+* Fri Nov 16 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-7
+- Resolves: rhbz#1650197 - Fix the volume-ids of rhel8.0 entry
+- Resolves: rhbz#1650459 - test-mediauris is failing because of ubuntu change
+- Related: rhbz#1580232 - Add support to RHEL7.6 and RHEL8.0
+
+* Wed Nov 14 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-6
+- Related: rhbz#1580232 - Add support to RHEL7.6 and RHEL8.0
+
+* Sat Nov 03 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-5
+- Related:  rhbz#1580232 - Add support to RHEL7.6 and RHEL8.0
+
+* Thu Nov 01 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-4
+- Related: rhbz#1644738 - Fix a typo in the Fedora 29 XML
+
+* Thu Nov 01 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-3
+- Resolves: rhbz#1644738 - Latest released Fedora 29 support in RHEL8 instead
+                           of Fedora 29 Beta
+
+* Mon Oct 22 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-2
+- Resolves: rhbz#1640458 - Debian Testing should derive-from/upgrade Debian 9
+
+* Thu Oct 11 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20181011-1
+- Related: rhbz#1627271 - Update to 20181011 release
+
+* Fri Sep 21 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20180920-1
+- Related: rhbz#1627271 - Update to 20180920 release
+
+* Mon Sep 10 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20180903-1
+- Related: rhbz#1627271 - Update to 20180903 release
+
+* Mon Sep 10 2018 Fabiano Fidêncio <fidencio@redhat.com> - 20180612-2
+- Resolves: rhbz#1580232 - Add support to RHEL-7.6 and RHEL-8.0
+
+* Wed Jun 20 2018 Daniel P. Berrangé <berrange@redhat.com> - 20180612-1
+- Update to 20180612 release
+
+* Mon Apr 16 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 20180416-1
+- Update to new release
+
+* Sun Mar 25 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 20180325-1
+- Update to new release
+
+* Sun Mar 18 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 20180318-1
+- Update to new release
+
+* Sun Mar 11 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 20180311-1
+- Update to new release
+
+* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20170813-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Sun Aug 13 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170813-1
+- Update to new release
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170423-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sun Apr 23 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170423-1
+- Update to new release
+
+* Sun Mar 26 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170326-1
+- Update to new release
+
+* Sat Feb 25 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170225-1
+- Update to new release
+
+* Sat Feb 11 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170211-1
+- Update to new release
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170121-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Sat Jan 21 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170121-2
+- 20170121-1 used an incorrect tarball
+
+* Sat Jan 21 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170121-1
+- Update to new release
+
+* Sat Jan 14 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170114-1
+- Update to new release
+
+* Sat Jan 07 2017 Fabiano Fidêncio <fabiano@fidencio.org> - 20170107-1
+- Update to new release
+
+* Wed Oct 26 2016 Daniel P. Berrange <berrange@redhat.com> - 20161026-1
+- Update to new release
+
+* Fri Jul 29 2016 Daniel P. Berrange <berrange@redhat.com> - 20160728-1
+- Initial package after split from libosinfo (rhbz #1361596)