From 86e12c1844244e47463f5810d06a1eca8d7c5bba Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Fri, 15 Jul 2022 13:16:23 +0800 Subject: [PATCH] spec: add doc sub package --- zsh.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/zsh.spec b/zsh.spec index bd37d4e..b6002fa 100644 --- a/zsh.spec +++ b/zsh.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Summary: Powerful interactive shell Name: zsh Version: 5.5.1 -Release: 9%{?dist} +Release: 9%{anolis_release}%{?dist} License: MIT URL: http://zsh.sourceforge.net/ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz @@ -38,6 +40,7 @@ BuildRequires: pcre-devel BuildRequires: sed BuildRequires: texi2html BuildRequires: texinfo +Requires: glibc Requires(post): info grep Requires(preun): info Requires(postun): coreutils grep @@ -63,6 +66,7 @@ mechanism, and more. %package html Summary: Zsh shell manual in html format BuildArch: noarch +Requires: %{name} = %{version}-%{release} %description html The zsh shell is a command interpreter usable as an interactive login @@ -74,6 +78,15 @@ mechanism, and more. This package contains the Zsh manual in html format. + +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 autoreconf -fiv @@ -168,8 +181,6 @@ fi %files -%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES -%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide %attr(755,root,root) %{_bindir}/zsh %{_mandir}/*/* %{_infodir}/* @@ -178,10 +189,17 @@ fi %config(noreplace) %{_sysconfdir}/skel/.z* %config(noreplace) %{_sysconfdir}/z* +%files doc +%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES +%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide + %files html %doc Doc/*.html %changelog +* Fri Jul 15 2022 Liwei Ge - 5.5.1-9.0.1 +- Add doc sub package + * Tue Feb 22 2022 Kamil Dudka - 5.5.1-9 - do not perform PROMPT_SUBST evaluation on %F/%K arguments (CVE-2021-45444) -- Gitee