From beeef4ffc84fdc65793e2d6cb08ee75076bb4c77 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sun, 17 Jul 2022 16:57:57 +0800 Subject: [PATCH] spec: add doc sub package --- findutils.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/findutils.spec b/findutils.spec index c2f5bb9..79a75fe 100644 --- a/findutils.spec +++ b/findutils.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: The GNU versions of find utilities (find and xargs) Name: findutils Version: 4.6.0 -Release: 20%{?dist} +Release: 20%{anolis_release}%{?dist} Epoch: 1 License: GPLv3+ Group: Applications/File @@ -63,6 +64,9 @@ BuildRequires: git BuildRequires: libselinux-devel BuildRequires: texinfo +Requires: glibc +Provides: /usr/bin/xargs + %description The findutils package contains programs which will help you locate files on your system. The find utility searches through a hierarchy @@ -74,6 +78,14 @@ names generated by the find command). You should install findutils because it includes tools that are very useful for finding things on your system. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} %prep %autosetup -N -S git @@ -141,7 +153,6 @@ fi %files -f %{name}.lang %{!?_licensedir:%global license %%doc} %license COPYING -%doc AUTHORS NEWS README THANKS TODO %{_bindir}/find %{_bindir}/xargs %{_mandir}/man1/find.1* @@ -149,7 +160,13 @@ fi %{_infodir}/find.info* %{_infodir}/find-maint.info.gz +%files doc +%doc AUTHORS NEWS README THANKS TODO + %changelog +* Fri Jul 15 2022 Chang Gao - 4.6.0-20.0.1 +- Add doc sub package + * Mon Nov 05 2018 Kamil Dudka - 1:4.6.0-20 - fix programming mistakes detected by static analysis (#1606953) -- Gitee