File osinfo-db_20250606-1.spec of Package libosinfo-osinfo-db-20250606
# Copyright 2025 Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
%global debug_package %{nil}
%global source_date_epoch_from_changelog 0
Name: osinfo-db
BuildArch: noarch
Epoch: 100
Version: 20250606
Release: 1%{?dist}
Summary: osinfo database files
License: GPL-2.0-or-later
URL: https://gitlab.com/libosinfo/osinfo-db/-/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: intltool
BuildRequires: osinfo-db-tools
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
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .
%install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo osinfo-db.tar.xz
%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