43 lines
1.2 KiB
RPMSpec
43 lines
1.2 KiB
RPMSpec
Name: osinfo-db
|
|
Version: 20180920
|
|
Summary: osinfo database files
|
|
Release: 3
|
|
License: LGPLv2+
|
|
URL: http://libosinfo.org/
|
|
Source0: https://gitlab.com/libosinfo/osinfo-db/-/archive/%{name}-%{version}.tar.xz
|
|
Source1: https://gitlab.com/libosinfo/osinfo-db/-/archive/%{name}-%{version}.tar.xz.asc
|
|
patch0001: 0001-Add-openEuler-info-to-osinfo-db.patch
|
|
|
|
BuildRequires: intltool osinfo-db-tools
|
|
Requires: hwdata
|
|
|
|
%description
|
|
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 -p1
|
|
rm -rf %{_sourcedir}/%{name}-%{version}.tar.xz
|
|
tar -cJvf %{_sourcedir}/%{name}-%{version}.tar.xz ./
|
|
|
|
%install
|
|
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
|
|
|
|
%files
|
|
%{_datadir}/osinfo/datamap
|
|
%{_datadir}/osinfo/device
|
|
%{_datadir}/osinfo/install-script
|
|
%{_datadir}/osinfo/os
|
|
%{_datadir}/osinfo/platform
|
|
%{_datadir}/osinfo/schema
|
|
%{_datadir}/osinfo/VERSION
|
|
%{_datadir}/osinfo/LICENSE
|
|
|
|
%changelog
|
|
* Sat 08 2020 chenyaqiang <chenyaqiang@huawei.com> - 20180920-3
|
|
- add openEuler osinfo files
|
|
|
|
* Mon Aug 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 20180920-2
|
|
- Package init
|