From 16dbb42a7efd8cfa98461bf56bca359ec19493f4 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sat, 16 Jul 2022 13:27:05 +0800 Subject: [PATCH] spec: add doc sub package --- which.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/which.spec b/which.spec index 489f39c..cbac0db 100644 --- a/which.spec +++ b/which.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Displays where a particular program in your path is located Name: which Version: 2.21 -Release: 17%{?dist} +Release: 17%{anolis_release}%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -13,10 +14,22 @@ Requires: coreutils BuildRequires: gcc BuildRequires: readline-devel +Requires: glibc +Provides: /usr/bin/which + %description The which command shows the full pathname of a specified program, if the specified program is in your PATH. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + %prep %setup -q %patch0 -p1 -b .coverity @@ -35,13 +48,18 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %files %license COPYING -%doc EXAMPLES README AUTHORS NEWS %attr(0644,root,root) %{_sysconfdir}/profile.d/which2.* %{_bindir}/which %{_infodir}/which.info* %{_mandir}/man1/which.1* +%files doc +%doc EXAMPLES README AUTHORS NEWS + %changelog +* Fri Jul 15 2022 Chang Gao - 2.21-17.0.1 +- Add doc sub package + * Thu Nov 25 2021 Than Ngo - 2.21-17 - Resolves: #2025709, check shell correctly - Resolves: #2009547, which treats function contents as aliases when parsing ksh -- Gitee