From 9a4d790b871273fe124c8ff529479b1bcae2d8b0 Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Fri, 15 Jul 2022 17:41:00 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Bo Ren --- aspell.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/aspell.spec b/aspell.spec index d306401..54d9cb8 100644 --- a/aspell.spec +++ b/aspell.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Spell checker Name: aspell Version: 0.60.6.1 -Release: 22%{?dist} +Release: 22%{anolis_release}%{?dist} Epoch: 12 # LGPLv2+ .. common/gettext.h # LGPLv2 .. modules/speller/default/phonet.hpp, @@ -33,9 +34,12 @@ Patch9: aspell-0.60.6.1-CVE-2019-25051.patch BuildRequires: gcc-c++ BuildRequires: chrpath, gettext, ncurses-devel, pkgconfig, perl-interpreter +Requires: glibc Requires(pre): /sbin/install-info Requires(preun): /sbin/install-info +Provides: /usr/bin/aspell + %description GNU Aspell is a spell checker designed to eventually replace Ispell. It can either be used as a library or as an independent spell checker. Its main @@ -58,6 +62,14 @@ Requires(preun): /sbin/install-info The aspell-devel package includes libraries and header files needed for Aspell development. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch0 -p1 -b .iinfo @@ -135,7 +147,6 @@ fi %postun -p /sbin/ldconfig %files -f %{name}.lang -%doc README TODO COPYING examples/aspell-import examples/aspell-import.1 %dir %{_libdir}/aspell-0.60 %{_bindir}/a* %{_bindir}/ispell @@ -161,7 +172,13 @@ fi %{_infodir}/aspell-dev.* %{_mandir}/man1/pspell-config.1* +%files doc +%doc README TODO COPYING examples/aspell-import examples/aspell-import.1 + %changelog +* Fri Jul 15 2022 Bo Ren - 12:0.60.6.1-22.0.1 +- Add doc sub package + * Mon Oct 11 2021 Nikola Forró - 12:0.60.6.1-22 - resolves: #1988497 fix CVE-2019-25051 -- Gitee