From 13f39866ee9ff10d6c2e0ca5b12cf1144fccbf55 Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Sun, 17 Jul 2022 16:26:05 +0800 Subject: [PATCH] add doc sub package --- sgpio.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/sgpio.spec b/sgpio.spec index 025e9fe..c5961a6 100644 --- a/sgpio.spec +++ b/sgpio.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Summary: SGPIO captive backplane tool Name: sgpio Version: 1.2.0.10 -Release: 21%{?dist} +Release: 21%{anolis_release}%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing @@ -12,9 +14,20 @@ Patch0: sgpio-1.2-makefile.patch Patch1: sgpio-1.2-coverity.patch BuildRequires: dos2unix +Requires: glibc +Provides: /usr/sbin/sgpio + %description Intel SGPIO enclosure management utility +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n sgpio dos2unix --keepdate Makefile README @@ -31,11 +44,16 @@ make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} %files -%doc README %{_sbindir}/sgpio %{_mandir}/man1/sgpio.* +%files doc +%doc README + %changelog +* Sun Jul 17 2022 Xiaoping Liu - 1.2.0.10-21.0.1 +- Add doc sub package + * Mon Feb 26 2018 Jan Synáček - 1.2.0.10-21 - use distribution LDFLAGS during build (#1548559) -- Gitee