From 1667fbc9666e2974c9c76fbcf8b687f37c48d1c2 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 20 Oct 2022 10:58:09 +0800 Subject: [PATCH] optimise spec file & add doc package --- libstemmer.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libstemmer.spec b/libstemmer.spec index 268152d..2d82c19 100644 --- a/libstemmer.spec +++ b/libstemmer.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: libstemmer Version: 2.2.0 Release: %{anolis_release}%{?dist} @@ -30,6 +30,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: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %package devel Summary: C stemming algorithm library developer files @@ -70,16 +77,26 @@ install -p -D -m 644 include/* %{buildroot}%{_includedir}/ cp %{SOURCE1} %{SOURCE2} . +%generate_compatibility_deps + %ldconfig_scriptlets %files -%doc Notice.txt BSD.txt README +%dir %{abidir} +%doc BSD.txt %{_libdir}/libstemmer.so.* +%{abidir}/libstemmer*.dump + +%files doc +%doc Notice.txt README %files devel %{_libdir}/libstemmer.so %{_includedir}/* %changelog +* Thu Oct 20 2022 mgb01105731 - 2.2.0-2 +- optimise spec file & add doc package + * Tue Apr 19 2022 Chunmei Xu - 2.2.0-1 - init from upstream -- Gitee