From cc0a95547eda5d22d00a3836e0be32ddcaffcea9 Mon Sep 17 00:00:00 2001 From: Weisson Date: Mon, 18 Jul 2022 11:16:57 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Weisson --- libstemmer.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libstemmer.spec b/libstemmer.spec index dfe6297..2eaaeb1 100644 --- a/libstemmer.spec +++ b/libstemmer.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: libstemmer Version: 0 -Release: 10.585svn%{?dist} +Release: 10.585svn%{anolis_release}%{?dist} Summary: C stemming algorithm library # The site and project is no longer being actively maintained. # The code is available on Github - https://github.com/snowballstem/snowball @@ -55,6 +56,13 @@ English: although this has been superseded by an improved algorithm, the original algorithm may be of interest to information retrieval researchers wishing to reproduce results of earlier experiments. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %setup -q -n libstemmer_c @@ -82,14 +90,19 @@ cp %{SOURCE1} %{SOURCE2} . %postun -p /sbin/ldconfig %files -%doc Notice.txt BSD.txt README %{_libdir}/libstemmer.so.* %files devel %{_libdir}/libstemmer.so %{_includedir}/* +%files doc +%doc Notice.txt BSD.txt README + %changelog +* Fri Jul 15 2022 Weisson - 0-10.585svn.0.1 +- Add doc sub package + * Tue Feb 27 2018 Marek Skalický - 0-10.585svn - Use LDFLAGS for building -- Gitee