From 866df042ca731503ca76ee2304c5481823c8eba8 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Wed, 20 Jul 2022 15:00:23 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- osinfo-db.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/osinfo-db.spec b/osinfo-db.spec index 86bd5b8..de5293b 100644 --- a/osinfo-db.spec +++ b/osinfo-db.spec @@ -1,9 +1,11 @@ +%define anolis_release .0.1 + # -*- rpm-spec -*- Summary: osinfo database files Name: osinfo-db Version: 20211216 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?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 @@ -18,6 +20,14 @@ The osinfo database provides information about operating systems and hypervisor platforms to facilitate the automated configuration and provisioning of new virtual machines +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %install osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0} %if 0%{?rhel} @@ -27,7 +37,6 @@ find %{buildroot}/%{_datadir}/osinfo/os/microsoft.com/ -name "win-*.d" -type d - %files %dir %{_datadir}/osinfo/ -%{_datadir}/osinfo/VERSION %{_datadir}/osinfo/LICENSE %{_datadir}/osinfo/datamap %{_datadir}/osinfo/device @@ -36,7 +45,13 @@ find %{buildroot}/%{_datadir}/osinfo/os/microsoft.com/ -name "win-*.d" -type d - %{_datadir}/osinfo/install-script %{_datadir}/osinfo/schema +%files doc +VERSION + %changelog +* Wed Jul 20 2022 Zhao Hang - 20211216-1.0.1 +- Add doc sub package + * Thu Dec 16 2021 Victor Toso - 20211216-1 - Update to new release (v20211216) Resolves: rhbz#1976818 -- Gitee