From f52982bb932e48d1549f36958cf94fcfb81c19ae Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Sat, 16 Jul 2022 18:23:08 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Bo Ren --- dmidecode.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/dmidecode.spec b/dmidecode.spec index e911b40..c448c1c 100644 --- a/dmidecode.spec +++ b/dmidecode.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Tool to analyse BIOS DMI data Name: dmidecode Version: 3.3 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} Epoch: 1 License: GPLv2+ Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz @@ -17,8 +18,18 @@ Patch6: 0007-dmidecode-Fix-crash-with-u-option.patch BuildRequires: gcc make +Requires: glibc +Provides: /usr/sbin/dmidecode ExclusiveArch: %{ix86} x86_64 ia64 aarch64 +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description doc +Doc pages for %{name}. + %description dmidecode reports information about x86 & ia64 hardware as described in the system BIOS according to the SMBIOS/DMI standard. This information @@ -40,7 +51,6 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install-man %files -%doc AUTHORS NEWS README %{!?_licensedir:%global license %%doc} %license LICENSE %{_sbindir}/dmidecode @@ -51,7 +61,13 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install- %endif %{_mandir}/man8/* +%files doc +%doc AUTHORS NEWS README + %changelog +* Sat Jul 16 2022 Bo Ren - 1:3.3-4.0.1 +- Add doc sub package + * Wed Jan 26 2022 Coiby Xu - 1:3.3-4 - Resolves: rhbz#2042224 -- Gitee