File osinfo-db.spec of Package osinfo-db.10937

# spec file for package osinfo-db
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           osinfo-db
Version:        20190301
Release:        0
Summary:        Osinfo database files
License:        LGPL-2.1+ and GPL-2.0+
Group:          System/Management
BuildArch:      noarch
Patch21:        add-oes-support.patch
Patch22:        add-sle12sp4-support.patch
Patch23:        add-sle15sp1-support.patch
Patch24:        add-opensuse-leap-15.1-support.patch
Patch25:        add-caasp40-support.patch
BuildRequires:  intltool
BuildRequires:  osinfo-db-tools

The osinfo database provides information about operating systems and
hypervisor platforms to facilitate the automated configuration and
provisioning of new virtual machines

%setup -q
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1

cd %{_builddir}
tar -cJf x.tar.xz osinfo-db-%{version}

osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo "%{_builddir}/x.tar.xz"

%dir %{_datadir}/osinfo/

openSUSE Build Service is sponsored by