From c4e7c996f7a56148779ec59631e43c86f655f518 Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Sun, 17 Jul 2022 15:46:03 +0800 Subject: [PATCH] add doc sub package --- setserial.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/setserial.spec b/setserial.spec index ad7f080..99f0700 100644 --- a/setserial.spec +++ b/setserial.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %define _bindir /bin Summary: A utility for configuring serial ports Name: setserial Version: 2.17 -Release: 45%{?dist} +Release: 45%{anolis_release}%{?dist} Source: https://sourceforge.net/projects/setserial/files/setserial/%{version}/%{name}-%{version}.tar.gz Patch0: setserial-2.17-fhs.patch Patch1: setserial-2.17-rc.patch @@ -18,11 +19,22 @@ ExcludeArch: s390 s390x BuildRequires: groff +Requires: glibc +Provides: /bin/setserial + %description Setserial is a basic system utility for displaying or setting serial port information. Setserial can reveal and allow you to alter the I/O port and IRQ that a particular serial device is using, and more. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q # Use FHS directory layout. @@ -59,11 +71,16 @@ make install DESTDIR=${RPM_BUILD_ROOT} %files %defattr(-,root,root,-) -%doc README rc.serial %{_bindir}/setserial %{_mandir}/man*/* +%files doc +%doc README rc.serial + %changelog +* Sun Jul 17 2022 Xiaoping Liu - 2.17-45.0.1 +- Add doc sub package + * Thu Jul 05 2018 Than Ngo - 2.17-45 - fixed typo -- Gitee